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


Performing analysis on: 4FGL_J1249.8+3707_daily_bin992
RA = 192.46, Dec = 37.1306
tmin = 496454401, tmax = 496713601
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='940281', job_status='RUN', time_executed='2021-09-06 06:48:15.444743', time_epoch_executed='1630936095.44' WHERE source_name='4FGL J1249.8+3707' and cadence='daily' and bin_id='992'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/940281

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

Retrieving the FT1 file...

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

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

Retrieving 48 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/940281/ft1_4FGL_J1249.8+3707_daily_bin992.fits


Retrieving the FT1 file...

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

Retrieving 48 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/940281/ft2_4FGL_J1249.8+3707_daily_bin992.fits


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

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

Done.
real 3.50
user 3.23
sys 0.19

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/940281/ft2_4FGL_J1249.8+3707_daily_bin992.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/940281/ft1_filteredMKT_4FGL_J1249.8+3707_daily_bin992.fits evtable="EVENTS" outfile="/scratch/kocevski/940281/ft1_filtered_4FGL_J1249.8+3707_daily_bin992.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.59
user 0.34
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/940281/ft1_filtered_4FGL_J1249.8+3707_daily_bin992.fits" evtable="EVENTS" scfile=/scratch/kocevski/940281/ft2_4FGL_J1249.8+3707_daily_bin992.fits sctable="SC_DATA" outfile=/scratch/kocevski/940281/ltcube_496454401_496713601_4FGL_J1249.8+3707_daily_bin992.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/940281/ft2_4FGL_J1249.8+3707_daily_bin992.fits
.....................!
real 12.53
user 12.15
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/940281/ft1_filtered_4FGL_J1249.8+3707_daily_bin992.fits evtable="EVENTS" scfile=/scratch/kocevski/940281/ft2_4FGL_J1249.8+3707_daily_bin992.fits sctable="SC_DATA" expcube=/scratch/kocevski/940281/ltcube_496454401_496713601_4FGL_J1249.8+3707_daily_bin992.fits outfile=/scratch/kocevski/940281/expmap_496454401_496713601_4FGL_J1249.8+3707_daily_bin992.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/940281/ltcube_496454401_496713601_4FGL_J1249.8+3707_daily_bin992.fits
.....................!
real 191.78
user 185.02
sys 4.61

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/940281/ft1_filtered_4FGL_J1249.8+3707_daily_bin992.fits scfile=/scratch/kocevski/940281/ft2_4FGL_J1249.8+3707_daily_bin992.fits outfile=/scratch/kocevski/940281/cmap_496454401_496713601_4FGL_J1249.8+3707_daily_bin992.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.62
user 0.36
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/940281/ft1_filtered_4FGL_J1249.8+3707_daily_bin992.fits scfile=/scratch/kocevski/940281/ft2_4FGL_J1249.8+3707_daily_bin992.fits outfile=/scratch/kocevski/940281/cmap_HighResolution_496454401_496713601_4FGL_J1249.8+3707_daily_bin992.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.59
user 0.38
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    29.979       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    17.403       1.0000         .10000E-03   10000.    
     4 'Prefactor '    8.8604       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10066E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    1.0210       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    30.763       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    2.8008       1.0000         .10000E-03   10000.    
    12 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    23.960       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    7.8922       1.0000         .10000E-03   10000.    
    17 'norm      '    3.3045       1.0000         .10000E-03   10000.    
    18 'norm      '    7.7239       1.0000         .10000E-03   10000.    
    19 'norm      '    .10044E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10087E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    80.379       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    17.796       1.0000         .10000E-03   10000.    
    25 'Normalizat'    .60696       1.0000         .10000E-01   10.000    
    26 'Prefactor '    1.4114       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=   5735.824     FROM MIGRAD    STATUS=CONVERGED    607 CALLS     3110 TOTAL
                     EDM=   .20E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     29.938        48.951       -.73178E-06   -.10650E-03
   2  Prefactor     .10000E-03    17.216       -.63582E-07** at limit **
   3  norm          17.397        5.0449       -.41248E-06    .23796E-03
   4  Prefactor     8.8596        11.408        .26808E-05   -.84187E-04
   5  Prefactor     .10001E-03    1.9404       -.74139E-07** at limit **
   6  Prefactor     1.0208        2.1966        .45646E-06    .86730E-04
   7  Prefactor     .10000E-03    7.5089        .46724E-07** at limit **
   8  Prefactor     30.764        23.223        .18668E-06   -.15973E-05
   9  Prefactor     .10000E-03    10.627        .79714E-07** at limit **
  10  Prefactor     .10000E-03    38.433        .65699E-07** at limit **
  11  Prefactor     2.8011        3.5792        .57285E-07    .23246E-04
  12  norm          .10000E-03    1.7786        .18142E-06** at limit **
  13  Prefactor     23.960        30.583        .11648E-06   -.30278E-05
  14  Prefactor     .10000E-03    7.4048        .24179E-07** at limit **
  15  Prefactor     .10000E-03    4.9693        .62730E-07** at limit **
  16  norm          7.8927        5.2398       -.40172E-07   -.22515E-03
  17  norm          3.3043        7.4874        .31657E-06   -.68236E-05
  18  norm          7.7262        3.5654       -.17186E-06   -.22464E-03
  19  norm          .10000E-03    7.1544       -.11605E-06** at limit **
  20  Prefactor     .10000E-03    1.7784        .75251E-06** at limit **
  21  Prefactor     .10000E-03    3.5302        .80947E-07** at limit **
  22  Prefactor     80.388        55.884       -.28632E-06   -.62700E-04
  23  Prefactor     .10000E-03    7.9509        .18365E-06** at limit **
  24  Prefactor     17.795        33.291        .17304E-06   -.68957E-05
  25  Normalizat    .60682        .16707       -.17069E-05   -.97629E-04
  26  Prefactor     1.4116        .21486        .43957E-06   -.15806E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 29.9378
  Prefactor  = 0.0001
  norm       = 17.3972
  Prefactor  = 8.85961
  Prefactor  = 0.000100015
  Prefactor  = 1.02081
  Prefactor  = 0.0001
  Prefactor  = 30.764
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 2.80107
  norm       = 0.0001
  Prefactor  = 23.9602
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 7.89266
  norm       = 3.30429
  norm       = 7.72619
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 80.3885
  Prefactor  = 0.0001
  Prefactor  = 17.795
  Normalizat = 0.606824
  Prefactor  = 1.41155
 **********
 **   18 **HESSE 
 **********

 FCN=   5735.824     FROM HESSE     STATUS=OK           458 CALLS     3568 TOTAL
                     EDM=   .16E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     29.938        49.112        .73176E-04   -1.4613    
   2  Prefactor     .10000E-03    17.253        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          17.397        4.6524        .79456E-04   -1.4874    
   4  Prefactor     8.8596        11.292        .67327E-03   -1.5113    
   5  Prefactor     .10001E-03    11.005        .18197E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     1.0208        2.1257        .15274E-03   -1.5506    
   7  Prefactor     .10000E-03    7.5538        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     30.764        23.234        .72239E-04   -1.4598    
   9  Prefactor     .10000E-03    10.644        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    38.459        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     2.8011        3.5712        .15740E-03   -1.5373    
  12  norm          .10000E-03    3.0153        .19623E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     23.960        30.586        .81833E-04   -1.4729    
  14  Prefactor     .10000E-03    7.4113        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    4.9761        .16487E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          7.8927        5.2124        .13544E-03   -1.5146    
  17  norm          3.3043        7.4731        .22271E-03   -1.5344    
  18  norm          7.7262        3.5286        .92538E-04   -1.5152    
  19  norm          .10000E-03    7.2073        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    2.9552        .18665E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    3.5332        .13896E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     80.388        55.099        .22399E-03   -1.3912    
  23  Prefactor     .10000E-03    7.9724        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     17.795        33.292        .94943E-04   -1.4864    
  25  Normalizat    .60682        .19511        .27879E-03   -1.0769    
  26  Prefactor     1.4116        .25387        .25069E-03   -.80048    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.58345e-09
