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


Performing analysis on: 4FGL_J1249.8+3707_daily_bin502
RA = 192.46, Dec = 37.1306
tmin = 369446401, tmax = 369705601
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='937161', job_status='RUN', time_executed='2021-09-06 06:38:31.762241', time_epoch_executed='1630935511.76' WHERE source_name='4FGL J1249.8+3707' and cadence='daily' and bin_id='502'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/937161

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/937161/ft1_4FGL_J1249.8+3707_daily_bin502.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/937161/ft2_4FGL_J1249.8+3707_daily_bin502.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/937161/ft1_4FGL_J1249.8+3707_daily_bin502.fits outfile=/scratch/kocevski/937161/ft1_filteredMKT_4FGL_J1249.8+3707_daily_bin502.fits ra=192.46 dec=37.1306 rad=12.0 tmin=369446401.0 tmax=369705601.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.22
sys 0.17

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/937161/ft2_4FGL_J1249.8+3707_daily_bin502.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/937161/ft1_filteredMKT_4FGL_J1249.8+3707_daily_bin502.fits evtable="EVENTS" outfile="/scratch/kocevski/937161/ft1_filtered_4FGL_J1249.8+3707_daily_bin502.fits" apply_filter=yes overwrite=yes header_obstimes=yes tstart=0.0 tstop=0.0 gtifile="default" chatter=3 clobber=yes debug=no gui=no mode="ql"

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

