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


Performing analysis on: 4FGL_J1249.8+3707_daily_bin290
RA = 192.46, Dec = 37.1306
tmin = 314496001, tmax = 314755201
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='935756', job_status='RUN', time_executed='2021-09-06 06:33:17.460056', time_epoch_executed='1630935197.46' WHERE source_name='4FGL J1249.8+3707' and cadence='daily' and bin_id='290'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/935756

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/935756/ft1_4FGL_J1249.8+3707_daily_bin290.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/935756/ft2_4FGL_J1249.8+3707_daily_bin290.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/935756/ft1_4FGL_J1249.8+3707_daily_bin290.fits outfile=/scratch/kocevski/935756/ft1_filteredMKT_4FGL_J1249.8+3707_daily_bin290.fits ra=192.46 dec=37.1306 rad=12.0 tmin=314496001.0 tmax=314755201.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.39
user 3.14
sys 0.22

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/935756/ft2_4FGL_J1249.8+3707_daily_bin290.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/935756/ft1_filteredMKT_4FGL_J1249.8+3707_daily_bin290.fits evtable="EVENTS" outfile="/scratch/kocevski/935756/ft1_filtered_4FGL_J1249.8+3707_daily_bin290.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.51
user 0.33
sys 0.14

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/935756/ft1_filtered_4FGL_J1249.8+3707_daily_bin290.fits evtable="EVENTS" scfile=/scratch/kocevski/935756/ft2_4FGL_J1249.8+3707_daily_bin290.fits sctable="SC_DATA" expcube=/scratch/kocevski/935756/ltcube_314496001_314755201_4FGL_J1249.8+3707_daily_bin290.fits outfile=/scratch/kocevski/935756/expmap_314496001_314755201_4FGL_J1249.8+3707_daily_bin290.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/935756/ltcube_314496001_314755201_4FGL_J1249.8+3707_daily_bin290.fits
.....................!
real 192.43
user 186.35
sys 5.51

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/935756/ft1_filtered_4FGL_J1249.8+3707_daily_bin290.fits scfile=/scratch/kocevski/935756/ft2_4FGL_J1249.8+3707_daily_bin290.fits outfile=/scratch/kocevski/935756/cmap_314496001_314755201_4FGL_J1249.8+3707_daily_bin290.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/935756/ft1_filtered_4FGL_J1249.8+3707_daily_bin290.fits scfile=/scratch/kocevski/935756/ft2_4FGL_J1249.8+3707_daily_bin290.fits outfile=/scratch/kocevski/935756/cmap_HighResolution_314496001_314755201_4FGL_J1249.8+3707_daily_bin290.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/935756/ft1_filtered_4FGL_J1249.8+3707_daily_bin290.fits evtable="EVENTS" scfile=/scratch/kocevski/935756/ft2_4FGL_J1249.8+3707_daily_bin290.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/935756/Model_4FGL_J1249.8+3707_daily_bin290.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/935756/ft1_filtered_4FGL_J1249.8+3707_daily_bin290.fits.....................!
real 50.58
user 49.20
sys 1.26

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    30.242       1.0000         .10000E-03   10000.    
     3 'norm      '    12.449       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .53152E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    4.2619       1.0000         .10000E-03   10000.    
     7 'Prefactor '    19.735       1.0000         .10000E-03   10000.    
     8 'Prefactor '    30.159       1.0000         .10000E-03   10000.    
     9 'Prefactor '    13.575       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    11.674       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10107E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    6.7248       1.0000         .10000E-03   10000.    
    18 'norm      '    3.4367       1.0000         .10000E-03   10000.    
    19 'norm      '    1.6146       1.0000         .10000E-03   10000.    
    20 'Prefactor '    1.3729       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10138E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .13019E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    58.603       1.0000         .10000E-03   10000.    
    25 'Normalizat'    .76468       1.0000         .10000E-01   10.000    
    26 'Prefactor '    1.0737       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=   6157.112     FROM MIGRAD    STATUS=CONVERGED    620 CALLS     3078 TOTAL
                     EDM=   .12E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    15.061        .56953E-07** at limit **
   2  Prefactor     30.243        29.766        .43964E-07   -.38182E-05
   3  norm          12.448        3.8927        .67755E-09   -.20686E-04
   4  Prefactor     .10000E-03    4.4172        .12610E-06** at limit **
   5  Prefactor     .10000E-03    1.0606        .27654E-08** at limit **
   6  Prefactor     4.2619        2.4001        .18255E-07   -.27211E-04
   7  Prefactor     19.735        10.910        .10181E-06   -.25671E-04
   8  Prefactor     30.159        19.304        .18626E-07    .22914E-05
   9  Prefactor     13.576        14.824       -.14478E-07   -.15197E-04
  10  Prefactor     .10000E-03    25.368        .10652E-05** at limit **
  11  Prefactor     .10000E-03    1.2383        .92315E-09** at limit **
  12  norm          11.677        4.9456       -.29500E-07   -.62733E-04
  13  Prefactor     .10000E-03    17.006        .58076E-06** at limit **
  14  Prefactor     .10000E-03    14.731       -.29929E-06** at limit **
  15  Prefactor     .10000E-03    3.1460       -.13273E-08** at limit **
  16  norm          .10000E-03    1.2475       -.28289E-08** at limit **
  17  norm          6.7252        10.033        .19201E-05   -.18645E-03
  18  norm          3.4378        3.7215       -.24534E-06    .44803E-04
  19  norm          1.6146        5.1793        .85417E-06   -.67525E-04
  20  Prefactor     1.3685        2.4217        .14780E-06    .33927E-04
  21  Prefactor     .10000E-03    21.756       -.17000E-05** at limit **
  22  Prefactor     .10000E-03    108.72       -.31798E-06** at limit **
  23  Prefactor     .10000E-03    5.6869        .50928E-08** at limit **
  24  Prefactor     58.589        48.323       -.14838E-05   -.16357E-03
  25  Normalizat    .76477        .15406        .10977E-06   -.10903E-04
  26  Prefactor     1.0736        .19676       -.37641E-06    .19506E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 30.2428
  norm       = 12.4482
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 4.26194
  Prefactor  = 19.7347
  Prefactor  = 30.1587
  Prefactor  = 13.5759
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  norm       = 11.6769
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 6.72521
  norm       = 3.43777
  norm       = 1.61463
  Prefactor  = 1.36848
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 58.5887
  Normalizat = 0.764774
  Prefactor  = 1.07358
 **********
 **   18 **HESSE 
 **********

 FCN=   6157.112     FROM HESSE     STATUS=OK           456 CALLS     3534 TOTAL
                     EDM=   .27E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    15.067        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     30.243        29.725        .72857E-04   -1.4608    
   3  norm          12.448        3.8811        .82072E-04   -1.5002    
   4  Prefactor     .10000E-03    10.921        .31858E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    1.0658        .78678E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     4.2619        2.3972        .86413E-04   -1.5295    
   7  Prefactor     19.735        10.910        .45080E-03   -1.4819    
   8  Prefactor     30.159        19.309        .72957E-04   -1.4609    
   9  Prefactor     13.576        14.826        .10871E-03   -1.4971    
  10  Prefactor     .10000E-03    25.793        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    1.2391        .85267E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          11.677        4.9487        .10842E-03   -1.5024    
  13  Prefactor     .10000E-03    17.135        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    14.846        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    3.1485        .13592E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10000E-03    1.2545        .85573E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          6.7252        10.227        .77366E-03   -1.5189    
  18  norm          3.4378        3.7520        .11672E-03   -1.5337    
  19  norm          1.6146        5.2147        .24267E-03   -1.5454    
  20  Prefactor     1.3685        2.3845        .15413E-03   -1.5474    
  21  Prefactor     .10000E-03    23.001        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    109.45        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    5.6965        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     58.589        50.360        .52407E-04   -1.4176    
  25  Normalizat    .76477        .18242        .24162E-03   -1.0139    
  26  Prefactor     1.0736        .23337        .26688E-03   -.90316    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.699e-10
