/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 165 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 = 7424
number of fields = 27
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J1249.8+3707_daily_bin306
RA = 192.46, Dec = 37.1306
tmin = 318643201, tmax = 318902401
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='935780', job_status='RUN', time_executed='2021-09-06 06:33:49.135387', time_epoch_executed='1630935229.14' WHERE source_name='4FGL J1249.8+3707' and cadence='daily' and bin_id='306'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/935780

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/935780/ft1_4FGL_J1249.8+3707_daily_bin306.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/935780/ft2_4FGL_J1249.8+3707_daily_bin306.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/935780/ft1_4FGL_J1249.8+3707_daily_bin306.fits outfile=/scratch/kocevski/935780/ft1_filteredMKT_4FGL_J1249.8+3707_daily_bin306.fits ra=192.46 dec=37.1306 rad=12.0 tmin=318643201.0 tmax=318902401.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.40
user 3.17
sys 0.19

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/935780/ft1_filtered_4FGL_J1249.8+3707_daily_bin306.fits" evtable="EVENTS" scfile=/scratch/kocevski/935780/ft2_4FGL_J1249.8+3707_daily_bin306.fits sctable="SC_DATA" outfile=/scratch/kocevski/935780/ltcube_318643201_318902401_4FGL_J1249.8+3707_daily_bin306.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/935780/ft2_4FGL_J1249.8+3707_daily_bin306.fits
.....................!
real 12.27
user 11.84
sys 0.35

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/935780/ft1_filtered_4FGL_J1249.8+3707_daily_bin306.fits evtable="EVENTS" scfile=/scratch/kocevski/935780/ft2_4FGL_J1249.8+3707_daily_bin306.fits sctable="SC_DATA" expcube=/scratch/kocevski/935780/ltcube_318643201_318902401_4FGL_J1249.8+3707_daily_bin306.fits outfile=/scratch/kocevski/935780/expmap_318643201_318902401_4FGL_J1249.8+3707_daily_bin306.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/935780/ltcube_318643201_318902401_4FGL_J1249.8+3707_daily_bin306.fits
.....................!
real 191.45
user 187.11
sys 3.90

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/935780/ft1_filtered_4FGL_J1249.8+3707_daily_bin306.fits scfile=/scratch/kocevski/935780/ft2_4FGL_J1249.8+3707_daily_bin306.fits outfile=/scratch/kocevski/935780/cmap_318643201_318902401_4FGL_J1249.8+3707_daily_bin306.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.53
user 0.38
sys 0.14

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

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    1.5178       1.0000         .10000E-03   10000.    
     4 'Prefactor '    4.4800       1.0000         .10000E-03   10000.    
     5 'Prefactor '    2.8571       1.0000         .10000E-03   10000.    
     6 'Prefactor '    2.3090       1.0000         .10000E-03   10000.    
     7 'Prefactor '    4.2751       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10054E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    22.702       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    9.3041       1.0000         .10000E-03   10000.    
    12 'norm      '    1.6158       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    60.341       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .61302       1.0000         .10000E-03   10000.    
    16 'norm      '    4.9769       1.0000         .10000E-03   10000.    
    17 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    1.1788       1.0000         .10000E-03   10000.    
    19 'norm      '    .25648E-02   1.0000         .10000E-03   10000.    
    20 'Prefactor '    2.1389       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    23.403       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .33527E-03   1.0000         .10000E-03   10000.    
    25 'Normalizat'    .73838       1.0000         .10000E-01   10.000    
    26 'Prefactor '    1.3469       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=   5802.642     FROM MIGRAD    STATUS=CONVERGED    649 CALLS     3179 TOTAL
                     EDM=   .11E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY= 12.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    41.967        .11198E-06** at limit **
   2  Prefactor     .10000E-03    16.128       -.29457E-08** at limit **
   3  norm          1.5178        1.6950       -.77470E-08    .83612E-05
   4  Prefactor     4.4803        4.8524       -.50460E-07    .20913E-03
   5  Prefactor     2.8572        2.0278       -.11433E-07    .90483E-05
   6  Prefactor     2.3091        1.6458       -.52543E-08   -.81632E-05
   7  Prefactor     4.2752        5.0973       -.20074E-07   -.41417E-04
   8  Prefactor     .10000E-03    21.885       -.12086E-06** at limit **
   9  Prefactor     22.712        21.417        .78774E-07   -.12345E-03
  10  Prefactor     .10000E-03    40.234        .76207E-06** at limit **
  11  Prefactor     9.3235        8.0037        .59215E-06   -.46698E-03
  12  norm          1.6189        2.6943        .29374E-05    .54431E-03
  13  Prefactor     .10000E-03    9.9464       -.18461E-07** at limit **
  14  Prefactor     60.347        32.696       -.16361E-05   -.67153E-04
  15  Prefactor     .51587        81.080       -.27855E-04    .33597E-04
  16  norm          4.9961        6.5009        .89071E-06   -.23842E-03
  17  norm          .10000E-03    3.3988       -.15043E-07** at limit **
  18  norm          1.1891        2.6619       -.99015E-06   -.46352E-03
  19  norm          .10000E-03    46.584        .26201E-04** at limit **
  20  Prefactor     2.1392        3.1471        .46567E-06    .43582E-03
  21  Prefactor     .10000E-03    4.4298        .13271E-06** at limit **
  22  Prefactor     .10000E-03    27.672       -.31392E-06** at limit **
  23  Prefactor     23.403        14.986        .31045E-07   -.63111E-05
  24  Prefactor     .10008E-03    144.14        .54619E-06** at limit **
  25  Normalizat    .73826        .17261       -.77713E-06   -.77010E-04
  26  Prefactor     1.3471        .21696        .11474E-05    .24578E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  norm       = 1.51779
  Prefactor  = 4.48025
  Prefactor  = 2.85717
  Prefactor  = 2.30906
  Prefactor  = 4.27516
  Prefactor  = 0.000100001
  Prefactor  = 22.7123
  Prefactor  = 0.000100001
  Prefactor  = 9.32348
  norm       = 1.61889
  Prefactor  = 0.0001
  Prefactor  = 60.3467
  Prefactor  = 0.515871
  norm       = 4.99613
  norm       = 0.0001
  norm       = 1.18909
  norm       = 0.000100003
  Prefactor  = 2.13919
  Prefactor  = 0.0001
  Prefactor  = 0.000100002
  Prefactor  = 23.4028
  Prefactor  = 0.000100081
  Normalizat = 0.738255
  Prefactor  = 1.34706
 **********
 **   18 **HESSE 
 **********

 FCN=   5802.642     FROM HESSE     STATUS=OK           464 CALLS     3643 TOTAL
                     EDM=   .38E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    42.035        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    16.165        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          1.5178        1.6765        .10017E-03   -1.5462    
   4  Prefactor     4.4803        4.8547        .16966E-03   -1.5285    
   5  Prefactor     2.8572        2.0310        .87097E-04   -1.5370    
   6  Prefactor     2.3091        1.6451        .79879E-04   -1.5404    
   7  Prefactor     4.2752        5.0950        .18292E-03   -1.5294    
   8  Prefactor     .10000E-03    22.005        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     22.712        21.406        .84068E-04   -1.4754    
  10  Prefactor     .10000E-03    40.358        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     9.3235        8.2740        .13139E-03   -1.5097    
  12  norm          1.6189        5.5402        .13969E-02   -1.5453    
  13  Prefactor     .10000E-03    9.9473        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     60.347        36.431        .51651E-04   -1.4153    
  15  Prefactor     .51587        408.85        .56333E-02   -1.5564    
  16  norm          4.9961        6.9644        .90134E-03   -1.5261    
  17  norm          .10000E-03    3.4001        .13716E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          1.1891        3.3426        .17903E-03   -1.5490    
  19  norm          .10000E-03    6.9708        .51238E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     2.1392        3.1150        .14978E-03   -1.5415    
  21  Prefactor     .10000E-03    4.4351        .15654E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    27.733        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     23.403        14.991        .82801E-04   -1.4740    
  24  Prefactor     .10008E-03    146.39        .21342E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Normalizat    .73826        .20529        .26270E-03   -1.0240    
  26  Prefactor     1.3471        .25862        .26166E-03   -.81918    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.81575e-09
