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


Performing analysis on: 4FGL_J1249.8+3707_daily_bin615
RA = 192.46, Dec = 37.1306
tmin = 398736001, tmax = 398995201
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='937328', job_status='RUN', time_executed='2021-09-06 06:37:49.165855', time_epoch_executed='1630935469.17' WHERE source_name='4FGL J1249.8+3707' and cadence='daily' and bin_id='615'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/937328

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

Retrieving the FT1 file...

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

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

Retrieving 48 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/937328/ft1_4FGL_J1249.8+3707_daily_bin615.fits


Retrieving the FT1 file...

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

Retrieving 48 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/937328/ft2_4FGL_J1249.8+3707_daily_bin615.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/937328/ft1_4FGL_J1249.8+3707_daily_bin615.fits outfile=/scratch/kocevski/937328/ft1_filteredMKT_4FGL_J1249.8+3707_daily_bin615.fits ra=192.46 dec=37.1306 rad=12.0 tmin=398736001.0 tmax=398995201.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.43
user 5.75
sys 0.27

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/937328/ft2_4FGL_J1249.8+3707_daily_bin615.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/937328/ft1_filteredMKT_4FGL_J1249.8+3707_daily_bin615.fits evtable="EVENTS" outfile="/scratch/kocevski/937328/ft1_filtered_4FGL_J1249.8+3707_daily_bin615.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.70
user 0.31
sys 0.16

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/937328/ft1_filtered_4FGL_J1249.8+3707_daily_bin615.fits" evtable="EVENTS" scfile=/scratch/kocevski/937328/ft2_4FGL_J1249.8+3707_daily_bin615.fits sctable="SC_DATA" outfile=/scratch/kocevski/937328/ltcube_398736001_398995201_4FGL_J1249.8+3707_daily_bin615.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/937328/ft2_4FGL_J1249.8+3707_daily_bin615.fits
.....................!
real 11.71
user 11.21
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/937328/ft1_filtered_4FGL_J1249.8+3707_daily_bin615.fits evtable="EVENTS" scfile=/scratch/kocevski/937328/ft2_4FGL_J1249.8+3707_daily_bin615.fits sctable="SC_DATA" expcube=/scratch/kocevski/937328/ltcube_398736001_398995201_4FGL_J1249.8+3707_daily_bin615.fits outfile=/scratch/kocevski/937328/expmap_398736001_398995201_4FGL_J1249.8+3707_daily_bin615.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/937328/ltcube_398736001_398995201_4FGL_J1249.8+3707_daily_bin615.fits
.....................!
real 190.60
user 185.06
sys 4.97

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/937328/ft1_filtered_4FGL_J1249.8+3707_daily_bin615.fits scfile=/scratch/kocevski/937328/ft2_4FGL_J1249.8+3707_daily_bin615.fits outfile=/scratch/kocevski/937328/cmap_398736001_398995201_4FGL_J1249.8+3707_daily_bin615.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.58
user 0.38
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/937328/ft1_filtered_4FGL_J1249.8+3707_daily_bin615.fits scfile=/scratch/kocevski/937328/ft2_4FGL_J1249.8+3707_daily_bin615.fits outfile=/scratch/kocevski/937328/cmap_HighResolution_398736001_398995201_4FGL_J1249.8+3707_daily_bin615.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.63
user 0.37
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    127.42       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .15099E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    5.0590       1.0000         .10000E-03   10000.    
     4 'Prefactor '    9.3380       1.0000         .10000E-03   10000.    
     5 'Prefactor '    2.8977       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .95461       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    22.584       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10098E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10016E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    4.0130       1.0000         .10000E-03   10000.    
    12 'norm      '    16.892       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    10.214       1.0000         .10000E-03   10000.    
    19 'norm      '    .10037E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .40035E-02   1.0000         .10000E-03   10000.    
    21 'Prefactor '    5.0794       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    7.0167       1.0000         .10000E-03   10000.    
    24 'Prefactor '    80.775       1.0000         .10000E-03   10000.    
    25 'Normalizat'    .93053       1.0000         .10000E-01   10.000    
    26 'Prefactor '    1.1331       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=   4313.823     FROM MIGRAD    STATUS=CONVERGED    627 CALLS     3086 TOTAL
                     EDM=   .32E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     127.41        81.778       -.23553E-06    .22649E-05
   2  Prefactor     .10000E-03    302.57       -.56859E-05** at limit **
   3  norm          5.0594        3.4131       -.47194E-07    .49749E-05
   4  Prefactor     9.3389        8.8345       -.14886E-06    .25002E-04
   5  Prefactor     2.8978        2.5210       -.25497E-07   -.98291E-05
   6  Prefactor     .95323        2.0957        .26951E-06    .11137E-03
   7  Prefactor     .10000E-03    3.5367       -.92472E-09** at limit **
   8  Prefactor     22.591        27.198       -.39924E-06    .28780E-07
   9  Prefactor     .10000E-03    34.101        .52147E-07** at limit **
  10  Prefactor     .10000E-03    45.842       -.14448E-05** at limit **
  11  Prefactor     4.0133        6.9326        .46510E-06   -.34926E-04
  12  norm          16.894        8.2498        .48771E-06   -.18354E-04
  13  Prefactor     .10000E-03    22.454       -.48754E-06** at limit **
  14  Prefactor     .10000E-03    25.198       -.21441E-06** at limit **
  15  Prefactor     .10000E-03    7.3457        .10743E-06** at limit **
  16  norm          .10000E-03    2.9132       -.35407E-07** at limit **
  17  norm          .10000E-03    5.1010        .11377E-07** at limit **
  18  norm          10.220        6.6961        .48260E-06   -.12991E-04
  19  norm          .10000E-03    7.5499       -.10658E-05** at limit **
  20  Prefactor     .10002E-03    2.8784       -.62972E-06** at limit **
  21  Prefactor     5.1392        18.803        .21137E-05   -.49375E-04
  22  Prefactor     .10000E-03    26.436        .37614E-06** at limit **
  23  Prefactor     7.0118        25.837        .72300E-06   -.49454E-05
  24  Prefactor     80.819        80.104        .33186E-05   -.43606E-05
  25  Normalizat    .93046        .21802       -.20411E-07    .29724E-04
  26  Prefactor     1.1334        .26244        .37681E-06    .68311E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 127.412
  Prefactor  = 0.000100001
  norm       = 5.05936
  Prefactor  = 9.33891
  Prefactor  = 2.8978
  Prefactor  = 0.953226
  Prefactor  = 0.0001
  Prefactor  = 22.5909
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 4.01326
  norm       = 16.894
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  norm       = 10.2195
  norm       = 0.0001
  Prefactor  = 0.000100016
  Prefactor  = 5.13923
  Prefactor  = 0.0001
  Prefactor  = 7.01185
  Prefactor  = 80.8189
  Normalizat = 0.930465
  Prefactor  = 1.13342
 **********
 **   18 **HESSE 
 **********

 FCN=   4313.823     FROM HESSE     STATUS=OK           460 CALLS     3546 TOTAL
                     EDM=   .50E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     127.41        81.799        .35665E-04   -1.3446    
   2  Prefactor     .10000E-03    313.24        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          5.0594        3.4200        .91676E-04   -1.5258    
   4  Prefactor     9.3389        8.8295        .13115E-03   -1.5097    
   5  Prefactor     2.8978        2.5276        .89785E-04   -1.5367    
   6  Prefactor     .95323        1.7884        .13530E-02   -1.5513    
   7  Prefactor     .10000E-03    3.5387        .12063E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     22.591        27.226        .84286E-04   -1.4757    
   9  Prefactor     .10000E-03    34.219        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    45.918        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     4.0133        6.9115        .20131E-03   -1.5307    
  12  norm          16.894        8.2355        .97448E-04   -1.4886    
  13  Prefactor     .10000E-03    22.458        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    25.259        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    7.3487        .17383E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10000E-03    2.9253        .10946E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .10000E-03    5.1013        .14488E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          10.220        6.6810        .12087E-03   -1.5068    
  19  norm          .10000E-03    7.7022        .17661E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10002E-03    32.039        .20214E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     5.1392        18.781        .17840E-03   -1.5255    
  22  Prefactor     .10000E-03    26.445        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     7.0118        25.801        .15145E-03   -1.5178    
  24  Prefactor     80.819        79.971        .22344E-03   -1.3908    
  25  Normalizat    .93046        .25859        .26094E-03   -.95398    
  26  Prefactor     1.1334        .31233        .29228E-03   -.88405    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.04371e-10
