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


Performing analysis on: 4FGL_J1249.8+3707_daily_bin455
RA = 192.46, Dec = 37.1306
tmin = 357264001, tmax = 357523201
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='937094', job_status='RUN', time_executed='2021-09-06 06:38:55.576085', time_epoch_executed='1630935535.58' WHERE source_name='4FGL J1249.8+3707' and cadence='daily' and bin_id='455'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/937094

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/937094/ft1_4FGL_J1249.8+3707_daily_bin455.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/937094/ft2_4FGL_J1249.8+3707_daily_bin455.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/937094/ft1_4FGL_J1249.8+3707_daily_bin455.fits outfile=/scratch/kocevski/937094/ft1_filteredMKT_4FGL_J1249.8+3707_daily_bin455.fits ra=192.46 dec=37.1306 rad=12.0 tmin=357264001.0 tmax=357523201.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.64
user 3.40
sys 0.21

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/937094/ft1_filtered_4FGL_J1249.8+3707_daily_bin455.fits evtable="EVENTS" scfile=/scratch/kocevski/937094/ft2_4FGL_J1249.8+3707_daily_bin455.fits sctable="SC_DATA" expcube=/scratch/kocevski/937094/ltcube_357264001_357523201_4FGL_J1249.8+3707_daily_bin455.fits outfile=/scratch/kocevski/937094/expmap_357264001_357523201_4FGL_J1249.8+3707_daily_bin455.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/937094/ltcube_357264001_357523201_4FGL_J1249.8+3707_daily_bin455.fits
.....................!
real 192.10
user 186.48
sys 5.25

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/937094/ft1_filtered_4FGL_J1249.8+3707_daily_bin455.fits scfile=/scratch/kocevski/937094/ft2_4FGL_J1249.8+3707_daily_bin455.fits outfile=/scratch/kocevski/937094/cmap_357264001_357523201_4FGL_J1249.8+3707_daily_bin455.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.38
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/937094/ft1_filtered_4FGL_J1249.8+3707_daily_bin455.fits scfile=/scratch/kocevski/937094/ft2_4FGL_J1249.8+3707_daily_bin455.fits outfile=/scratch/kocevski/937094/cmap_HighResolution_357264001_357523201_4FGL_J1249.8+3707_daily_bin455.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.37
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    102.83       1.0000         .10000E-03   10000.    
     2 'Prefactor '    69.245       1.0000         .10000E-03   10000.    
     3 'norm      '    5.7308       1.0000         .10000E-03   10000.    
     4 'Prefactor '    2.9837       1.0000         .10000E-03   10000.    
     5 'Prefactor '    4.5767       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .34156       1.0000         .10000E-03   10000.    
     7 'Prefactor '    42.918       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10976E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    10.293       1.0000         .10000E-03   10000.    
    10 'Prefactor '    12.852       1.0000         .10000E-03   10000.    
    11 'Prefactor '    4.8463       1.0000         .10000E-03   10000.    
    12 'norm      '    1.2221       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10015E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .10004E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    .11738E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    .10006E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .23563E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    15.877       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .16091E-02   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    66.457       1.0000         .10000E-03   10000.    
    25 'Normalizat'    .78160       1.0000         .10000E-01   10.000    
    26 'Prefactor '    1.1275       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=   5577.048     FROM MIGRAD    STATUS=CONVERGED    639 CALLS     3171 TOTAL
                     EDM=   .14E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     102.83        68.645        .45957E-06   -.16418E-05
   2  Prefactor     69.245        42.100       -.27969E-06    .11625E-05
   3  norm          5.7299        5.9691        .35862E-05   -.10900E-02
   4  Prefactor     2.9837        3.9830       -.15996E-06   -.93354E-04
   5  Prefactor     4.5768        4.5469       -.17886E-05    .42279E-03
   6  Prefactor     .34176        2.6756       -.11311E-05   -.31963E-04
   7  Prefactor     42.915        17.269        .27125E-06    .23200E-03
   8  Prefactor     .10000E-03    84.171        .39022E-05** at limit **
   9  Prefactor     10.294        19.571        .90110E-07   -.30163E-04
  10  Prefactor     12.850        52.590       -.25857E-06   -.26062E-04
  11  Prefactor     4.8443        6.9603        .15405E-06   -.17983E-03
  12  norm          1.2206        3.1787        .39721E-06   -.29713E-03
  13  Prefactor     .10000E-03    28.953       -.15782E-05** at limit **
  14  Prefactor     .10000E-03    21.599        .13352E-05** at limit **
  15  Prefactor     .10000E-03    9.3920        .92680E-07** at limit **
  16  norm          .10000E-03    3.3399       -.73085E-08** at limit **
  17  norm          .10000E-03    5.1531        .80313E-08** at limit **
  18  norm          .10000E-03    2.4492        .86731E-06** at limit **
  19  norm          .10000E-03    3.1022        .55571E-07** at limit **
  20  Prefactor     .10000E-03    2.7229        .14373E-05** at limit **
  21  Prefactor     15.837        19.883       -.30636E-05   -.48663E-03
  22  Prefactor     .10014E-03    293.94       -.33143E-04** at limit **
  23  Prefactor     .10000E-03    15.527       -.28749E-06** at limit **
  24  Prefactor     66.489        80.383        .38396E-05    .96833E-04
  25  Normalizat    .78162        .18067       -.17075E-05   -.18459E-03
  26  Prefactor     1.1274        .21520       -.23912E-06   -.18464E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 102.831
  Prefactor  = 69.2449
  norm       = 5.72994
  Prefactor  = 2.98375
  Prefactor  = 4.57678
  Prefactor  = 0.341764
  Prefactor  = 42.9149
  Prefactor  = 0.000100002
  Prefactor  = 10.2943
  Prefactor  = 12.8496
  Prefactor  = 4.84434
  norm       = 1.22062
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 15.8365
  Prefactor  = 0.000100143
  Prefactor  = 0.0001
  Prefactor  = 66.4894
  Normalizat = 0.781616
  Prefactor  = 1.12741
 **********
 **   18 **HESSE 
 **********

 FCN=   5577.048     FROM HESSE     STATUS=OK           454 CALLS     3625 TOTAL
                     EDM=   .34E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     102.83        68.652        .39651E-04   -1.3676    
   2  Prefactor     69.245        42.079        .48238E-04   -1.4042    
   3  norm          5.7299        5.9280        .64693E-03   -1.5229    
   4  Prefactor     2.9837        3.9749        .16760E-03   -1.5362    
   5  Prefactor     4.5768        4.5416        .11302E-03   -1.5280    
   6  Prefactor     .34176        4.6335        .20816E-02   -1.5591    
   7  Prefactor     42.915        16.972        .61194E-04   -1.4397    
   8  Prefactor     .10000E-03    87.783        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     10.294        19.512        .12489E-03   -1.5066    
  10  Prefactor     12.850        52.475        .11173E-03   -1.4991    
  11  Prefactor     4.8443        6.9212        .18273E-03   -1.5268    
  12  norm          1.2206        3.0909        .20430E-03   -1.5487    
  13  Prefactor     .10000E-03    29.018        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    21.722        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    9.4306        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10000E-03    3.3692        .13315E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .10000E-03    5.1571        .16557E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          .10000E-03    6.6006        .21126E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          .10000E-03    3.1108        .12835E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    7.8260        .20712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     15.837        17.904        .10052E-03   -1.4912    
  22  Prefactor     .10014E-03    310.97        .20415E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    15.620        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     66.489        80.950        .49232E-04   -1.4075    
  25  Normalizat    .78162        .21447        .25987E-03   -1.0075    
  26  Prefactor     1.1274        .25663        .27181E-03   -.88595    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.41203e-08
