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


Performing analysis on: 4FGL_J1249.8+3707_daily_bin944
RA = 192.46, Dec = 37.1306
tmin = 484012801, tmax = 484272001
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='938947', job_status='RUN', time_executed='2021-09-06 06:44:31.662994', time_epoch_executed='1630935871.66' WHERE source_name='4FGL J1249.8+3707' and cadence='daily' and bin_id='944'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/938947

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/938947/ft1_4FGL_J1249.8+3707_daily_bin944.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/938947/ft2_4FGL_J1249.8+3707_daily_bin944.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/938947/ft1_4FGL_J1249.8+3707_daily_bin944.fits outfile=/scratch/kocevski/938947/ft1_filteredMKT_4FGL_J1249.8+3707_daily_bin944.fits ra=192.46 dec=37.1306 rad=12.0 tmin=484012801.0 tmax=484272001.0 emin=100.0 emax=100000.0 zmin=0.0 zmax=90.0 evclass=128 evtype="INDEF" convtype=-1 phasemin=0.0 phasemax=1.0 evtable="EVENTS" chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

Done.
real 3.40
user 3.20
sys 0.19

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/938947/ft1_filtered_4FGL_J1249.8+3707_daily_bin944.fits" evtable="EVENTS" scfile=/scratch/kocevski/938947/ft2_4FGL_J1249.8+3707_daily_bin944.fits sctable="SC_DATA" outfile=/scratch/kocevski/938947/ltcube_484012801_484272001_4FGL_J1249.8+3707_daily_bin944.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/938947/ft2_4FGL_J1249.8+3707_daily_bin944.fits
.....................!
real 11.68
user 11.31
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/938947/ft1_filtered_4FGL_J1249.8+3707_daily_bin944.fits evtable="EVENTS" scfile=/scratch/kocevski/938947/ft2_4FGL_J1249.8+3707_daily_bin944.fits sctable="SC_DATA" expcube=/scratch/kocevski/938947/ltcube_484012801_484272001_4FGL_J1249.8+3707_daily_bin944.fits outfile=/scratch/kocevski/938947/expmap_484012801_484272001_4FGL_J1249.8+3707_daily_bin944.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/938947/ltcube_484012801_484272001_4FGL_J1249.8+3707_daily_bin944.fits
.....................!
real 190.13
user 185.32
sys 4.45

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/938947/ft1_filtered_4FGL_J1249.8+3707_daily_bin944.fits scfile=/scratch/kocevski/938947/ft2_4FGL_J1249.8+3707_daily_bin944.fits outfile=/scratch/kocevski/938947/cmap_484012801_484272001_4FGL_J1249.8+3707_daily_bin944.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/938947/ft1_filtered_4FGL_J1249.8+3707_daily_bin944.fits scfile=/scratch/kocevski/938947/ft2_4FGL_J1249.8+3707_daily_bin944.fits outfile=/scratch/kocevski/938947/cmap_HighResolution_484012801_484272001_4FGL_J1249.8+3707_daily_bin944.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/938947/ft1_filtered_4FGL_J1249.8+3707_daily_bin944.fits evtable="EVENTS" scfile=/scratch/kocevski/938947/ft2_4FGL_J1249.8+3707_daily_bin944.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/938947/Model_4FGL_J1249.8+3707_daily_bin944.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/938947/ft1_filtered_4FGL_J1249.8+3707_daily_bin944.fits.....................!
real 48.77
user 47.00
sys 1.19

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    12.639       1.0000         .10000E-03   10000.    
     3 'norm      '    11.685       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10023E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .55359       1.0000         .10000E-03   10000.    
     6 'Prefactor '    1.6585       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    30.372       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10091E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    120.16       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10425E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    21.502       1.0000         .10000E-03   10000.    
    13 'Prefactor '    30.699       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10074E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    31.589       1.0000         .10000E-03   10000.    
    16 'norm      '    2.2787       1.0000         .10000E-03   10000.    
    17 'norm      '    18.760       1.0000         .10000E-03   10000.    
    18 'norm      '    5.4442       1.0000         .10000E-03   10000.    
    19 'norm      '    .10015E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    4.4334       1.0000         .10000E-03   10000.    
    21 'Prefactor '    9.8488       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    25 'Normalizat'    .73141       1.0000         .10000E-01   10.000    
    26 'Prefactor '    .98113       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=   5658.008     FROM MIGRAD    STATUS=CONVERGED    585 CALLS     3031 TOTAL
                     EDM=   .39E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    28.693       -.20055E-05** at limit **
   2  Prefactor     12.624        33.807       -.28452E-04    .10829E-05
   3  norm          11.686        3.9072        .33559E-06    .21729E-03
   4  Prefactor     .10000E-03    3.1834        .26005E-06** at limit **
   5  Prefactor     .55343        1.6473       -.46253E-06   -.94312E-03
   6  Prefactor     1.6585        1.7199       -.87753E-08   -.33066E-04
   7  Prefactor     .10000E-03    3.4119       -.48003E-06** at limit **
   8  Prefactor     30.374        20.754        .10294E-05    .35256E-05
   9  Prefactor     .10000E-03    17.573       -.34617E-05** at limit **
  10  Prefactor     120.17        75.578        .39063E-05   -.56828E-05
  11  Prefactor     .10000E-03    3.4963        .25099E-06** at limit **
  12  norm          21.503        6.9658       -.43078E-06   -.18626E-03
  13  Prefactor     30.698        39.210       -.11712E-05    .14327E-05
  14  Prefactor     .10000E-03    22.247        .73037E-05** at limit **
  15  Prefactor     31.592        20.387        .19333E-05   -.13212E-04
  16  norm          2.2797        4.2702       -.92910E-06   -.49422E-03
  17  norm          18.758        14.554       -.53739E-06    .89346E-06
  18  norm          5.4445        3.3747       -.11030E-06   -.14898E-03
  19  norm          .10000E-03    4.9425       -.28470E-07** at limit **
  20  Prefactor     4.4340        3.3298       -.25179E-06   -.28603E-03
  21  Prefactor     9.8504        10.060       -.17800E-06   -.16414E-04
  22  Prefactor     .10000E-03    15.063        .25548E-05** at limit **
  23  Prefactor     .10000E-03    18.364       -.17977E-05** at limit **
  24  Prefactor     .10000E-03    18.290       -.23531E-05** at limit **
  25  Normalizat    .73103        .16997        .22429E-05   -.46039E-05
  26  Prefactor     .98163        .20731        .19186E-07    .83519E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 12.624
  norm       = 11.6857
  Prefactor  = 0.0001
  Prefactor  = 0.553427
  Prefactor  = 1.65854
  Prefactor  = 0.0001
  Prefactor  = 30.3737
  Prefactor  = 0.0001
  Prefactor  = 120.17
  Prefactor  = 0.0001
  norm       = 21.5035
  Prefactor  = 30.6981
  Prefactor  = 0.0001
  Prefactor  = 31.5924
  norm       = 2.27975
  norm       = 18.7584
  norm       = 5.44446
  norm       = 0.0001
  Prefactor  = 4.43396
  Prefactor  = 9.85035
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 0.731027
  Prefactor  = 0.981628
 **********
 **   18 **HESSE 
 **********

 FCN=   5658.008     FROM HESSE     STATUS=OK           462 CALLS     3493 TOTAL
                     EDM=   .76E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    28.721        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     12.624        33.663        .11267E-03   -1.4997    
   3  norm          11.686        3.8628        .78788E-04   -1.5024    
   4  Prefactor     .10000E-03    3.1991        .13109E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .55343        1.5967        .15354E-03   -1.5559    
   6  Prefactor     1.6585        1.6978        .95877E-04   -1.5450    
   7  Prefactor     .10000E-03    3.4185        .13567E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     30.374        20.762        .72702E-04   -1.4605    
   9  Prefactor     .10000E-03    17.639        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     120.17        75.603        .18356E-03   -1.3511    
  11  Prefactor     .10000E-03    3.5079        .13716E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          21.503        6.9686        .86378E-04   -1.4780    
  13  Prefactor     30.698        39.218        .72314E-04   -1.4599    
  14  Prefactor     .10000E-03    22.265        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     31.592        20.411        .71291E-04   -1.4583    
  16  norm          2.2797        4.2484        .19601E-03   -1.5406    
  17  norm          18.758        14.565        .92470E-04   -1.4841    
  18  norm          5.4445        3.3552        .10237E-03   -1.5241    
  19  norm          .10000E-03    5.0076        .16255E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     4.4340        3.3200        .10888E-03   -1.5287    
  21  Prefactor     9.8504        10.051        .12769E-03   -1.5080    
  22  Prefactor     .10000E-03    15.064        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    18.576        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10000E-03    18.297        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Normalizat    .73103        .19705        .24768E-03   -1.0268    
  26  Prefactor     .98163        .24041        .27469E-03   -.93344    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.57322e-10
