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


Performing analysis on: 4FGL_J1249.8+3707_daily_bin523
RA = 192.46, Dec = 37.1306
tmin = 374889601, tmax = 375148801
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='937192', job_status='RUN', time_executed='2021-09-06 06:38:25.211341', time_epoch_executed='1630935505.21' WHERE source_name='4FGL J1249.8+3707' and cadence='daily' and bin_id='523'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/937192

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/937192/ft1_4FGL_J1249.8+3707_daily_bin523.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/937192/ft2_4FGL_J1249.8+3707_daily_bin523.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/937192/ft1_4FGL_J1249.8+3707_daily_bin523.fits outfile=/scratch/kocevski/937192/ft1_filteredMKT_4FGL_J1249.8+3707_daily_bin523.fits ra=192.46 dec=37.1306 rad=12.0 tmin=374889601.0 tmax=375148801.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.29
sys 0.19

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/937192/ft1_filtered_4FGL_J1249.8+3707_daily_bin523.fits" evtable="EVENTS" scfile=/scratch/kocevski/937192/ft2_4FGL_J1249.8+3707_daily_bin523.fits sctable="SC_DATA" outfile=/scratch/kocevski/937192/ltcube_374889601_375148801_4FGL_J1249.8+3707_daily_bin523.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/937192/ft2_4FGL_J1249.8+3707_daily_bin523.fits
.....................!
real 11.56
user 11.17
sys 0.36

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/937192/ft1_filtered_4FGL_J1249.8+3707_daily_bin523.fits evtable="EVENTS" scfile=/scratch/kocevski/937192/ft2_4FGL_J1249.8+3707_daily_bin523.fits sctable="SC_DATA" expcube=/scratch/kocevski/937192/ltcube_374889601_375148801_4FGL_J1249.8+3707_daily_bin523.fits outfile=/scratch/kocevski/937192/expmap_374889601_375148801_4FGL_J1249.8+3707_daily_bin523.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/937192/ltcube_374889601_375148801_4FGL_J1249.8+3707_daily_bin523.fits
.....................!
real 191.63
user 185.13
sys 5.41

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/937192/ft1_filtered_4FGL_J1249.8+3707_daily_bin523.fits scfile=/scratch/kocevski/937192/ft2_4FGL_J1249.8+3707_daily_bin523.fits outfile=/scratch/kocevski/937192/cmap_374889601_375148801_4FGL_J1249.8+3707_daily_bin523.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.63
user 0.36
sys 0.17

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/937192/ft1_filtered_4FGL_J1249.8+3707_daily_bin523.fits scfile=/scratch/kocevski/937192/ft2_4FGL_J1249.8+3707_daily_bin523.fits outfile=/scratch/kocevski/937192/cmap_HighResolution_374889601_375148801_4FGL_J1249.8+3707_daily_bin523.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.58
user 0.35
sys 0.17

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

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 '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    8.2979       1.0000         .10000E-03   10000.    
     4 'Prefactor '    5.1469       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    5.3733       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    22.143       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    .10438E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    30.075       1.0000         .10000E-03   10000.    
    14 'Prefactor '    47.126       1.0000         .10000E-03   10000.    
    15 'Prefactor '    17.176       1.0000         .10000E-03   10000.    
    16 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .58983E-02   1.0000         .10000E-03   10000.    
    18 'norm      '    2.1199       1.0000         .10000E-03   10000.    
    19 'norm      '    .10004E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    5.9449       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    70.001       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
    25 'Normalizat'    1.1574       1.0000         .10000E-01   10.000    
    26 'Prefactor '    .63251       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6280E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   5859.368     FROM MIGRAD    STATUS=CONVERGED    101 CALLS     2559 TOTAL
                     EDM=   .41E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  7.9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10012E-03    22.594        .46764E-04** at limit **
   2  Prefactor     .10018E-03    8.8413       -.83929E-06** at limit **
   3  norm          8.2981        3.2845        .62282E-06    .19179E-04
   4  Prefactor     5.1470        1.0080        .78196E-08   -.57310E-04
   5  Prefactor     .10000E-03    .58835       -.10616E-05** at limit **
   6  Prefactor     5.3736        2.8127       -.66202E-06   -.81725E-04
   7  Prefactor     .10019E-03    7.4260        .22403E-04** at limit **
   8  Prefactor     22.143        1.0005        .27668E-07   -.34039E-04
   9  Prefactor     .10000E-03    6.0595        .58049E-05** at limit **
  10  Prefactor     .10000E-03    16.229       -.41198E-04** at limit **
  11  Prefactor     .10000E-03    5.5205       -.39384E-05** at limit **
  12  norm          .10000E-03    2.0720        .58251E-06** at limit **
  13  Prefactor     30.072        1.0853       -.39721E-06    .88844E-03
  14  Prefactor     47.130        1.0979        .23938E-06   -.64253E-03
  15  Prefactor     17.177        1.0259       -.29456E-06    .35736E-03
  16  norm          .10000E-03    1.6639        .11918E-05** at limit **
  17  norm          .10371E-03    33.195       -.30674E-05** at limit **
  18  norm          2.1217        1.9642        .77849E-07    .15953E-04
  19  norm          .10000E-03    4.9918        .62191E-06** at limit **
  20  Prefactor     5.9446        3.3193       -.21676E-05   -.16554E-03
  21  Prefactor     .10002E-03    10.106       -.14808E-04** at limit **
  22  Prefactor     .10016E-03    9.8391        .12763E-05** at limit **
  23  Prefactor     70.001        1.0028       -.41509E-07    .17186E-03
  24  Prefactor     .10259E-03    62.491       -.31597E-04** at limit **
  25  Normalizat    1.1574        .19684       -.36489E-06    .40560E-04
  26  Prefactor     .63250        .23627        .43781E-05    .20839E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100116
  Prefactor  = 0.000100177
  norm       = 8.29808
  Prefactor  = 5.14701
  Prefactor  = 0.0001
  Prefactor  = 5.37362
  Prefactor  = 0.000100192
  Prefactor  = 22.1429
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 30.0717
  Prefactor  = 47.1304
  Prefactor  = 17.1774
  norm       = 0.0001
  norm       = 0.000103714
  norm       = 2.12171
  norm       = 0.0001
  Prefactor  = 5.94461
  Prefactor  = 0.000100016
  Prefactor  = 0.000100165
  Prefactor  = 70.0007
  Prefactor  = 0.000102587
  Normalizat = 1.15742
  Prefactor  = 0.632495
 **********
 **   18 **HESSE 
 **********

 FCN=   5859.368     FROM HESSE     STATUS=OK           510 CALLS     3069 TOTAL
                     EDM=   .75E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10012E-03    30.966        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10018E-03    14.213        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          8.2981        3.2877        .34793E-02   -1.5132    
   4  Prefactor     5.1470        4.9553        .44302E-02   -1.5254    
   5  Prefactor     .10000E-03    .58768        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     5.3736        2.8184        .43342E-02   -1.5244    
   7  Prefactor     .10019E-03    12.155        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     22.143        19.097        .21280E-02   -1.4766    
   9  Prefactor     .10000E-03    6.0603        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    22.324        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    5.4891        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          .10000E-03    2.0604        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     30.072        38.268        .18265E-02   -1.4611    
  14  Prefactor     47.130        26.010        .14602E-02   -1.4334    
  15  Prefactor     17.177        17.664        .24160E-02   -1.4879    
  16  norm          .10000E-03    1.6618        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .10371E-03    7.9385        .94828E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          2.1217        1.9836        .70817E-02   -1.5417    
  19  norm          .10000E-03    4.9210        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     5.9446        3.3448        .41173E-02   -1.5220    
  21  Prefactor     .10002E-03    10.369        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10016E-03    26.341        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     70.001        25.828        .11995E-02   -1.4033    
  24  Prefactor     .10259E-03    96.298        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Normalizat    1.1574        .17545        .36031E-01   -.87929    
  26  Prefactor     .63250        .20659        .76083E-01   -1.0623    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.50403e-08