This is gtmktime version HEAD
Applying GTI filter:
IN_SAA!=T && LIVETIME>0 && gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nogrb.gti',(START+STOP)/2) && (angsep(RA_SUN,DEC_SUN,RA_ZENITH,DEC_ZENITH)>115 || gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nosolarflares.gti',(START+STOP)/2))
real 0.49
user 0.32
sys 0.15

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/937161/ft1_filtered_4FGL_J1249.8+3707_daily_bin502.fits evtable="EVENTS" scfile=/scratch/kocevski/937161/ft2_4FGL_J1249.8+3707_daily_bin502.fits sctable="SC_DATA" expcube=/scratch/kocevski/937161/ltcube_369446401_369705601_4FGL_J1249.8+3707_daily_bin502.fits outfile=/scratch/kocevski/937161/expmap_369446401_369705601_4FGL_J1249.8+3707_daily_bin502.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/937161/ltcube_369446401_369705601_4FGL_J1249.8+3707_daily_bin502.fits
.....................!
real 191.11
user 186.91
sys 3.65

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/937161/ft1_filtered_4FGL_J1249.8+3707_daily_bin502.fits scfile=/scratch/kocevski/937161/ft2_4FGL_J1249.8+3707_daily_bin502.fits outfile=/scratch/kocevski/937161/cmap_369446401_369705601_4FGL_J1249.8+3707_daily_bin502.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.55
user 0.38
sys 0.14

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

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10404E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .12798E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    6.9682       1.0000         .10000E-03   10000.    
     4 'Prefactor '    6.2126       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10029E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10019E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    16.562       1.0000         .10000E-03   10000.    
     9 'Prefactor '    15.223       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10019E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    11.002       1.0000         .10000E-03   10000.    
    12 'norm      '    3.0033       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10368E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10106E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .10005E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    7.1139       1.0000         .10000E-03   10000.    
    18 'norm      '    .12398E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    .62724       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .85294       1.0000         .10000E-03   10000.    
    22 'Prefactor '    38.872       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    106.06       1.0000         .10000E-03   10000.    
    25 'Normalizat'    .83025       1.0000         .10000E-01   10.000    
    26 'Prefactor '    1.1583       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=   6021.179     FROM MIGRAD    STATUS=CONVERGED    632 CALLS     3184 TOTAL
                     EDM=   .26E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    43.946        .45247E-08** at limit **
   2  Prefactor     .10000E-03    193.96       -.35145E-06** at limit **
   3  norm          6.9684        2.9085        .16904E-07   -.31339E-05
   4  Prefactor     6.2129        5.4811        .59589E-07    .45429E-05
   5  Prefactor     .10000E-03    .92904       -.14758E-07** at limit **
   6  Prefactor     .10000E-03    .98637       -.31898E-07** at limit **
   7  Prefactor     .10000E-03    3.2091       -.32625E-07** at limit **
   8  Prefactor     16.560        18.416        .16646E-06    .11450E-04
   9  Prefactor     15.221        13.999       -.11760E-06    .65277E-04
  10  Prefactor     .10000E-03    18.022       -.44356E-07** at limit **
  11  Prefactor     11.003        6.1276        .10108E-06    .28961E-04
  12  norm          3.0037        2.8050        .60959E-07    .85351E-04
  13  Prefactor     .10000E-03    22.343       -.33717E-06** at limit **
  14  Prefactor     .10000E-03    8.5246       -.19281E-07** at limit **
  15  Prefactor     .10000E-03    21.646        .33175E-06** at limit **
  16  norm          .10000E-03    1.6793       -.18905E-07** at limit **
  17  norm          7.1135        12.455        .80827E-07   -.16189E-04
  18  norm          .10000E-03    1.8384       -.14803E-05** at limit **
  19  norm          .63269        5.7758        .44925E-05   -.96975E-04
  20  Prefactor     .10000E-03    1.8675       -.81656E-07** at limit **
  21  Prefactor     .85388        10.621        .82829E-06   -.24350E-03
  22  Prefactor     38.871        50.411       -.17955E-06   -.88415E-05
  23  Prefactor     .10000E-03    6.2213       -.42698E-07** at limit **
  24  Prefactor     106.11        70.027        .31434E-05    .19988E-03
  25  Normalizat    .83024        .16119       -.77742E-06    .16579E-03
  26  Prefactor     1.1584        .20167        .44500E-06   -.19544E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  norm       = 6.96841
  Prefactor  = 6.2129
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 16.5605
  Prefactor  = 15.2214
  Prefactor  = 0.0001
  Prefactor  = 11.0031
  norm       = 3.00365
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 7.11349
  norm       = 0.0001
  norm       = 0.632685
  Prefactor  = 0.0001
  Prefactor  = 0.853883
  Prefactor  = 38.8714
  Prefactor  = 0.0001
  Prefactor  = 106.109
  Normalizat = 0.830245
  Prefactor  = 1.15844
 **********
 **   18 **HESSE 
 **********

 FCN=   6021.179     FROM HESSE     STATUS=OK           458 CALLS     3642 TOTAL
                     EDM=   .69E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    44.024        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    202.91        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          6.9684        2.8969        .82581E-04   -1.5180    
   4  Prefactor     6.2129        5.4791        .16106E-03   -1.5209    
   5  Prefactor     .10000E-03    .93431        .72802E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    1.0272        .15034E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    3.2172        .13575E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     16.560        18.412        .98416E-04   -1.4894    
   9  Prefactor     15.221        14.000        .51328E-03   -1.4927    
  10  Prefactor     .10000E-03    18.026        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     11.003        6.1226        .12079E-03   -1.5044    
  12  norm          3.0037        2.7961        .12175E-03   -1.5361    
  13  Prefactor     .10000E-03    22.377        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    8.5383        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    22.011        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10000E-03    1.6864        .98175E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          7.1135        12.463        .15040E-03   -1.5174    
  18  norm          .10000E-03    5.5213        .18323E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          .63269        6.5350        .37158E-03   -1.5549    
  20  Prefactor     .10000E-03    1.9218        .20619E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .85388        29.675        .44423E-02   -1.5523    
  22  Prefactor     38.871        49.826        .64287E-04   -1.4460    
  23  Prefactor     .10000E-03    6.2313        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     106.11        72.249        .19524E-03   -1.3644    
  25  Normalizat    .83024        .18831        .23722E-03   -.98956    
  26  Prefactor     1.1584        .23891        .26291E-03   -.87620    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.88411e-10
Minuit parameter uncertainties:
  1  4.30861e-05
  2  0.000908307
  3  2.89696
  4  5.47958
  5  6.49846e-07
  6  1.87069e-06
  7  2.63607e-06
  8  18.4184
  9  14.0034
  10  1.8254e-06
  11  6.12293
  12  2.79619
  13  4.11786e-05
  14  3.50329e-06
  15  4.34251e-05
  16  1.03978e-06
  17  12.4674
  18  4.8348e-05
  19  4.06699
  20  5.86381e-06
  21  10.0724
  22  49.8795
  23  4.94209e-07
  24  72.309
  25  0.188453
  26  0.239136
