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


Performing analysis on: 4FGL_J1249.8+3707_daily_bin958
RA = 192.46, Dec = 37.1306
tmin = 487641601, tmax = 487900801
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='940235', job_status='RUN', time_executed='2021-09-06 06:48:31.500274', time_epoch_executed='1630936111.5' WHERE source_name='4FGL J1249.8+3707' and cadence='daily' and bin_id='958'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/940235

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/940235/ft1_4FGL_J1249.8+3707_daily_bin958.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/940235/ft2_4FGL_J1249.8+3707_daily_bin958.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/940235/ft1_4FGL_J1249.8+3707_daily_bin958.fits outfile=/scratch/kocevski/940235/ft1_filteredMKT_4FGL_J1249.8+3707_daily_bin958.fits ra=192.46 dec=37.1306 rad=12.0 tmin=487641601.0 tmax=487900801.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 5.06
user 4.78
sys 0.24

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/940235/ft1_filtered_4FGL_J1249.8+3707_daily_bin958.fits" evtable="EVENTS" scfile=/scratch/kocevski/940235/ft2_4FGL_J1249.8+3707_daily_bin958.fits sctable="SC_DATA" outfile=/scratch/kocevski/940235/ltcube_487641601_487900801_4FGL_J1249.8+3707_daily_bin958.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/940235/ft2_4FGL_J1249.8+3707_daily_bin958.fits
.....................!
real 12.99
user 12.38
sys 0.57

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/940235/ft1_filtered_4FGL_J1249.8+3707_daily_bin958.fits evtable="EVENTS" scfile=/scratch/kocevski/940235/ft2_4FGL_J1249.8+3707_daily_bin958.fits sctable="SC_DATA" expcube=/scratch/kocevski/940235/ltcube_487641601_487900801_4FGL_J1249.8+3707_daily_bin958.fits outfile=/scratch/kocevski/940235/expmap_487641601_487900801_4FGL_J1249.8+3707_daily_bin958.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/940235/ltcube_487641601_487900801_4FGL_J1249.8+3707_daily_bin958.fits
.....................!
real 191.56
user 185.48
sys 5.55

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/940235/ft1_filtered_4FGL_J1249.8+3707_daily_bin958.fits scfile=/scratch/kocevski/940235/ft2_4FGL_J1249.8+3707_daily_bin958.fits outfile=/scratch/kocevski/940235/cmap_487641601_487900801_4FGL_J1249.8+3707_daily_bin958.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.56
user 0.37
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/940235/ft1_filtered_4FGL_J1249.8+3707_daily_bin958.fits scfile=/scratch/kocevski/940235/ft2_4FGL_J1249.8+3707_daily_bin958.fits outfile=/scratch/kocevski/940235/cmap_HighResolution_487641601_487900801_4FGL_J1249.8+3707_daily_bin958.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.39
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

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 '    3.8527       1.0000         .10000E-03   10000.    
     3 'norm      '    10.885       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .66650       1.0000         .10000E-03   10000.    
     5 'Prefactor '    2.8803       1.0000         .10000E-03   10000.    
     6 'Prefactor '    1.7304       1.0000         .10000E-03   10000.    
     7 'Prefactor '    15.074       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .27525E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    7.5864       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    28.391       1.0000         .10000E-03   10000.    
    15 'Prefactor '    11.873       1.0000         .10000E-03   10000.    
    16 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    2.9226       1.0000         .10000E-03   10000.    
    18 'norm      '    .10004E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .18646E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    19.531       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    43.412       1.0000         .10000E-03   10000.    
    25 'Normalizat'    1.2228       1.0000         .10000E-01   10.000    
    26 'Prefactor '    .58434       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=   4730.373     FROM MIGRAD    STATUS=CONVERGED    623 CALLS     3206 TOTAL
                     EDM=   .59E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    17.848        .48853E-05** at limit **
   2  Prefactor     3.8756        65.013        .43576E-04   -.48005E-07
   3  norm          10.886        4.2675       -.14435E-06   -.11344E-03
   4  Prefactor     .66657        .48561       -.90161E-08   -.99863E-03
   5  Prefactor     2.8803        2.4792       -.32501E-07   -.75294E-04
   6  Prefactor     1.7304        2.6025        .23884E-07   -.72486E-04
   7  Prefactor     15.074        11.545        .81962E-07   -.14634E-04
   8  Prefactor     .10000E-03    20.957       -.51078E-05** at limit **
   9  Prefactor     .10000E-03    15.144       -.84037E-06** at limit **
  10  Prefactor     .10000E-03    31.536       -.15906E-05** at limit **
  11  Prefactor     .10000E-03    7.2183       -.14116E-06** at limit **
  12  norm          7.5867        6.2915        .22012E-05   -.12719E-04
  13  Prefactor     .10000E-03    69.911        .13148E-05** at limit **
  14  Prefactor     28.389        33.114       -.13325E-05   -.15241E-04
  15  Prefactor     11.885        20.134        .83880E-06    .23736E-06
  16  norm          .10000E-03    4.6786       -.99115E-08** at limit **
  17  norm          2.9217        16.420        .60051E-06   -.12402E-05
  18  norm          .10000E-03    1.8191       -.53822E-07** at limit **
  19  norm          .10000E-03    2.2168       -.28403E-07** at limit **
  20  Prefactor     .10000E-03    2.8093        .10751E-06** at limit **
  21  Prefactor     19.522        16.376        .72302E-06   -.53055E-04
  22  Prefactor     .10000E-03    32.703        .34086E-05** at limit **
  23  Prefactor     .10000E-03    9.0296        .34499E-06** at limit **
  24  Prefactor     43.402        65.381       -.11618E-04   -.70811E-05
  25  Normalizat    1.2226        .19124       -.16822E-05   -.60088E-04
  26  Prefactor     .58460        .22314       -.44682E-06   -.95378E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 3.87558
  norm       = 10.8858
  Prefactor  = 0.666575
  Prefactor  = 2.88031
  Prefactor  = 1.73037
  Prefactor  = 15.0742
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 7.58674
  Prefactor  = 0.0001
  Prefactor  = 28.3892
  Prefactor  = 11.8849
  norm       = 0.0001
  norm       = 2.92166
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 19.5221
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 43.4019
  Normalizat = 1.22257
  Prefactor  = 0.584599
 **********
 **   18 **HESSE 
 **********

 FCN=   4730.373     FROM HESSE     STATUS=OK           460 CALLS     3666 TOTAL
                     EDM=   .41E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    17.854        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     3.8756        65.264        .20560E-03   -1.5314    
   3  norm          10.886        4.2606        .81060E-04   -1.5048    
   4  Prefactor     .66657        11.084        .21644E-02   -1.5545    
   5  Prefactor     2.8803        2.4740        .93076E-04   -1.5369    
   6  Prefactor     1.7304        2.5685        .12487E-03   -1.5445    
   7  Prefactor     15.074        11.517        .10316E-03   -1.4931    
   8  Prefactor     .10000E-03    21.075        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    15.169        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    31.556        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    20.572        .32518E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          7.5867        6.2887        .13557E-03   -1.5157    
  13  Prefactor     .10000E-03    70.439        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     28.389        32.952        .75189E-04   -1.4642    
  15  Prefactor     11.885        18.326        .11626E-03   -1.5018    
  16  norm          .10000E-03    4.7107        .14485E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          2.9217        16.421        .23763E-03   -1.5366    
  18  norm          .10000E-03    1.8392        .90455E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          .10000E-03    2.2244        .99993E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    10.484        .20138E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     19.522        15.520        .90628E-04   -1.4824    
  22  Prefactor     .10000E-03    32.723        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    9.0390        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     43.402        65.588        .60846E-04   -1.4389    
  25  Normalizat    1.2226        .21703        .20161E-03   -.85908    
  26  Prefactor     .58460        .25239        .34221E-03   -1.0824    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.08663e-09