Minuit parameter uncertainties:
  1  81.8718
  2  0.000816396
  3  3.42009
  4  8.83071
  5  2.5277
  6  1.78845
  7  1.46582e-06
  8  27.2412
  9  5.62532e-05
  10  3.97128e-05
  11  6.91285
  12  8.23605
  13  5.46616e-07
  14  7.15339e-05
  15  7.51809e-06
  16  4.07211e-06
  17  5.68292e-07
  18  6.68151
  19  1.55688e-05
  20  0.00141048
  21  18.8026
  22  2.59017e-06
  23  25.8423
  24  80.0777
  25  0.258941
  26  0.312833
Done.

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

Extracting fit parameters...

4FGL J1249.8+3707
   Spectrum: PowerLaw
313    Prefactor:  1.000e-04  5.625e-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:  1.133e+00  3.128e-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:  9.305e-01  2.589e-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: 7.26e-08 ph cm-2 s-1
Energy Flux Upper Limit: 5.34e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/937328/likelihoodResults_398736001_398995201_4FGL_J1249.8+3707_daily_bin615.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) = 4313.82276543
delta logL = -0.000139173464049

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 4313.82262612
delta logL = 1.38926225191e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10292E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    1.9716       1.0000          .0000       10.000    
     3 'Normalizat'    .93046       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1334       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=   4313.823     FROM MIGRAD    STATUS=CONVERGED     56 CALLS      236 TOTAL
                     EDM=   .25E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    3.4022        .90712E-02** at limit **
   2  Index         1.9864        5.7782        .50000       -.29700E-05
   3  Normalizat    .93047        .15534E-02    .45290E-01   -.25573E-04
   4  Prefactor     1.1334        .19091E-02    .66073E-01   -.78490E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100002
  Index      = 1.98645
  Normalizat = 0.930465
  Prefactor  = 1.13342
 **********
 **   18 **HESSE 
 **********

 FCN=   4313.823     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      269 TOTAL
                     EDM=   .61E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    85.589        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         1.9864        8.7654        .50000       -.64689    
   3  Normalizat    .93047        .77721E-02    .26094E-03   -.95398    
   4  Prefactor     1.1334        .95464E-02    .29228E-03   -.88405    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 6.13976e-09
