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


Performing analysis on: 4FGL_J1249.8+3707_daily_bin252
RA = 192.46, Dec = 37.1306
tmin = 304646401, tmax = 304905601
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='935696', job_status='RUN', time_executed='2021-09-06 06:33:12.652056', time_epoch_executed='1630935192.65' WHERE source_name='4FGL J1249.8+3707' and cadence='daily' and bin_id='252'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/935696

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/935696/ft1_4FGL_J1249.8+3707_daily_bin252.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/935696/ft2_4FGL_J1249.8+3707_daily_bin252.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/935696/ft1_4FGL_J1249.8+3707_daily_bin252.fits outfile=/scratch/kocevski/935696/ft1_filteredMKT_4FGL_J1249.8+3707_daily_bin252.fits ra=192.46 dec=37.1306 rad=12.0 tmin=304646401.0 tmax=304905601.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.44
user 3.21
sys 0.21

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/935696/ft1_filtered_4FGL_J1249.8+3707_daily_bin252.fits evtable="EVENTS" scfile=/scratch/kocevski/935696/ft2_4FGL_J1249.8+3707_daily_bin252.fits sctable="SC_DATA" expcube=/scratch/kocevski/935696/ltcube_304646401_304905601_4FGL_J1249.8+3707_daily_bin252.fits outfile=/scratch/kocevski/935696/expmap_304646401_304905601_4FGL_J1249.8+3707_daily_bin252.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/935696/ltcube_304646401_304905601_4FGL_J1249.8+3707_daily_bin252.fits
.....................!
real 190.74
user 185.81
sys 4.56

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/935696/ft1_filtered_4FGL_J1249.8+3707_daily_bin252.fits scfile=/scratch/kocevski/935696/ft2_4FGL_J1249.8+3707_daily_bin252.fits outfile=/scratch/kocevski/935696/cmap_304646401_304905601_4FGL_J1249.8+3707_daily_bin252.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.55
user 0.36
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/935696/ft1_filtered_4FGL_J1249.8+3707_daily_bin252.fits scfile=/scratch/kocevski/935696/ft2_4FGL_J1249.8+3707_daily_bin252.fits outfile=/scratch/kocevski/935696/cmap_HighResolution_304646401_304905601_4FGL_J1249.8+3707_daily_bin252.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.56
user 0.38
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    24.606       1.0000         .10000E-03   10000.    
     3 'norm      '    14.067       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10016E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    4.1707       1.0000         .10000E-03   10000.    
     7 'Prefactor '    3.3698       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    27.308       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    4.3632       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10112E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10026E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    3.6955       1.0000         .10000E-03   10000.    
    17 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    .10616E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    2.6781       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .92068E-01   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .11585E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    7.8033       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    25 'Normalizat'    1.3588       1.0000         .10000E-01   10.000    
    26 'Prefactor '    .66873       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=   5471.205     FROM MIGRAD    STATUS=CONVERGED    645 CALLS     3150 TOTAL
                     EDM=   .65E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    30.379       -.43829E-05** at limit **
   2  Prefactor     24.575        34.516       -.69436E-05   -.10323E-03
   3  norm          14.067        4.1987        .66240E-07    .27493E-04
   4  Prefactor     .10000E-03    2.5483        .10013E-07** at limit **
   5  Prefactor     .10000E-03    .73417        .82762E-08** at limit **
   6  Prefactor     4.1704        2.5685        .41989E-08   -.85841E-05
   7  Prefactor     3.3703        7.8141       -.30510E-07   -.56718E-04
   8  Prefactor     .10000E-03    12.382       -.85094E-08** at limit **
   9  Prefactor     27.309        20.247       -.10153E-09    .37064E-05
  10  Prefactor     .10000E-03    33.705        .54275E-05** at limit **
  11  Prefactor     .10000E-03    1.9353       -.24462E-07** at limit **
  12  norm          4.3642        2.8668        .60178E-06   -.24844E-02
  13  Prefactor     .10000E-03    92.007        .20073E-05** at limit **
  14  Prefactor     .10000E-03    33.188        .53114E-05** at limit **
  15  Prefactor     .10000E-03    5.8322        .19670E-07** at limit **
  16  norm          3.6954        3.5024       -.13453E-07    .32375E-04
  17  norm          .10000E-03    6.3523        .23819E-07** at limit **
  18  norm          .10000E-03    2.4759       -.40062E-06** at limit **
  19  norm          2.6805        6.3979        .14938E-06    .42095E-04
  20  Prefactor     .10000E-03    1.4249       -.46037E-08** at limit **
  21  Prefactor     .60735E-01    5.9026       -.56160E-06    .16241E-03
  22  Prefactor     .10000E-03    161.03        .47295E-05** at limit **
  23  Prefactor     7.8036        13.930       -.10910E-06    .57649E-05
  24  Prefactor     .10000E-03    36.819       -.75615E-05** at limit **
  25  Normalizat    1.3591        .18180        .70451E-06    .42389E-04
  26  Prefactor     .66835        .22375       -.29339E-06    .61906E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 24.575
  norm       = 14.0666
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 4.17043
  Prefactor  = 3.37031
  Prefactor  = 0.0001
  Prefactor  = 27.3092
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 4.3642
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 3.69542
  norm       = 0.0001
  norm       = 0.0001
  norm       = 2.68053
  Prefactor  = 0.0001
  Prefactor  = 0.0607345
  Prefactor  = 0.0001
  Prefactor  = 7.80356
  Prefactor  = 0.000100001
  Normalizat = 1.3591
  Prefactor  = 0.66835
 **********
 **   18 **HESSE 
 **********

 FCN=   5471.205     FROM HESSE     STATUS=OK           460 CALLS     3610 TOTAL
                     EDM=   .49E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    30.474        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     24.575        34.842        .80755E-04   -1.4716    
   3  norm          14.067        4.1949        .79364E-04   -1.4958    
   4  Prefactor     .10000E-03    2.5550        .11531E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    .73543        .61849E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     4.1704        2.5643        .88470E-04   -1.5300    
   7  Prefactor     3.3703        7.7975        .22044E-03   -1.5341    
   8  Prefactor     .10000E-03    12.402        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     27.309        20.244        .76662E-04   -1.4662    
  10  Prefactor     .10000E-03    33.782        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    1.9412        .10047E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          4.3642        5.4439        .90826E-03   -1.5290    
  13  Prefactor     .10000E-03    92.375        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    33.472        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    5.8517        .17445E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          3.6954        3.5044        .13085E-03   -1.5323    
  17  norm          .10000E-03    6.3589        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          .10000E-03    8.2012        .19217E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          2.6805        5.5557        .23846E-03   -1.5381    
  20  Prefactor     .10000E-03    1.4460        .86045E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .60735E-01    8.9101        .63979E-01   -1.5659    
  22  Prefactor     .10000E-03    162.99        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     7.8036        13.924        .14355E-03   -1.5149    
  24  Prefactor     .10000E-03    37.030        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Normalizat    1.3591        .21329        .20741E-03   -.81819    
  26  Prefactor     .66835        .26115        .35132E-03   -1.0478    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.88692e-09
