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


Performing analysis on: 4FGL_J1249.8+3707_daily_bin862
RA = 192.46, Dec = 37.1306
tmin = 462758401, tmax = 463017601
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='938817', job_status='RUN', time_executed='2021-09-06 06:43:39.536718', time_epoch_executed='1630935819.54' WHERE source_name='4FGL J1249.8+3707' and cadence='daily' and bin_id='862'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/938817

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/938817/ft1_4FGL_J1249.8+3707_daily_bin862.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/938817/ft2_4FGL_J1249.8+3707_daily_bin862.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/938817/ft1_4FGL_J1249.8+3707_daily_bin862.fits outfile=/scratch/kocevski/938817/ft1_filteredMKT_4FGL_J1249.8+3707_daily_bin862.fits ra=192.46 dec=37.1306 rad=12.0 tmin=462758401.0 tmax=463017601.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.64
user 4.38
sys 0.24

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/938817/ft1_filtered_4FGL_J1249.8+3707_daily_bin862.fits evtable="EVENTS" scfile=/scratch/kocevski/938817/ft2_4FGL_J1249.8+3707_daily_bin862.fits sctable="SC_DATA" expcube=/scratch/kocevski/938817/ltcube_462758401_463017601_4FGL_J1249.8+3707_daily_bin862.fits outfile=/scratch/kocevski/938817/expmap_462758401_463017601_4FGL_J1249.8+3707_daily_bin862.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/938817/ltcube_462758401_463017601_4FGL_J1249.8+3707_daily_bin862.fits
.....................!
real 189.97
user 184.89
sys 4.70

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/938817/ft1_filtered_4FGL_J1249.8+3707_daily_bin862.fits scfile=/scratch/kocevski/938817/ft2_4FGL_J1249.8+3707_daily_bin862.fits outfile=/scratch/kocevski/938817/cmap_462758401_463017601_4FGL_J1249.8+3707_daily_bin862.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.94
user 0.39
sys 0.19

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/938817/ft1_filtered_4FGL_J1249.8+3707_daily_bin862.fits scfile=/scratch/kocevski/938817/ft2_4FGL_J1249.8+3707_daily_bin862.fits outfile=/scratch/kocevski/938817/cmap_HighResolution_462758401_463017601_4FGL_J1249.8+3707_daily_bin862.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.89
user 0.37
sys 0.17

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    64.086       1.0000         .10000E-03   10000.    
     3 'norm      '    5.5001       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10103E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    2.2864       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    2.0357       1.0000         .10000E-03   10000.    
     8 'Prefactor '    38.348       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    10.346       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10052E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .62719E-02   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    4.7187       1.0000         .10000E-03   10000.    
    17 'norm      '    .20502       1.0000         .10000E-03   10000.    
    18 'norm      '    .12017E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    .93926       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .85456       1.0000         .10000E-03   10000.    
    21 'Prefactor '    7.2736       1.0000         .10000E-03   10000.    
    22 'Prefactor '    9.6267       1.0000         .10000E-03   10000.    
    23 'Prefactor '    13.267       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    25 'Normalizat'    1.1311       1.0000         .10000E-01   10.000    
    26 'Prefactor '    .72580       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=   5367.654     FROM MIGRAD    STATUS=CONVERGED    622 CALLS     3140 TOTAL
                     EDM=   .96E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  6.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    34.075       -.14045E-05** at limit **
   2  Prefactor     64.091        44.311       -.40752E-06   -.13199E-05
   3  norm          5.5002        3.9114       -.76650E-07    .82076E-04
   4  Prefactor     .10000E-03    9.9344       -.74060E-06** at limit **
   5  Prefactor     2.2862        2.6892        .12573E-07    .11615E-03
   6  Prefactor     .10000E-03    1.0906       -.10864E-07** at limit **
   7  Prefactor     2.0365        8.9585       -.19889E-05   -.13355E-04
   8  Prefactor     38.348        26.658       -.22607E-06   -.66964E-05
   9  Prefactor     .10000E-03    7.5399       -.12371E-06** at limit **
  10  Prefactor     .10000E-03    30.464        .97588E-06** at limit **
  11  Prefactor     .10000E-03    4.0030       -.37032E-06** at limit **
  12  norm          10.340        5.7269        .11037E-05    .23218E-03
  13  Prefactor     .10000E-03    97.981       -.32272E-05** at limit **
  14  Prefactor     .10002E-03    130.62       -.98909E-06** at limit **
  15  Prefactor     .10000E-03    7.7473       -.35075E-06** at limit **
  16  norm          4.7166        5.8855       -.31446E-06   -.15437E-03
  17  norm          .26092        102.11       -.30880E-04    .43420E-04
  18  norm          .10000E-03    3.4211        .17637E-06** at limit **
  19  norm          .93582        3.8982       -.24451E-05   -.16765E-03
  20  Prefactor     .85468        8.0340       -.33276E-06   -.17754E-03
  21  Prefactor     7.2753        24.441        .55695E-06   -.74732E-04
  22  Prefactor     9.5251        96.028        .19376E-05    .35021E-04
  23  Prefactor     13.267        21.217       -.10507E-05   -.42843E-04
  24  Prefactor     .10000E-03    17.487       -.13334E-06** at limit **
  25  Normalizat    1.1311        .18436       -.52604E-07    .28857E-03
  26  Prefactor     .72562        .21563        .21129E-05    .27115E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 64.0907
  norm       = 5.50021
  Prefactor  = 0.0001
  Prefactor  = 2.28623
  Prefactor  = 0.0001
  Prefactor  = 2.03652
  Prefactor  = 38.3482
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 10.3403
  Prefactor  = 0.000100001
  Prefactor  = 0.00010002
  Prefactor  = 0.0001
  norm       = 4.71664
  norm       = 0.260921
  norm       = 0.000100003
  norm       = 0.935821
  Prefactor  = 0.854681
  Prefactor  = 7.27531
  Prefactor  = 9.52509
  Prefactor  = 13.2666
  Prefactor  = 0.0001
  Normalizat = 1.1311
  Prefactor  = 0.725621
 **********
 **   18 **HESSE 
 **********

 FCN=   5367.654     FROM HESSE     STATUS=OK           464 CALLS     3604 TOTAL
                     EDM=   .39E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    34.145        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     64.091        44.373        .50129E-04   -1.4105    
   3  norm          5.5002        3.9766        .10162E-03   -1.5239    
   4  Prefactor     .10000E-03    10.120        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     2.2862        2.7212        .10873E-03   -1.5406    
   6  Prefactor     .10000E-03    1.1097        .74566E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     2.0365        8.9283        .28989E-03   -1.5423    
   8  Prefactor     38.348        26.710        .64724E-04   -1.4469    
   9  Prefactor     .10000E-03    7.5474        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    30.473        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    4.0662        .14315E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          10.340        5.7268        .12452E-03   -1.5065    
  13  Prefactor     .10000E-03    99.164        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10002E-03    132.97        .37745E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    7.7621        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          4.7166        5.9216        .18135E-03   -1.5274    
  17  norm          .26092        100.30        .42898E-02   -1.5606    
  18  norm          .10000E-03    3.4129        .25805E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          .93582        3.7210        .27377E-03   -1.5514    
  20  Prefactor     .85468        11.860        .23665E-02   -1.5523    
  21  Prefactor     7.2753        25.567        .14872E-03   -1.5168    
  22  Prefactor     9.5251        97.875        .12916E-03   -1.5091    
  23  Prefactor     13.267        21.231        .10997E-03   -1.4979    
  24  Prefactor     .10000E-03    17.490        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Normalizat    1.1311        .21477        .21935E-03   -.88759    
  26  Prefactor     .72562        .24863        .31846E-03   -1.0253    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.93408e-08