Minuit parameter uncertainties:
  1  68.705
  2  42.0969
  3  5.9286
  4  3.9753
  5  4.54195
  6  2.51666
  7  16.9737
  8  0.000819866
  9  19.5243
  10  52.0128
  11  6.92238
  12  3.09134
  13  0.000199247
  14  0.00017429
  15  1.65488e-05
  16  2.7052e-06
  17  2.95475e-06
  18  6.70407e-06
  19  2.02112e-06
  20  0.000159474
  21  17.9105
  22  0.0134099
  23  7.93331e-06
  24  81.084
  25  0.214702
  26  0.256908
Done.

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

Extracting fit parameters...

4FGL J1249.8+3707
   Spectrum: PowerLaw
313    Prefactor:  1.029e+01  1.952e+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.127e+00  2.569e-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.816e-01  2.147e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/937094/likelihoodResults_357264001_357523201_4FGL_J1249.8+3707_daily_bin455.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) = 5576.7367533
delta logL = 0.311424869192

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5576.73394804
delta logL = 0.314230123611

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    11.662       1.0000         .10000E-03   10000.    
     2 'Index     '    .97185       1.0000          .0000       10.000    
     3 'Normalizat'    .78339       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1302       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=   5576.734     FROM MIGRAD    STATUS=CONVERGED     93 CALLS      278 TOTAL
                     EDM=   .90E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     11.661        19.100        .11731E-03   -.18413E-05
   2  Index         .97184        .88174        .15892E-01   -.99044E-04
   3  Normalizat    .78357        .20474        .25946E-03   -.21820E-04
   4  Prefactor     1.1299        .25400        .27156E-03   -.26165E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 11.6612
  Index      = 0.971843
  Normalizat = 0.783572
  Prefactor  = 1.12994
 **********
 **   18 **HESSE 
 **********

 FCN=   5576.734     FROM HESSE     STATUS=OK            25 CALLS      303 TOTAL
                     EDM=   .17E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     11.661        19.646        .46924E-05   -1.5025    
   2  Index         .97184        .90623        .31784E-02   -.93674    
   3  Normalizat    .78357        .20496        .10379E-04   -1.0068    
   4  Prefactor     1.1299        .25427        .10862E-04   -.88515    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.74838e-12