Minuit parameter uncertainties:
  1  1.49506e-06
  2  31.8484
  3  4.26073
  4  5.43703
  5  2.47411
  6  2.56868
  7  11.519
  8  5.51775e-05
  9  1.08802e-05
  10  4.2849e-05
  11  9.30823e-05
  12  6.28923
  13  0.000110875
  14  32.9731
  15  18.3342
  16  3.51427e-07
  17  13.8587
  18  3.45904e-06
  19  1.35199e-06
  20  0.000177848
  21  15.5231
  22  3.1235e-05
  23  6.00336e-06
  24  65.6974
  25  0.217194
  26  0.252883
Done.

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

Extracting fit parameters...

4FGL J1249.8+3707
   Spectrum: PowerLaw
313    Prefactor:  1.000e-04  1.088e-05  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:  5.846e-01  2.529e-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.223e+00  2.172e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/940235/likelihoodResults_487641601_487900801_4FGL_J1249.8+3707_daily_bin958.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) = 4730.37344256
delta logL = -0.000313829556035

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4729.75728468
delta logL = 0.6158440453

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .47452E-01   1.0000         .10000E-03   10000.    
     2 'Index     '    4.0908       1.0000          .0000       10.000    
     3 'Normalizat'    1.1501       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .63616       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=   4729.757     FROM MIGRAD    STATUS=CONVERGED     54 CALLS      295 TOTAL
                     EDM=   .54E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .46653E-01    .77776        .31047E-02    .34344E-02
   2  Index         4.0957        1.9122        .64431E-01    .20923E-03
   3  Normalizat    1.1505        .40445E-01    .36249E-01   -.43151E-05
   4  Prefactor     .63579        .49308E-01    .74328E-01    .19601E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0466526
  Index      = 4.09568
  Normalizat = 1.15045
  Prefactor  = 0.635785
 **********
 **   18 **HESSE 
 **********

 FCN=   4729.757     FROM HESSE     STATUS=NOT POSDEF    35 CALLS      330 TOTAL
                     EDM=   .82E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .46653E-01    2.0942        .14060E-03   -1.5665    
   2  Index         4.0957        3.5582        .31831E-02   -.18186    
   3  Normalizat    1.1505        .15254        .20676E-03   -.88148    
   4  Prefactor     .63579        .18234        .32905E-03   -1.0610    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 8.23544e-08
