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


Performing analysis on: 4FGL_J1249.8+3707_daily_bin555
RA = 192.46, Dec = 37.1306
tmin = 383184001, tmax = 383443201
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='937239', job_status='RUN', time_executed='2021-09-06 06:39:45.124243', time_epoch_executed='1630935585.12' WHERE source_name='4FGL J1249.8+3707' and cadence='daily' and bin_id='555'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/937239

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/937239/ft1_4FGL_J1249.8+3707_daily_bin555.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/937239/ft2_4FGL_J1249.8+3707_daily_bin555.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/937239/ft1_4FGL_J1249.8+3707_daily_bin555.fits outfile=/scratch/kocevski/937239/ft1_filteredMKT_4FGL_J1249.8+3707_daily_bin555.fits ra=192.46 dec=37.1306 rad=12.0 tmin=383184001.0 tmax=383443201.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.41
user 3.19
sys 0.20

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/937239/ft1_filtered_4FGL_J1249.8+3707_daily_bin555.fits" evtable="EVENTS" scfile=/scratch/kocevski/937239/ft2_4FGL_J1249.8+3707_daily_bin555.fits sctable="SC_DATA" outfile=/scratch/kocevski/937239/ltcube_383184001_383443201_4FGL_J1249.8+3707_daily_bin555.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/937239/ft2_4FGL_J1249.8+3707_daily_bin555.fits
.....................!
real 11.98
user 11.62
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/937239/ft1_filtered_4FGL_J1249.8+3707_daily_bin555.fits evtable="EVENTS" scfile=/scratch/kocevski/937239/ft2_4FGL_J1249.8+3707_daily_bin555.fits sctable="SC_DATA" expcube=/scratch/kocevski/937239/ltcube_383184001_383443201_4FGL_J1249.8+3707_daily_bin555.fits outfile=/scratch/kocevski/937239/expmap_383184001_383443201_4FGL_J1249.8+3707_daily_bin555.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/937239/ltcube_383184001_383443201_4FGL_J1249.8+3707_daily_bin555.fits
.....................!
real 192.69
user 187.93
sys 4.40

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/937239/ft1_filtered_4FGL_J1249.8+3707_daily_bin555.fits scfile=/scratch/kocevski/937239/ft2_4FGL_J1249.8+3707_daily_bin555.fits outfile=/scratch/kocevski/937239/cmap_383184001_383443201_4FGL_J1249.8+3707_daily_bin555.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.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/937239/ft1_filtered_4FGL_J1249.8+3707_daily_bin555.fits scfile=/scratch/kocevski/937239/ft2_4FGL_J1249.8+3707_daily_bin555.fits outfile=/scratch/kocevski/937239/cmap_HighResolution_383184001_383443201_4FGL_J1249.8+3707_daily_bin555.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.36
sys 0.17

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10428E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    56.608       1.0000         .10000E-03   10000.    
     3 'norm      '    11.832       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .12720E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    .90403       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10014E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    3.1541       1.0000         .10000E-03   10000.    
    17 'norm      '    10.105       1.0000         .10000E-03   10000.    
    18 'norm      '    3.8381       1.0000         .10000E-03   10000.    
    19 'norm      '    .12954E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10150E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10200E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    20.440       1.0000         .10000E-03   10000.    
    23 'Prefactor '    17.354       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    25 'Normalizat'    1.1338       1.0000         .10000E-01   10.000    
    26 'Prefactor '    .68506       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=   5311.073     FROM MIGRAD    STATUS=CONVERGED    627 CALLS     3107 TOTAL
                     EDM=   .26E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    106.76        .21931E-06** at limit **
   2  Prefactor     56.604        32.933        .34172E-07   -.18383E-04
   3  norm          11.833        3.9152       -.12080E-06   -.19970E-03
   4  Prefactor     .10000E-03    4.5424        .84964E-07** at limit **
   5  Prefactor     .10000E-03    1.7879        .37813E-06** at limit **
   6  Prefactor     .10000E-03    1.4114        .12045E-06** at limit **
   7  Prefactor     .10000E-03    2.9832        .51187E-07** at limit **
   8  Prefactor     .10000E-03    13.756        .12270E-06** at limit **
   9  Prefactor     .10000E-03    8.4450       -.30889E-07** at limit **
  10  Prefactor     .10000E-03    43.861        .16159E-06** at limit **
  11  Prefactor     .10000E-03    1.6380        .12179E-07** at limit **
  12  norm          .90420        3.3444        .15251E-05    .72980E-04
  13  Prefactor     .10000E-03    18.804        .19767E-07** at limit **
  14  Prefactor     .10000E-03    7.3564       -.30100E-07** at limit **
  15  Prefactor     .10000E-03    7.1287        .11235E-07** at limit **
  16  norm          3.1540        3.4781        .31137E-07    .13691E-04
  17  norm          10.105        9.5363       -.84021E-08   -.33495E-05
  18  norm          3.8388        2.8814        .44760E-06   -.19798E-03
  19  norm          .10001E-03    4.3942        .40148E-06** at limit **
  20  Prefactor     .10000E-03    1.0500       -.49502E-06** at limit **
  21  Prefactor     .10000E-03    6.9188       -.73105E-06** at limit **
  22  Prefactor     20.399        48.556       -.60798E-06   -.52982E-04
  23  Prefactor     17.354        15.964        .18115E-07   -.29220E-05
  24  Prefactor     .10000E-03    41.021       -.20787E-06** at limit **
  25  Normalizat    1.1337        .16648       -.33351E-06   -.72105E-04
  26  Prefactor     .68515        .20817       -.10233E-06   -.55596E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 56.604
  norm       = 11.8328
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.904195
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 3.15405
  norm       = 10.105
  norm       = 3.83884
  norm       = 0.000100006
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 20.3992
  Prefactor  = 17.3537
  Prefactor  = 0.0001
  Normalizat = 1.13374
  Prefactor  = 0.68515
 **********
 **   18 **HESSE 
 **********

 FCN=   5311.073     FROM HESSE     STATUS=OK           452 CALLS     3559 TOTAL
                     EDM=   .89E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    108.16        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     56.604        32.937        .53318E-04   -1.4202    
   3  norm          11.833        3.8494        .78875E-04   -1.5020    
   4  Prefactor     .10000E-03    4.5934        .15167E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    1.8394        .18954E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    2.8944        .16555E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    2.9867        .12293E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    13.782        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    8.4574        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    43.901        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    1.6414        .91080E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          .90420        3.2983        .24339E-03   -1.5518    
  13  Prefactor     .10000E-03    18.814        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    7.3687        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    7.1660        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          3.1540        3.4714        .13838E-03   -1.5353    
  17  norm          10.105        9.5382        .12605E-03   -1.5072    
  18  norm          3.8388        2.6441        .94800E-04   -1.5316    
  19  norm          .10001E-03    7.3095        .26404E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    1.0608        .72616E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    6.9932        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     20.399        48.711        .88592E-04   -1.4804    
  23  Prefactor     17.354        15.966        .96144E-04   -1.4875    
  24  Prefactor     .10000E-03    41.101        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Normalizat    1.1337        .19324        .20165E-03   -.88676    
  26  Prefactor     .68515        .24088        .31460E-03   -1.0411    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.94354e-10
