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


Performing analysis on: 4FGL_J1249.8+3707_daily_bin859
RA = 192.46, Dec = 37.1306
tmin = 461980801, tmax = 462240001
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='938812', job_status='RUN', time_executed='2021-09-06 06:41:05.325620', time_epoch_executed='1630935665.33' WHERE source_name='4FGL J1249.8+3707' and cadence='daily' and bin_id='859'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/938812

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/938812/ft1_4FGL_J1249.8+3707_daily_bin859.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/938812/ft2_4FGL_J1249.8+3707_daily_bin859.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/938812/ft1_4FGL_J1249.8+3707_daily_bin859.fits outfile=/scratch/kocevski/938812/ft1_filteredMKT_4FGL_J1249.8+3707_daily_bin859.fits ra=192.46 dec=37.1306 rad=12.0 tmin=461980801.0 tmax=462240001.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.55
user 3.34
sys 0.16

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/938812/ft1_filtered_4FGL_J1249.8+3707_daily_bin859.fits evtable="EVENTS" scfile=/scratch/kocevski/938812/ft2_4FGL_J1249.8+3707_daily_bin859.fits sctable="SC_DATA" expcube=/scratch/kocevski/938812/ltcube_461980801_462240001_4FGL_J1249.8+3707_daily_bin859.fits outfile=/scratch/kocevski/938812/expmap_461980801_462240001_4FGL_J1249.8+3707_daily_bin859.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/938812/ltcube_461980801_462240001_4FGL_J1249.8+3707_daily_bin859.fits
.....................!
real 193.83
user 186.51
sys 4.17

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/938812/ft1_filtered_4FGL_J1249.8+3707_daily_bin859.fits scfile=/scratch/kocevski/938812/ft2_4FGL_J1249.8+3707_daily_bin859.fits outfile=/scratch/kocevski/938812/cmap_461980801_462240001_4FGL_J1249.8+3707_daily_bin859.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.54
user 0.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/938812/ft1_filtered_4FGL_J1249.8+3707_daily_bin859.fits scfile=/scratch/kocevski/938812/ft2_4FGL_J1249.8+3707_daily_bin859.fits outfile=/scratch/kocevski/938812/cmap_HighResolution_461980801_462240001_4FGL_J1249.8+3707_daily_bin859.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.54
user 0.39
sys 0.14

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .11398E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    2.0943       1.0000         .10000E-03   10000.    
     3 'norm      '    5.1030       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10075E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    4.0721       1.0000         .10000E-03   10000.    
     7 'Prefactor '    1.0872       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10013E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    25.148       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10703E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10164E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .26615       1.0000         .10000E-03   10000.    
    14 'Prefactor '    16.929       1.0000         .10000E-03   10000.    
    15 'Prefactor '    1.0477       1.0000         .10000E-03   10000.    
    16 'norm      '    .10067E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .10181E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    .46127E-02   1.0000         .10000E-03   10000.    
    19 'norm      '    .10024E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    2.4696       1.0000         .10000E-03   10000.    
    21 'Prefactor '    37.394       1.0000         .10000E-03   10000.    
    22 'Prefactor '    26.412       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10077E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .99694E-02   1.0000         .10000E-03   10000.    
    25 'Normalizat'    .96426       1.0000         .10000E-01   10.000    
    26 'Prefactor '    .98250       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=   5956.331     FROM MIGRAD    STATUS=CONVERGED    141 CALLS     3259 TOTAL
                     EDM=   .58E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10104E-03    25.809        .25196E-04** at limit **
   2  Prefactor     2.1049        3.1636       -.57674E-05    .63987E-03
   3  norm          5.0996        2.9316       -.18001E-06    .13970E-03
   4  Prefactor     .10000E-03    2.7791       -.25249E-06** at limit **
   5  Prefactor     .10000E-03    1.5949       -.24274E-05** at limit **
   6  Prefactor     4.0730        2.4652       -.34877E-07    .98214E-04
   7  Prefactor     1.0813        13.756       -.93425E-05   -.11112E-03
   8  Prefactor     .10000E-03    5.2882        .38804E-06** at limit **
   9  Prefactor     25.164        3.7311       -.17393E-05    .60102E-03
  10  Prefactor     .10066E-03    43.398       -.24682E-04** at limit **
  11  Prefactor     .10000E-03    9.6137       -.12629E-05** at limit **
  12  norm          .10000E-03    2.4327       -.11131E-08** at limit **
  13  Prefactor     .20335E-03    1579.2       -.63656E-04** at limit **
  14  Prefactor     16.969        8.0513       -.55116E-05    .77887E-02
  15  Prefactor     1.0524        22.161       -.98591E-06   -.11898E-03
  16  norm          .10012E-03    34.278        .13827E-05** at limit **
  17  norm          .10000E-03    11.436       -.63321E-06** at limit **
  18  norm          .10375E-03    71.679        .24157E-04** at limit **
  19  norm          .10000E-03    5.7557        .23159E-06** at limit **
  20  Prefactor     2.4511        4.8438       -.11605E-04   -.26575E-03
  21  Prefactor     37.429        7.9346       -.39798E-05    .50928E-02
  22  Prefactor     26.481        6.0267        .14342E-05   -.21004E-02
  23  Prefactor     .10015E-03    19.647        .82280E-05** at limit **
  24  Prefactor     .33191E-03    86.940       -.86515E-05** at limit **
  25  Normalizat    .96416        .18139        .66700E-05   -.76690E-04
  26  Prefactor     .98244        .22216       -.10047E-04   -.10481E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.00010104
  Prefactor  = 2.10485
  norm       = 5.09961
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 4.07299
  Prefactor  = 1.08127
  Prefactor  = 0.0001
  Prefactor  = 25.1638
  Prefactor  = 0.000100659
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.000203352
  Prefactor  = 16.9686
  Prefactor  = 1.05242
  norm       = 0.000100118
  norm       = 0.0001
  norm       = 0.000103751
  norm       = 0.0001
  Prefactor  = 2.4511
  Prefactor  = 37.4292
  Prefactor  = 26.4812
  Prefactor  = 0.000100148
  Prefactor  = 0.000331909
  Normalizat = 0.964159
  Prefactor  = 0.982443
 **********
 **   18 **HESSE 
 **********

 FCN=   5956.331     FROM HESSE     STATUS=OK           534 CALLS     3793 TOTAL
                     EDM=   .59E-05    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10104E-03    39.482        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     2.1049        68.711        .71307E-02   -1.5418    
   3  norm          5.0996        2.9610        .44496E-02   -1.5256    
   4  Prefactor     .10000E-03    2.7686        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    1.5465        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     4.0730        2.4830        .49950E-02   -1.5304    
   7  Prefactor     1.0813        13.748        .11496E-01   -1.5500    
   8  Prefactor     .10000E-03    5.2876        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     25.164        21.978        .19970E-02   -1.4704    
  10  Prefactor     .10066E-03    51.404        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    4.3556        .54271E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          .10000E-03    2.4187        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .20335E-03    36.065        .14409       -1.5706    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     16.969        30.051        .24336E-02   -1.4884    
  15  Prefactor     1.0524        23.412        .12129E-01   -1.5503    
  16  norm          .10012E-03    6.6088        .55509E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .10000E-03    11.356        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          .10375E-03    2.3150        .70682E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          .10000E-03    5.6750        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     2.4511        8.0647        .65051E-02   -1.5395    
  21  Prefactor     37.429        23.533        .16385E-02   -1.4484    
  22  Prefactor     26.481        86.713        .19487E-02   -1.4678    
  23  Prefactor     .10015E-03    42.262        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .33191E-03    720.56        .90728E-02   -1.5711    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Normalizat    .96416        .15970        .45718E-01   -.94241    
  26  Prefactor     .98244        .19421        .46048E-01   -.93317    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.92548e-06