Done.

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

Extracting fit parameters...

4FGL J1249.8+3707
   Spectrum: PowerLaw
313    Prefactor:  1.522e+01  1.400e+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.158e+00  2.391e-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:  8.302e-01  1.885e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 6.56
Ra Dec: 192.460 37.131
Photon Index (Fixed Index): 1.78 +/- 0.00
Photon Flux (Fixed Index): 1.39e-08 +/- 1.28e-08
Energy Flux (Fixed Index): 1.76e-05 +/- 1.62e-05

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) = 6021.16769453
delta logL = 0.0114387182011

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6021.16300427
delta logL = 0.0161289785856

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    16.828       1.0000         .10000E-03   10000.    
     2 'Index     '    1.6662       1.0000          .0000       10.000    
     3 'Normalizat'    .83194       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1580       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=   6021.163     FROM MIGRAD    STATUS=CONVERGED     63 CALLS      229 TOTAL
                     EDM=   .20E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     16.842        600.06        .24408E-02    .27718E-04
   2  Index         1.6655        5.2067        .15983        .10007E-03
   3  Normalizat    .83197        .11241        .44026E-01    .58909E-04
   4  Prefactor     1.1580        .10123        .59463E-01    .67679E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 16.8416
  Index      = 1.66545
  Normalizat = 0.831974
  Prefactor  = 1.15799
 **********
 **   18 **HESSE 
 **********

 FCN=   6021.163     FROM HESSE     STATUS=OK            33 CALLS      262 TOTAL
                     EDM=   .50E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     16.842        18.001        .97633E-04   -1.4887    
   2  Index         1.6655        .64875        .90403E-02   -.73005    
   3  Normalizat    .83197        .18261        .23701E-03   -.98893    
   4  Prefactor     1.1580        .23581        .26297E-03   -.87634    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.97648e-11
Minuit parameter uncertainties:
  1  18.0071
  2  0.652077
  3  0.18274
  4  0.236019
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/937161': 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) = 6021.16300353
delta logL = 0.01612971963

Extracting fit parameters...

4FGL J1249.8+3707
   Spectrum: PowerLaw
313    Prefactor:  1.684e+01  1.801e+01  1.000e-04  1.000e+04 ( 1.000e-14)
314        Index:  1.665e+00  6.521e-01  0.000e+00  1.000e+01 (-1.000e+00)
315        Scale:  4.011e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
625    Prefactor:  1.158e+00  2.360e-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:  8.320e-01  1.827e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 6.60
Ra Dec: 192.460 37.131
Photon Index (Free Index): 1.67 +/- 0.65
Photon Flux (Free Index): 1.17e-08 +/- 1.56e-08
Energy Flux (Free Index): 2.14e-05 +/- 3.20e-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/937161/cmap_HighResolution_369446401_369705601_4FGL_J1249.8+3707_daily_bin502.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='1.39e-08', energy_flux2='2.14e-05', photon_flux_error='1.28e-08', dlogl='1.61e-02', energy_flux='1.76e-05', photon_flux2='1.17e-08', job_status='DONE', time_completed='2021-09-06 06:49:44.898453', photon_index_error2='0.65', photon_index2='1.67', ts='6.56', fit_tolerance='1e-08', GAL='1.16', photon_index_error='0.00', energy_flux_error2='3.20e-05', EG='0.83', time_epoch_completed='1630936184.9', return_code='0', job_id='937161', GAL2='1.16', EG2='0.83', return_code2='0', energy_flux_error='1.62e-05', photon_flux_error2='1.56e-08', ts2='6.60', photon_index='1.78' WHERE bin_id='502' AND source_name='4FGL J1249.8+3707' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep  6 06:49:44 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0304>
Subject: Job 937161: <4FGL_J1249.8+3707_daily_bin502> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1249.8+3707_daily_bin502 192.46 37.1306 369446401 369705601 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 :                                   670.09 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             236.92 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   853 sec.
    Turnaround time :                            854 sec.

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