Minuit parameter uncertainties:
  1  0.000217234
  2  44.3958
  3  3.97684
  4  3.07048e-05
  5  2.7213
  6  7.66598e-06
  7  8.53016
  8  26.7185
  9  1.11841e-05
  10  0.0001021
  11  2.17803e-05
  12  5.72714
  13  0.000555866
  14  0.0032685
  15  2.30771e-05
  16  5.92232
  17  10.2468
  18  0.000207509
  19  3.72192
  20  6.36877
  21  25.6051
  22  61.1953
  23  21.2426
  24  2.56882e-05
  25  0.214932
  26  0.249008
Done.

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

Extracting fit parameters...

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

GAL_V02
   Spectrum: PowerLaw
625    Prefactor:  7.256e-01  2.490e-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.131e+00  2.149e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 192.460 37.131
Photon Flux Upper Limit: 3.42e-08 ph cm-2 s-1
Energy Flux Upper Limit: 2.51e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/938817/likelihoodResults_462758401_463017601_4FGL_J1249.8+3707_daily_bin862.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) = 5367.65424575
delta logL = -0.000627981288744

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5367.6536179
delta logL = -1.28068677441e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10447E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    1.7543       1.0000          .0000       10.000    
     3 'Normalizat'    1.1311       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .72566       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=   5367.654     FROM MIGRAD    STATUS=CONVERGED     88 CALLS      240 TOTAL
                     EDM=   .84E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10120E-03    53.467        .18142E-02** at limit **
   2  Index         1.7025        6.0098        .50000        .21359E-04
   3  Normalizat    1.1311        .11147E-01    .21935E-03    .12024E-04
   4  Prefactor     .72562        .13290E-01    .31845E-03    .23669E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001012
  Index      = 1.70251
  Normalizat = 1.1311
  Prefactor  = 0.725624
 **********
 **   18 **HESSE 
 **********

 FCN=   5367.654     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      269 TOTAL
                     EDM=   .41E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10120E-03    257.89        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         1.7025        7.8924        .50000       -.72015    
   3  Normalizat    1.1311        .25270E-01    .87741E-05   -.88759    
   4  Prefactor     .72562        .30123E-01    .12738E-04   -1.0253    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 4.14717e-08
Minuit parameter uncertainties:
  1  0.0353399
  2  412.523
  3  0.0252703
  4  0.0301237
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/938817': 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) = 5367.65361736
delta logL = 4.1095972847e-07

Extracting fit parameters...

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

GAL_V02
   Spectrum: PowerLaw
625    Prefactor:  7.256e-01  3.012e-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.131e+00  2.527e-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/938817/cmap_HighResolution_462758401_463017601_4FGL_J1249.8+3707_daily_bin862.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.51e-03', job_status='DONE', photon_flux_upper_limit='3.42e-08', time_completed='2021-09-06 06:55:33.837286', job_id='938817', GAL2='0.73', fit_tolerance='1e-08', EG2='1.13', EG='1.13', time_epoch_completed='1630936533.84', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.73', dlogl='4.11e-07', ts2='-0.00', photon_index_error='0.00', photon_index='1.78' WHERE bin_id='862' AND source_name='4FGL J1249.8+3707' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep  6 06:55:33 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0280>
Subject: Job 938817: <4FGL_J1249.8+3707_daily_bin862> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1249.8+3707_daily_bin862 192.46 37.1306 462758401 463017601 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 :                                   703.02 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             279.97 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   895 sec.
    Turnaround time :                            897 sec.

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