Minuit parameter uncertainties:
  1  0.00379891
  2  0.0031714
  3  3.28781
  4  4.95566
  5  4.01358e-07
  6  2.81847
  7  0.00305522
  8  19.1028
  9  7.01489e-05
  10  0.000290787
  11  6.13085e-05
  12  4.58654e-06
  13  38.2988
  14  26.0159
  15  17.6692
  16  8.24803e-07
  17  0.0108605
  18  1.98363
  19  8.50318e-06
  20  3.34489
  21  0.000808913
  22  0.00416693
  23  25.832
  24  0.0316194
  25  0.175543
  26  0.206839
Done.

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

Extracting fit parameters...

4FGL J1249.8+3707
   Spectrum: PowerLaw
313    Prefactor:  1.000e-04  7.015e-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:  6.325e-01  2.068e-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.157e+00  1.755e-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.06e-08 ph cm-2 s-1
Energy Flux Upper Limit: 2.25e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/937192/likelihoodResults_374889601_375148801_4FGL_J1249.8+3707_daily_bin523.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) = 5859.36922373
delta logL = -0.000775191941102

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5859.36844867
delta logL = -1.34426045406e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10182E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    1.7612       1.0000          .0000       10.000    
     3 'Normalizat'    1.1575       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .63239       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=   5859.368     FROM MIGRAD    STATUS=CONVERGED     51 CALLS      204 TOTAL
                     EDM=   .51E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    131.04        .90712E-02** at limit **
   2  Index         1.7426        8.6936        .50000        .21846E-04
   3  Normalizat    1.1574        .19009E-01    .36029E-01    .63892E-05
   4  Prefactor     .63250        .23040E-01    .76083E-01    .16582E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 1.74258
  Normalizat = 1.15742
  Prefactor  = 0.632495
 **********
 **   18 **HESSE 
 **********

 FCN=   5859.368     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      237 TOTAL
                     EDM=   .69E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    532.89        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         1.7426        8.0959        .50000       -.70954    
   3  Normalizat    1.1574        .42260E-01    .21224E-03   -.87929    
   4  Prefactor     .63250        .51106E-01    .33685E-03   -1.0623    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 6.92574e-08