Minuit parameter uncertainties:
  1  8.61054e-06
  2  29.7392
  3  3.88115
  4  4.3856e-05
  5  2.12365e-08
  6  2.39721
  7  10.9109
  8  19.3129
  9  14.8304
  10  0.0002556
  11  1.45728e-07
  12  4.94891
  13  0.000110658
  14  4.22705e-05
  15  2.21579e-07
  16  6.26711e-08
  17  10.2293
  18  3.75227
  19  5.21617
  20  2.38462
  21  0.000275173
  22  3.62197e-05
  23  6.90908e-07
  24  50.3964
  25  0.182561
  26  0.233587
Done.

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

Extracting fit parameters...

4FGL J1249.8+3707
   Spectrum: PowerLaw
313    Prefactor:  1.358e+01  1.483e+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.074e+00  2.336e-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.648e-01  1.826e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.46
Ra Dec: 192.460 37.131
Photon Index (Fixed Index): 1.78 +/- 0.00
Photon Flux (Fixed Index): 1.24e-08 +/- 1.35e-08
Energy Flux (Fixed Index): 1.57e-05 +/- 1.72e-05

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

Saving results to:
/scratch/kocevski/935756/likelihoodResults_314496001_314755201_4FGL_J1249.8+3707_daily_bin290.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) = 6156.72451339
delta logL = 0.387104429991

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6156.72012885
delta logL = 0.391488969181

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    4.5175       1.0000         .10000E-03   10000.    
     2 'Index     '    2.4999       1.0000          .0000       10.000    
     3 'Normalizat'    .74173       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0885       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=   6156.720     FROM MIGRAD    STATUS=CONVERGED     56 CALLS      260 TOTAL
                     EDM=   .50E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     4.5075        101.81        .47355E-02    .95300E-03
   2  Index         2.5006        2.8430        .87654E-01    .36508E-03
   3  Normalizat    .74171        .62281E-01    .42845E-01   -.18328E-04
   4  Prefactor     1.0885        .67657E-01    .59963E-01   -.10616E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 4.5075
  Index      = 2.50065
  Normalizat = 0.741706
  Prefactor  = 1.08852
 **********
 **   18 **HESSE 
 **********

 FCN=   6156.720     FROM HESSE     STATUS=OK            33 CALLS      293 TOTAL
                     EDM=   .65E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     4.5075        24.792        .13854E-03   -1.5283    
   2  Index         2.5006        1.8408        .48865E-02   -.52345    
   3  Normalizat    .74171        .19301        .24505E-03   -1.0227    
   4  Prefactor     1.0885        .23990        .26518E-03   -.89834    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.45508e-10