Minuit parameter uncertainties:
  1  19.6574
  2  0.920995
  3  0.205158
  4  0.254542
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/937094': 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) = 5576.73394761
delta logL = 0.314230552455

Extracting fit parameters...

4FGL J1249.8+3707
   Spectrum: PowerLaw
313    Prefactor:  1.166e+01  1.966e+01  1.000e-04  1.000e+04 ( 1.000e-14)
314        Index:  9.718e-01  9.210e-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:  1.130e+00  2.545e-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.836e-01  2.052e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.09
Ra Dec: 192.460 37.131
Photon Index (Free Index): 0.97 +/- 0.92
Photon Flux (Free Index): 3.21e-09 +/- 5.64e-09
Energy Flux (Free Index): 4.98e-05 +/- 8.86e-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/937094/cmap_HighResolution_357264001_357523201_4FGL_J1249.8+3707_daily_bin455.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.11e-03', comment='SUCCESS', energy_flux2='4.98e-05', dlogl='3.14e-01', photon_flux2='3.21e-09', job_status='DONE', time_completed='2021-09-06 06:50:55.822265', photon_index_error2='0.92', photon_index2='0.97', ts='0.47', fit_tolerance='1e-08', GAL='1.13', photon_index_error='0.00', photon_flux_upper_limit='5.59e-08', energy_flux_error2='8.86e-05', EG='0.78', time_epoch_completed='1630936255.82', return_code='0', job_id='937094', GAL2='1.13', EG2='0.78', return_code2='0', photon_flux_error2='5.64e-09', ts2='1.09', photon_index='1.78' WHERE bin_id='455' AND source_name='4FGL J1249.8+3707' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep  6 06:50:55 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0155>
Subject: Job 937094: <4FGL_J1249.8+3707_daily_bin455> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1249.8+3707_daily_bin455 192.46 37.1306 357264001 357523201 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 :                                   718.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             274.63 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   928 sec.
    Turnaround time :                            929 sec.

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