Minuit parameter uncertainties:
  1  4.68378e-06
  2  33.7132
  3  3.86284
  4  3.23583e-05
  5  1.59682
  6  1.69789
  7  1.7197e-06
  8  20.7672
  9  4.74674e-05
  10  75.6635
  11  2.39828e-05
  12  6.9689
  13  39.2508
  14  4.5664e-05
  15  20.4158
  16  4.24898
  17  14.5674
  18  3.35528
  19  3.45188e-06
  20  3.32014
  21  10.0526
  22  5.41639e-06
  23  2.9648e-05
  24  1.22667e-05
  25  0.197243
  26  0.240674
Done.

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

Extracting fit parameters...

4FGL J1249.8+3707
   Spectrum: PowerLaw
313    Prefactor:  1.000e-04  4.747e-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:  9.816e-01  2.407e-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.310e-01  1.972e-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: 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/938947/likelihoodResults_484012801_484272001_4FGL_J1249.8+3707_daily_bin944.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) = 5658.00875189
delta logL = -0.000270116942374

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5658.00848139
delta logL = 3.85428393201e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10878E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    1.8739       1.0000          .0000       10.000    
     3 'Normalizat'    .73101       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .98162       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=   5658.008     FROM MIGRAD    STATUS=CONVERGED     59 CALLS      235 TOTAL
                     EDM=   .35E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10005E-03    108.83        .90712E-02** at limit **
   2  Index         1.9642        5.1613        .50000       -.46278E-04
   3  Normalizat    .73102        .68439E-02    .42703E-01    .41369E-04
   4  Prefactor     .98163        .87345E-02    .46037E-01    .36120E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100048
  Index      = 1.96425
  Normalizat = 0.731023
  Prefactor  = 0.981633
 **********
 **   18 **HESSE 
 **********

 FCN=   5658.008     FROM HESSE     STATUS=NOT POSDEF    31 CALLS      266 TOTAL
                     EDM=   .21E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10005E-03    114.23        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         1.9642        5.1093        .50000       -.65247    
   3  Normalizat    .73102        .69467E-02    .24768E-03   -1.0268    
   4  Prefactor     .98163        .88671E-02    .27469E-03   -.93344    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 2.1444e-08