Minuit parameter uncertainties:
  1  49.1788
  2  4.08427e-06
  3  4.65249
  4  11.2951
  5  0.000803696
  6  2.12588
  7  8.22986e-06
  8  23.241
  9  1.15255e-06
  10  1.1435e-05
  11  3.57149
  12  3.44802e-06
  13  30.6059
  14  1.60894e-06
  15  1.69983e-06
  16  5.21271
  17  7.47525
  18  3.52869
  19  1.35605e-05
  20  6.21118e-05
  21  1.04194e-06
  22  55.1335
  23  3.37304e-05
  24  33.3264
  25  0.195328
  26  0.2541
Done.

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

Extracting fit parameters...

4FGL J1249.8+3707
   Spectrum: PowerLaw
313    Prefactor:  1.000e-04  1.153e-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.412e+00  2.541e-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.068e-01  1.953e-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.02e-08 ph cm-2 s-1
Energy Flux Upper Limit: 2.96e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/940281/likelihoodResults_496454401_496713601_4FGL_J1249.8+3707_daily_bin992.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) = 5735.82436008
delta logL = -0.000446531940725

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5735.82391355
delta logL = -1.43973011291e-09

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     '    1.7791       1.0000          .0000       10.000    
     3 'Normalizat'    .60683       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.4116       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=   5735.824     FROM MIGRAD    STATUS=CONVERGED     54 CALLS      211 TOTAL
                     EDM=   .24E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    76.826        .90712E-02** at limit **
   2  Index         1.7781        7.2444        .50000        .60168E-06
   3  Normalizat    .60682        .10831E-01    .63011E-01   -.21690E-03
   4  Prefactor     1.4116        .14323E-01    .56696E-01   -.41592E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100004
  Index      = 1.77805
  Normalizat = 0.606824
  Prefactor  = 1.41155
 **********
 **   18 **HESSE 
 **********

 FCN=   5735.824     FROM HESSE     STATUS=NOT POSDEF    31 CALLS      242 TOTAL
                     EDM=   .28E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    775.89        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         1.7781        6.4720        .50000       -.70022    
   3  Normalizat    .60682        .37862E-01    .27879E-03   -1.0769    
   4  Prefactor     1.4116        .50136E-01    .25069E-03   -.80048    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 2.83817e-08