Minuit parameter uncertainties:
  1  21.1557
  2  1.90134
  3  0.193187
  4  0.24014
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/935756': 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) = 6156.72012829
delta logL = 0.391489525503

Extracting fit parameters...

4FGL J1249.8+3707
   Spectrum: PowerLaw
313    Prefactor:  4.507e+00  2.116e+01  1.000e-04  1.000e+04 ( 1.000e-14)
314        Index:  2.501e+00  1.901e+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.089e+00  2.401e-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.417e-01  1.932e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.24
Ra Dec: 192.460 37.131
Photon Index (Free Index): 2.50 +/- 1.90
Photon Flux (Free Index): 3.07e-08 +/- 4.39e-08
Energy Flux (Free Index): 8.91e-06 +/- 1.15e-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/935756/cmap_HighResolution_314496001_314755201_4FGL_J1249.8+3707_daily_bin290.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.64e-03', comment='SUCCESS', photon_flux='1.24e-08', energy_flux2='8.91e-06', photon_flux_error='1.35e-08', dlogl='3.91e-01', energy_flux='1.57e-05', photon_flux2='3.07e-08', job_status='DONE', time_completed='2021-09-06 06:46:00.257920', photon_index_error2='1.90', photon_index2='2.50', ts='1.46', fit_tolerance='1e-08', GAL='1.07', photon_index_error='0.00', photon_flux_upper_limit='4.95e-08', energy_flux_error2='1.15e-05', EG='0.76', time_epoch_completed='1630935960.26', return_code='0', job_id='935756', GAL2='1.09', EG2='0.74', return_code2='0', energy_flux_error='1.72e-05', photon_flux_error2='4.39e-08', ts2='2.24', photon_index='1.78' WHERE bin_id='290' AND source_name='4FGL J1249.8+3707' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep  6 06:46:00 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0010>
Subject: Job 935756: <4FGL_J1249.8+3707_daily_bin290> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1249.8+3707_daily_bin290 192.46 37.1306 314496001 314755201 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 :                                   761.12 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             287.82 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   910 sec.
    Turnaround time :                            911 sec.

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