Minuit parameter uncertainties:
  1  0.0128252
  2  24.0817
  3  2.96112
  4  1.75092e-07
  5  9.31146e-07
  6  2.48303
  7  7.71285
  8  2.20797e-05
  9  21.9847
  10  0.0116507
  11  3.12854e-05
  12  3.31172e-07
  13  0.122178
  14  30.0782
  15  9.93145
  16  0.00176313
  17  3.78e-05
  18  0.00589351
  19  3.17073e-06
  20  8.0683
  21  23.5389
  22  87.13
  23  0.00501338
  24  0.827719
  25  0.159775
  26  0.19435
Done.

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

Extracting fit parameters...

4FGL J1249.8+3707
   Spectrum: PowerLaw
313    Prefactor:  2.516e+01  2.198e+01  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:  9.824e-01  1.944e-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.642e-01  1.598e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 2.57
Ra Dec: 192.460 37.131
Photon Index (Fixed Index): 1.78 +/- 0.00
Photon Flux (Fixed Index): 2.29e-08 +/- 2.00e-08
Energy Flux (Fixed Index): 2.92e-05 +/- 2.55e-05

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

Saving results to:
/scratch/kocevski/938812/likelihoodResults_461980801_462240001_4FGL_J1249.8+3707_daily_bin859.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): 0
logL (Free Index) = 5955.66521825
delta logL = 0.665722679623

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5955.63414067
delta logL = 0.696800264426

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    7.1928       1.0000         .10000E-03   10000.    
     2 'Index     '    2.4928       1.0000          .0000       10.000    
     3 'Normalizat'    .93686       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .99919       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=   5955.634     FROM MIGRAD    STATUS=CONVERGED     84 CALLS      282 TOTAL
                     EDM=   .58E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     7.1892        20.042        .13215E-03   -.22084E-03
   2  Index         2.4930        1.0272        .34293E-02   -.11124E-03
   3  Normalizat    .93685        .18093        .22692E-03    .59431E-03
   4  Prefactor     .99922        .22374        .27527E-03    .38002E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 7.18923
  Index      = 2.49298
  Normalizat = 0.936851
  Prefactor  = 0.999216
 **********
 **   18 **HESSE 
 **********

 FCN=   5955.634     FROM HESSE     STATUS=OK            25 CALLS      307 TOTAL
                     EDM=   .57E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     7.1892        12.621        .52858E-05   -1.5172    
   2  Index         2.4930        .64986        .13717E-03   -.52522    
   3  Normalizat    .93685        .17891        .45384E-04   -.95177    
   4  Prefactor     .99922        .22216        .55054E-04   -.92756    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.71007e-10