Minuit parameter uncertainties:
  1  0.00347241
  2  33.1455
  3  0.0378636
  4  0.050138
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/940281': 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) = 5735.82391355
delta logL = 9.64064383879e-11

Extracting fit parameters...

4FGL J1249.8+3707
   Spectrum: PowerLaw
313    Prefactor:  1.000e-04  3.472e-03  1.000e-04  1.000e+04 ( 1.000e-14)
314        Index:  1.778e+00  3.315e+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.412e+00  5.014e-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:  6.068e-01  3.786e-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/940281/cmap_HighResolution_496454401_496713601_4FGL_J1249.8+3707_daily_bin992.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.96e-03', job_status='DONE', photon_flux_upper_limit='4.02e-08', time_completed='2021-09-06 07:00:49.587593', job_id='940281', GAL2='1.41', fit_tolerance='1e-08', EG2='0.61', EG='0.61', time_epoch_completed='1630936849.59', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.41', dlogl='9.64e-11', ts2='-0.00', photon_index_error='0.00', photon_index='1.78' WHERE bin_id='992' AND source_name='4FGL J1249.8+3707' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep  6 07:00:49 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0139>
Subject: Job 940281: <4FGL_J1249.8+3707_daily_bin992> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1249.8+3707_daily_bin992 192.46 37.1306 496454401 496713601 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 :                                   740.16 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             290.78 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   923 sec.
    Turnaround time :                            924 sec.

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