Minuit parameter uncertainties:
  1  0.000762051
  2  118.263
  3  0.00777208
  4  0.0095464
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/937328': 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) = 4313.82262607
delta logL = 1.87907971849e-07

Extracting fit parameters...

4FGL J1249.8+3707
   Spectrum: PowerLaw
313    Prefactor:  1.000e-04  7.621e-04  1.000e-04  1.000e+04 ( 1.000e-14)
314        Index:  1.986e+00  1.183e+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:  1.133e+00  9.546e-03  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:  9.305e-01  7.772e-03  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/937328/cmap_HighResolution_398736001_398995201_4FGL_J1249.8+3707_daily_bin615.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.34e-03', job_status='DONE', photon_flux_upper_limit='7.26e-08', time_completed='2021-09-06 06:48:21.825008', job_id='937328', GAL2='1.13', fit_tolerance='1e-08', EG2='0.93', EG='0.93', time_epoch_completed='1630936101.83', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.13', dlogl='1.88e-07', ts2='-0.00', photon_index_error='0.00', photon_index='1.78' WHERE bin_id='615' AND source_name='4FGL J1249.8+3707' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep  6 06:48:21 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0133>
Subject: Job 937328: <4FGL_J1249.8+3707_daily_bin615> in cluster <slac> Done

Job <4FGL_J1249.8+3707_daily_bin615> was submitted from host <rhel6-64q> by user <kocevski> in cluster <slac> at Mon Sep  6 06:35:42 2021
Job was executed on host(s) <bullet0133>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Sep  6 06:35:44 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:35:44 2021
Terminated at Mon Sep  6 06:48:22 2021
Results reported at Mon Sep  6 06:48:22 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1249.8+3707_daily_bin615 192.46 37.1306 398736001 398995201 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 :                                   628.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             251.50 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   758 sec.
    Turnaround time :                            760 sec.

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

