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


Performing analysis on: 4FGL_J1249.8+3707_daily_bin708
RA = 192.46, Dec = 37.1306
tmin = 422841601, tmax = 423100801
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='938599', job_status='RUN', time_executed='2021-09-06 06:43:31.733375', time_epoch_executed='1630935811.73' WHERE source_name='4FGL J1249.8+3707' and cadence='daily' and bin_id='708'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/938599

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/938599/ft1_4FGL_J1249.8+3707_daily_bin708.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/938599/ft2_4FGL_J1249.8+3707_daily_bin708.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/938599/ft1_4FGL_J1249.8+3707_daily_bin708.fits outfile=/scratch/kocevski/938599/ft1_filteredMKT_4FGL_J1249.8+3707_daily_bin708.fits ra=192.46 dec=37.1306 rad=12.0 tmin=422841601.0 tmax=423100801.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.91
user 3.67
sys 0.22

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/938599/ft2_4FGL_J1249.8+3707_daily_bin708.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/938599/ft1_filteredMKT_4FGL_J1249.8+3707_daily_bin708.fits evtable="EVENTS" outfile="/scratch/kocevski/938599/ft1_filtered_4FGL_J1249.8+3707_daily_bin708.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/938599/ft1_filtered_4FGL_J1249.8+3707_daily_bin708.fits" evtable="EVENTS" scfile=/scratch/kocevski/938599/ft2_4FGL_J1249.8+3707_daily_bin708.fits sctable="SC_DATA" outfile=/scratch/kocevski/938599/ltcube_422841601_423100801_4FGL_J1249.8+3707_daily_bin708.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/938599/ft2_4FGL_J1249.8+3707_daily_bin708.fits
.....................!
real 11.73
user 11.38
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/938599/ft1_filtered_4FGL_J1249.8+3707_daily_bin708.fits evtable="EVENTS" scfile=/scratch/kocevski/938599/ft2_4FGL_J1249.8+3707_daily_bin708.fits sctable="SC_DATA" expcube=/scratch/kocevski/938599/ltcube_422841601_423100801_4FGL_J1249.8+3707_daily_bin708.fits outfile=/scratch/kocevski/938599/expmap_422841601_423100801_4FGL_J1249.8+3707_daily_bin708.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/938599/ltcube_422841601_423100801_4FGL_J1249.8+3707_daily_bin708.fits
.....................!
real 193.31
user 187.26
sys 5.21

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/938599/ft1_filtered_4FGL_J1249.8+3707_daily_bin708.fits scfile=/scratch/kocevski/938599/ft2_4FGL_J1249.8+3707_daily_bin708.fits outfile=/scratch/kocevski/938599/cmap_422841601_423100801_4FGL_J1249.8+3707_daily_bin708.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.60
user 0.36
sys 0.15

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

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    138.21       1.0000         .10000E-03   10000.    
     2 'Prefactor '    20.450       1.0000         .10000E-03   10000.    
     3 'norm      '    8.1805       1.0000         .10000E-03   10000.    
     4 'Prefactor '    16.030       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    3.2763       1.0000         .10000E-03   10000.    
     7 'Prefactor '    12.681       1.0000         .10000E-03   10000.    
     8 'Prefactor '    5.3064       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    66.845       1.0000         .10000E-03   10000.    
    11 'Prefactor '    3.5035       1.0000         .10000E-03   10000.    
    12 'norm      '    2.1224       1.0000         .10000E-03   10000.    
    13 'Prefactor '    25.823       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    7.7015       1.0000         .10000E-03   10000.    
    19 'norm      '    17.723       1.0000         .10000E-03   10000.    
    20 'Prefactor '    3.9105       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    17.000       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .12862E-03   1.0000         .10000E-03   10000.    
    25 'Normalizat'    1.2322       1.0000         .10000E-01   10.000    
    26 'Prefactor '    .88718       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=   6379.944     FROM MIGRAD    STATUS=CONVERGED    617 CALLS     3078 TOTAL
                     EDM=   .39E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     138.21        73.712        .85657E-03    .11226E-03
   2  Prefactor     20.450        20.165        .22142E-02   -.86375E-04
   3  norm          8.1805        3.3566        .35043E-02   -.17394E-04
   4  Prefactor     16.030        9.7895        .25009E-02   -.12020E-02
   5  Prefactor     .10000E-03    .78995        .90712E-02** at limit **
   6  Prefactor     3.2763        2.1922        .55928E-02    .13835E-03
   7  Prefactor     12.681        9.1415        .28122E-02   -.50457E-04
   8  Prefactor     5.3062        17.032        .43619E-02    .19149E-03
   9  Prefactor     .10000E-03    6.3626        .90712E-02** at limit **
  10  Prefactor     66.847        78.006        .12273E-02   -.39653E-03
  11  Prefactor     3.5035        4.9328        .54000E-02    .35684E-03
  12  norm          2.1226        4.1788        .70769E-02    .55390E-03
  13  Prefactor     25.825        32.027        .19708E-02    .85866E-04
  14  Prefactor     .10000E-03    41.570        .90712E-02** at limit **
  15  Prefactor     .10000E-03    7.6771        .90712E-02** at limit **
  16  norm          .10000E-03    1.3341        .90712E-02** at limit **
  17  norm          .10000E-03    5.8876        .90712E-02** at limit **
  18  norm          7.7008        8.5055        .36125E-02    .50277E-03
  19  norm          17.722        14.838        .23785E-02    .10228E-02
  20  Prefactor     3.9102        4.2029        .51005E-02    .22268E-03
  21  Prefactor     .10000E-03    14.743        .90712E-02** at limit **
  22  Prefactor     .10000E-03    117.62        .90712E-02** at limit **
  23  Prefactor     17.000        19.756        .24284E-02    .39690E-04
  24  Prefactor     .10000E-03    282.89        .90712E-02** at limit **
  25  Normalizat    1.2322        .18462        .53620E-01    .11061E-04
  26  Prefactor     .88727        .22656        .76887E-01    .20445E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 138.206
  Prefactor  = 20.4503
  norm       = 8.18048
  Prefactor  = 16.03
  Prefactor  = 0.0001
  Prefactor  = 3.27632
  Prefactor  = 12.6808
  Prefactor  = 5.30624
  Prefactor  = 0.0001
  Prefactor  = 66.8468
  Prefactor  = 3.50354
  norm       = 2.12257
  Prefactor  = 25.8249
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  norm       = 7.70078
  norm       = 17.7225
  Prefactor  = 3.91017
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 17.0002
  Prefactor  = 0.000100001
  Normalizat = 1.23218
  Prefactor  = 0.887266
 **********
 **   18 **HESSE 
 **********

 FCN=   6379.944     FROM HESSE     STATUS=OK           450 CALLS     3528 TOTAL
                     EDM=   .35E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     138.21        73.706        .34263E-04   -1.3351    
   2  Prefactor     20.450        20.168        .88570E-04   -1.4803    
   3  norm          8.1805        3.3533        .90482E-04   -1.5136    
   4  Prefactor     16.030        9.7943        .10003E-03   -1.4907    
   5  Prefactor     .10000E-03    .79451        .69273E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     3.2763        2.1885        .93234E-04   -1.5346    
   7  Prefactor     12.681        9.1396        .11249E-03   -1.4996    
   8  Prefactor     5.3062        17.028        .17448E-03   -1.5247    
   9  Prefactor     .10000E-03    6.3645        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     66.847        77.733        .49090E-04   -1.4071    
  11  Prefactor     3.5035        4.9210        .20373E-03   -1.5334    
  12  norm          2.1226        4.1309        .21108E-03   -1.5417    
  13  Prefactor     25.825        32.037        .78831E-04   -1.4691    
  14  Prefactor     .10000E-03    41.902        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    7.6971        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10000E-03    1.3348        .90088E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .10000E-03    5.8975        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          7.7008        8.6276        .14450E-03   -1.5153    
  19  norm          17.722        15.118        .95138E-04   -1.4866    
  20  Prefactor     3.9102        4.1790        .15347E-03   -1.5312    
  21  Prefactor     .10000E-03    14.791        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    118.01        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     17.000        19.755        .97138E-04   -1.4883    
  24  Prefactor     .10000E-03    285.37        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Normalizat    1.2322        .22298        .23709E-03   -.85614    
  26  Prefactor     .88727        .27145        .34029E-03   -.96587    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.48206e-09