Minuit parameter uncertainties:
  1  0.000477771
  2  2.3945e-05
  3  1.67657
  4  4.85515
  5  2.03103
  6  1.64509
  7  5.09551
  8  0.000315564
  9  21.4134
  10  0.000435538
  11  8.27504
  12  5.54198
  13  9.88691e-06
  14  36.4445
  15  29.2453
  16  6.96555
  17  2.12344e-06
  18  3.34311
  19  0.000267146
  20  3.11526
  21  2.13043e-05
  22  0.000505943
  23  14.9937
  24  0.00691158
  25  0.205503
  26  0.258866
Done.

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

Extracting fit parameters...

4FGL J1249.8+3707
   Spectrum: PowerLaw
313    Prefactor:  2.271e+01  2.141e+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:  1.347e+00  2.589e-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:  7.383e-01  2.055e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 2.40
Ra Dec: 192.460 37.131
Photon Index (Fixed Index): 1.78 +/- 0.00
Photon Flux (Fixed Index): 2.07e-08 +/- 1.95e-08
Energy Flux (Fixed Index): 2.63e-05 +/- 2.48e-05

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

Saving results to:
/scratch/kocevski/935780/likelihoodResults_318643201_318902401_4FGL_J1249.8+3707_daily_bin306.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) = 5800.4839566
delta logL = 2.1581631194

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5800.48390366
delta logL = 2.15821606246

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    1.0177       1.0000         .10000E-03   10000.    
     2 'Index     '    3.3908       1.0000          .0000       10.000    
     3 'Normalizat'    .61237       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.4450       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=   5800.484     FROM MIGRAD    STATUS=CONVERGED     51 CALLS      234 TOTAL
                     EDM=   .15E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     1.0177        6.4105        .77907E-02   -.55995E-03
   2  Index         3.3908        1.4398        .51796E-01    .29852E-03
   3  Normalizat    .61237        .56344E-01    .64585E-01    .16996E-04
   4  Prefactor     1.4450        .70312E-01    .57350E-01    .17847E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.01769
  Index      = 3.39079
  Normalizat = 0.612371
  Prefactor  = 1.44502
 **********
 **   18 **HESSE 
 **********

 FCN=   5800.484     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      267 TOTAL
                     EDM=   .12E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     1.0177        10.733        .34824E-04   -1.5506    
   2  Index         3.3908        2.0492        .21204E-02   -.32767    
   3  Normalizat    .61237        .20658        .28578E-03   -1.0746    
   4  Prefactor     1.4450        .25462        .25358E-03   -.79091    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.15917e-08