Minuit parameter uncertainties:
  1  0.000179143
  2  34.8713
  3  4.19496
  4  3.96447e-06
  5  2.11476e-07
  6  2.56433
  7  7.79983
  8  5.32532e-06
  9  20.2494
  10  0.000225593
  11  1.14045e-06
  12  5.44452
  13  6.24388e-05
  14  0.000179019
  15  2.4457e-06
  16  3.50458
  17  1.80484e-06
  18  5.64898e-05
  19  5.55673
  20  6.14163e-07
  21  1.47027
  22  0.000316671
  23  13.9302
  24  0.000353813
  25  0.213433
  26  0.26163
Done.

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

Extracting fit parameters...

4FGL J1249.8+3707
   Spectrum: PowerLaw
313    Prefactor:  2.731e+01  2.025e+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:  6.684e-01  2.616e-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.359e+00  2.134e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 3.32
Ra Dec: 192.460 37.131
Photon Index (Fixed Index): 1.78 +/- 0.00
Photon Flux (Fixed Index): 2.49e-08 +/- 1.85e-08
Energy Flux (Fixed Index): 3.17e-05 +/- 2.35e-05

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

Saving results to:
/scratch/kocevski/935696/likelihoodResults_304646401_304905601_4FGL_J1249.8+3707_daily_bin252.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) = 5471.20362879
delta logL = 0.00115562896372

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5471.20267919
delta logL = 0.00210523169517

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    26.169       1.0000         .10000E-03   10000.    
     2 'Index     '    1.8094       1.0000          .0000       10.000    
     3 'Normalizat'    1.3588       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .66791       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=   5471.203     FROM MIGRAD    STATUS=CONVERGED     63 CALLS      233 TOTAL
                     EDM=   .70E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     26.123        533.89        .19577E-02    .59174E-05
   2  Index         1.8073        2.8000        .12699        .10526E-03
   3  Normalizat    1.3586        .78958E-01    .46926E-01   -.43669E-04
   4  Prefactor     .66862        .88937E-01    .79328E-01   -.41170E-06
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 26.1232
  Index      = 1.80731
  Normalizat = 1.35861
  Prefactor  = 0.668624
 **********
 **   18 **HESSE 
 **********

 FCN=   5471.203     FROM HESSE     STATUS=OK            31 CALLS      264 TOTAL
                     EDM=   .54E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     26.123        27.966        .78309E-04   -1.4685    
   2  Index         1.8073        .43783        .47259E-02   -.69260    
   3  Normalizat    1.3586        .20961        .20744E-03   -.81833    
   4  Prefactor     .66862        .25935        .35125E-03   -1.0477    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.39056e-12