Minuit parameter uncertainties:
  1  12.6255
  2  0.652328
  3  0.179022
  4  0.222365
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/938812': 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): 0
logL (Free Index) = 5955.6341406
delta logL = 0.696800327066

Extracting fit parameters...

4FGL J1249.8+3707
   Spectrum: PowerLaw
313    Prefactor:  7.189e+00  1.263e+01  1.000e-04  1.000e+04 ( 1.000e-14)
314        Index:  2.493e+00  6.523e-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:  9.992e-01  2.224e-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.369e-01  1.790e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 3.96
Ra Dec: 192.460 37.131
Photon Index (Free Index): 2.49 +/- 0.65
Photon Flux (Free Index): 4.79e-08 +/- 3.59e-08
Energy Flux (Free Index): 1.40e-05 +/- 1.08e-05

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/938812/cmap_HighResolution_461980801_462240001_4FGL_J1249.8+3707_daily_bin859.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.11e-03', comment='SUCCESS', photon_flux='2.29e-08', energy_flux2='1.40e-05', photon_flux_error='2.00e-08', dlogl='6.97e-01', energy_flux='2.92e-05', photon_flux2='4.79e-08', job_status='DONE', time_completed='2021-09-06 06:54:06.800604', photon_index_error2='0.65', photon_index2='2.49', ts='2.57', fit_tolerance='1e-08', GAL='0.98', photon_index_error='0.00', photon_flux_upper_limit='6.95e-08', energy_flux_error2='1.08e-05', EG='0.96', time_epoch_completed='1630936446.8', return_code='0', job_id='938812', GAL2='1.00', EG2='0.94', return_code2='0', energy_flux_error='2.55e-05', photon_flux_error2='3.59e-08', ts2='3.96', photon_index='1.78' WHERE bin_id='859' AND source_name='4FGL J1249.8+3707' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep  6 06:54:06 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0252>
Subject: Job 938812: <4FGL_J1249.8+3707_daily_bin859> in cluster <slac> Done

Job <4FGL_J1249.8+3707_daily_bin859> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Mon Sep  6 06:40:36 2021
Job was executed on host(s) <bullet0252>, 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:54:07 2021
Results reported at Mon Sep  6 06:54:07 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1249.8+3707_daily_bin859 192.46 37.1306 461980801 462240001 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 :                                   768.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             296.27 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   808 sec.
    Turnaround time :                            811 sec.

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