Minuit parameter uncertainties:
  1  1.26363e-05
  2  32.948
  3  3.84951
  4  3.54685e-06
  5  6.37771e-06
  6  2.08669e-06
  7  2.91983e-06
  8  1.89461e-05
  9  1.76082e-05
  10  8.94521e-05
  11  2.87058e-07
  12  3.29893
  13  8.79659e-06
  14  4.47278e-06
  15  8.56495e-08
  16  3.47164
  17  9.53962
  18  2.64423
  19  0.000422319
  20  3.51806e-06
  21  3.77385e-05
  22  48.8056
  23  15.9702
  24  9.05483e-05
  25  0.193365
  26  0.241242
Done.

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

Extracting fit parameters...

4FGL J1249.8+3707
   Spectrum: PowerLaw
313    Prefactor:  1.000e-04  1.761e-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:  6.851e-01  2.412e-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.134e+00  1.934e-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: 3.60e-08 ph cm-2 s-1
Energy Flux Upper Limit: 2.65e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/937239/likelihoodResults_383184001_383443201_4FGL_J1249.8+3707_daily_bin555.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) = 5311.07310602
delta logL = -0.000561630313314

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5311.07254437
delta logL = 1.56915120897e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10026E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    1.7683       1.0000          .0000       10.000    
     3 'Normalizat'    1.1337       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .68515       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=   5311.073     FROM MIGRAD    STATUS=CONVERGED     85 CALLS      237 TOTAL
                     EDM=   .98E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10112E-03    81.732        .18142E-02** at limit **
   2  Index         1.6915        5.0149        .50000        .78059E-05
   3  Normalizat    1.1337        .12327E-01    .20165E-03    .33967E-03
   4  Prefactor     .68515        .15362E-01    .31460E-03    .20757E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000101122
  Index      = 1.69155
  Normalizat = 1.13374
  Prefactor  = 0.68515
 **********
 **   18 **HESSE 
 **********

 FCN=   5311.073     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      266 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     .10112E-03    645.53        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         1.6915        5.7897        .50000       -.72307    
   3  Normalizat    1.1337        .38445E-01    .40330E-04   -.88676    
   4  Prefactor     .68515        .47547E-01    .12584E-04   -1.0411    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 8.15682e-08
Minuit parameter uncertainties:
  1  0.0544179
  2  1604.12
  3  0.0384457
  4  0.0475503
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/937239': 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) = 5311.07254424
delta logL = 1.49411789607e-07

Extracting fit parameters...

4FGL J1249.8+3707
   Spectrum: PowerLaw
313    Prefactor:  1.011e-04  5.442e-02  1.000e-04  1.000e+04 ( 1.000e-14)
314        Index:  1.692e+00  1.604e+03  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.852e-01  4.755e-02  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.134e+00  3.845e-02  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/937239/cmap_HighResolution_383184001_383443201_4FGL_J1249.8+3707_daily_bin555.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.65e-03', job_status='DONE', photon_flux_upper_limit='3.60e-08', time_completed='2021-09-06 06:51:31.484985', job_id='937239', GAL2='0.69', fit_tolerance='1e-08', EG2='1.13', EG='1.13', time_epoch_completed='1630936291.49', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.69', dlogl='1.49e-07', ts2='-0.00', photon_index_error='0.00', photon_index='1.78' WHERE bin_id='555' AND source_name='4FGL J1249.8+3707' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep  6 06:51:31 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0117>
Subject: Job 937239: <4FGL_J1249.8+3707_daily_bin555> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1249.8+3707_daily_bin555 192.46 37.1306 383184001 383443201 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 :                                   705.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             258.13 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   953 sec.
    Turnaround time :                            956 sec.

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