Minuit parameter uncertainties:
  1  27.9801
  2  0.438784
  3  0.209739
  4  0.259817
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/935696': 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) = 5471.20263495
delta logL = 0.00214946779215

Extracting fit parameters...

4FGL J1249.8+3707
   Spectrum: PowerLaw
313    Prefactor:  2.612e+01  2.798e+01  1.000e-04  1.000e+04 ( 1.000e-14)
314        Index:  1.807e+00  4.388e-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.686e-01  2.598e-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.359e+00  2.097e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 3.32
Ra Dec: 192.460 37.131
Photon Index (Free Index): 1.81 +/- 0.44
Photon Flux (Free Index): 2.55e-08 +/- 2.05e-08
Energy Flux (Free Index): 2.98e-05 +/- 3.70e-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/935696/cmap_HighResolution_304646401_304905601_4FGL_J1249.8+3707_daily_bin252.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.08e-03', comment='SUCCESS', photon_flux='2.49e-08', energy_flux2='2.98e-05', photon_flux_error='1.85e-08', dlogl='2.15e-03', energy_flux='3.17e-05', photon_flux2='2.55e-08', job_status='DONE', time_completed='2021-09-06 06:45:26.531406', photon_index_error2='0.44', photon_index2='1.81', ts='3.32', fit_tolerance='1e-08', GAL='0.67', photon_index_error='0.00', photon_flux_upper_limit='6.91e-08', energy_flux_error2='3.70e-05', EG='1.36', time_epoch_completed='1630935926.53', return_code='0', job_id='935696', GAL2='0.67', EG2='1.36', return_code2='0', energy_flux_error='2.35e-05', photon_flux_error2='2.05e-08', ts2='3.32', photon_index='1.78' WHERE bin_id='252' AND source_name='4FGL J1249.8+3707' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep  6 06:45:26 PDT 2021


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

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1249.8+3707_daily_bin252 192.46 37.1306 304646401 304905601 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 :                                   732.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             298.32 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              7
    Max Threads :                                21
    Run time :                                   880 sec.
    Turnaround time :                            882 sec.

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