Minuit parameter uncertainties:
  1  0.004712
  2  7.07329
  3  0.0069467
  4  0.00886708
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/938947': 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) = 5658.0084803
delta logL = 1.47180162458e-06

Extracting fit parameters...

4FGL J1249.8+3707
   Spectrum: PowerLaw
313    Prefactor:  1.000e-04  4.712e-03  1.000e-04  1.000e+04 ( 1.000e-14)
314        Index:  1.964e+00  7.073e+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:  9.816e-01  8.867e-03  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.310e-01  6.947e-03  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 192.460 37.131

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/938947/cmap_HighResolution_484012801_484272001_4FGL_J1249.8+3707_daily_bin944.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.64e-03', job_status='DONE', photon_flux_upper_limit='4.95e-08', time_completed='2021-09-06 06:56:44.740310', job_id='938947', GAL2='0.98', fit_tolerance='1e-08', EG2='0.73', EG='0.73', time_epoch_completed='1630936604.74', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.98', dlogl='1.47e-06', ts2='-0.00', photon_index_error='0.00', photon_index='1.78' WHERE bin_id='944' AND source_name='4FGL J1249.8+3707' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep  6 06:56:44 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0070>
Subject: Job 938947: <4FGL_J1249.8+3707_daily_bin944> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1249.8+3707_daily_bin944 192.46 37.1306 484012801 484272001 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 :                             268.47 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   959 sec.
    Turnaround time :                            961 sec.

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