Minuit parameter uncertainties:
  1  73.7552
  2  20.1745
  3  3.35342
  4  9.79523
  5  1.14578e-08
  6  2.18855
  7  9.14058
  8  17.0434
  9  2.06229e-06
  10  77.8513
  11  4.92157
  12  4.13145
  13  32.0587
  14  2.80585e-05
  15  2.20475e-06
  16  6.40205e-07
  17  4.3664e-06
  18  8.62904
  19  15.1211
  20  4.17929
  21  4.32554e-06
  22  9.73234e-05
  23  19.7626
  24  0.00115099
  25  0.223153
  26  0.271866
Done.

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

Extracting fit parameters...

4FGL J1249.8+3707
   Spectrum: PowerLaw
313    Prefactor:  1.000e-04  2.062e-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:  8.873e-01  2.719e-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.232e+00  2.232e-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.21e-08 ph cm-2 s-1
Energy Flux Upper Limit: 2.36e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/938599/likelihoodResults_422841601_423100801_4FGL_J1249.8+3707_daily_bin708.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) = 6379.94509384
delta logL = -0.000735798778805

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6379.94435818
delta logL = -1.34024958243e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10463E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    1.7531       1.0000          .0000       10.000    
     3 'Normalizat'    1.2322       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .88730       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=   6379.944     FROM MIGRAD    STATUS=CONVERGED     90 CALLS      246 TOTAL
                     EDM=   .59E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10103E-03    42.088        .18142E-02** at limit **
   2  Index         1.7036        5.6276        .50000        .26742E-04
   3  Normalizat    1.2322        .11053E-01    .23709E-03    .86313E-04
   4  Prefactor     .88726        .13762E-01    .34029E-03    .81518E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000101032
  Index      = 1.70363
  Normalizat = 1.23218
  Prefactor  = 0.887265
 **********
 **   18 **HESSE 
 **********

 FCN=   6379.944     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      275 TOTAL
                     EDM=   .27E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10103E-03    191.64        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         1.7036        5.2545        .50000       -.71985    
   3  Normalizat    1.2322        .24219E-01    .94835E-05   -.85614    
   4  Prefactor     .88726        .30152E-01    .13612E-04   -.96588    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 2.74037e-08