Minuit parameter uncertainties:
  1  0.000737044
  2  35.4386
  3  0.0422615
  4  0.0511099
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/937192': 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) = 5859.36844831
delta logL = 2.24042196351e-07

Extracting fit parameters...

4FGL J1249.8+3707
   Spectrum: PowerLaw
313    Prefactor:  1.000e-04  7.370e-04  1.000e-04  1.000e+04 ( 1.000e-14)
314        Index:  1.743e+00  3.544e+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:  6.325e-01  5.111e-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.157e+00  4.226e-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/937192/cmap_HighResolution_374889601_375148801_4FGL_J1249.8+3707_daily_bin523.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.25e-03', job_status='DONE', photon_flux_upper_limit='3.06e-08', time_completed='2021-09-06 06:50:05.463587', job_id='937192', GAL2='0.63', fit_tolerance='1e-08', EG2='1.16', EG='1.16', time_epoch_completed='1630936205.46', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.63', dlogl='2.24e-07', ts2='-0.00', photon_index_error='0.00', photon_index='1.78' WHERE bin_id='523' AND source_name='4FGL J1249.8+3707' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep  6 06:50:05 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0030>
Subject: Job 937192: <4FGL_J1249.8+3707_daily_bin523> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1249.8+3707_daily_bin523 192.46 37.1306 374889601 375148801 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 :                                   696.01 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             296.59 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   870 sec.
    Turnaround time :                            871 sec.

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