Minuit parameter uncertainties:
  1  6.61121
  2  2.11933
  3  0.206844
  4  0.254847
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/935780': 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) = 5800.48390363
delta logL = 2.15821608725

Extracting fit parameters...

4FGL J1249.8+3707
   Spectrum: PowerLaw
313    Prefactor:  1.018e+00  6.611e+00  1.000e-04  1.000e+04 ( 1.000e-14)
314        Index:  3.391e+00  2.119e+00  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.445e+00  2.548e-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:  6.124e-01  2.068e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 7.03
Ra Dec: 192.460 37.131
Photon Index (Free Index): 3.39 +/- 2.12
Photon Flux (Free Index): 1.17e-07 +/- 7.67e-08
Energy Flux (Free Index): 2.00e-05 +/- 1.01e-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/935780/cmap_HighResolution_318643201_318902401_4FGL_J1249.8+3707_daily_bin306.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.15e-03', comment='SUCCESS', photon_flux='2.07e-08', energy_flux2='2.00e-05', photon_flux_error='1.95e-08', dlogl='2.16e+00', energy_flux='2.63e-05', photon_flux2='1.17e-07', job_status='DONE', time_completed='2021-09-06 06:46:20.907282', photon_index_error2='2.12', photon_index2='3.39', ts='2.40', fit_tolerance='1e-08', GAL='1.35', photon_index_error='0.00', photon_flux_upper_limit='7.01e-08', energy_flux_error2='1.01e-05', EG='0.74', time_epoch_completed='1630935980.91', return_code='0', job_id='935780', GAL2='1.45', EG2='0.61', return_code2='102', energy_flux_error='2.48e-05', photon_flux_error2='7.67e-08', ts2='7.03', photon_index='1.78' WHERE bin_id='306' AND source_name='4FGL J1249.8+3707' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep  6 06:46:20 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0114>
Subject: Job 935780: <4FGL_J1249.8+3707_daily_bin306> in cluster <slac> Done

Job <4FGL_J1249.8+3707_daily_bin306> was submitted from host <rhel6-64h> by user <kocevski> in cluster <slac> at Mon Sep  6 06:30:50 2021
Job was executed on host(s) <bullet0114>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Sep  6 06:30:52 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:30:52 2021
Terminated at Mon Sep  6 06:46:21 2021
Results reported at Mon Sep  6 06:46:21 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1249.8+3707_daily_bin306 192.46 37.1306 318643201 318902401 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 :                                   748.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             278.17 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   929 sec.
    Turnaround time :                            931 sec.

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