Minuit parameter uncertainties:
  1  0.0282193
  2  306.599
  3  0.0242194
  4  0.0301521
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/938599': 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) = 6379.94435752
delta logL = 5.26094481756e-07

Extracting fit parameters...

4FGL J1249.8+3707
   Spectrum: PowerLaw
313    Prefactor:  1.010e-04  2.822e-02  1.000e-04  1.000e+04 ( 1.000e-14)
314        Index:  1.704e+00  3.066e+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:  8.873e-01  3.015e-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.232e+00  2.422e-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/938599/cmap_HighResolution_422841601_423100801_4FGL_J1249.8+3707_daily_bin708.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.36e-03', job_status='DONE', photon_flux_upper_limit='3.21e-08', time_completed='2021-09-06 06:56:42.180373', job_id='938599', GAL2='0.89', fit_tolerance='1e-08', EG2='1.23', EG='1.23', time_epoch_completed='1630936602.18', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.89', dlogl='5.26e-07', ts2='-0.00', photon_index_error='0.00', photon_index='1.78' WHERE bin_id='708' AND source_name='4FGL J1249.8+3707' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep  6 06:56:42 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0262>
Subject: Job 938599: <4FGL_J1249.8+3707_daily_bin708> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1249.8+3707_daily_bin708 192.46 37.1306 422841601 423100801 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 :                                   788.14 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             284.87 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   977 sec.
    Turnaround time :                            979 sec.

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