Minuit parameter uncertainties:
  1  0.624497
  2  3.97808
  3  0.152602
  4  0.182508
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/940235': 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) = 4729.75727932
delta logL = 0.615849404109

Extracting fit parameters...

4FGL J1249.8+3707
   Spectrum: PowerLaw
313    Prefactor:  4.665e-02  6.245e-01  1.000e-04  1.000e+04 ( 1.000e-14)
314        Index:  4.096e+00  3.978e+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:  6.358e-01  1.825e-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.150e+00  1.526e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.32
Ra Dec: 192.460 37.131
Photon Index (Free Index): 4.10 +/- 3.98
Photon Flux (Free Index): 5.58e-08 +/- 5.14e-08
Energy Flux (Free Index): 8.22e-06 +/- 8.89e-06

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/940235/cmap_HighResolution_487641601_487900801_4FGL_J1249.8+3707_daily_bin958.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.77e-03', comment='SUCCESS', energy_flux2='8.22e-06', dlogl='6.16e-01', photon_flux2='5.58e-08', job_status='DONE', time_completed='2021-09-06 07:00:23.199409', photon_index_error2='3.98', photon_index2='4.10', ts='-0.00', fit_tolerance='1e-08', GAL='0.58', photon_index_error='0.00', photon_flux_upper_limit='5.13e-08', energy_flux_error2='8.89e-06', EG='1.22', time_epoch_completed='1630936823.2', return_code='0', job_id='940235', GAL2='0.64', EG2='1.15', return_code2='102', photon_flux_error2='5.14e-08', ts2='1.32', photon_index='1.78' WHERE bin_id='958' AND source_name='4FGL J1249.8+3707' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep  6 07:00:23 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0091>
Subject: Job 940235: <4FGL_J1249.8+3707_daily_bin958> in cluster <slac> Done

Job <4FGL_J1249.8+3707_daily_bin958> was submitted from host <rhel6-64c> by user <kocevski> in cluster <slac> at Mon Sep  6 06:45:22 2021
Job was executed on host(s) <bullet0091>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Sep  6 06:45:24 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:45:24 2021
Terminated at Mon Sep  6 07:00:23 2021
Results reported at Mon Sep  6 07:00:23 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1249.8+3707_daily_bin958 192.46 37.1306 487641601 487900801 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 :                                   696.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             283.56 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   899 sec.
    Turnaround time :                            901 sec.

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

