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


Performing analysis on: 4FGL_J1249.8+3707_daily_bin587
RA = 192.46, Dec = 37.1306
tmin = 391478401, tmax = 391737601
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='937286', job_status='RUN', time_executed='2021-09-06 06:35:55.023072', time_epoch_executed='1630935355.02' WHERE source_name='4FGL J1249.8+3707' and cadence='daily' and bin_id='587'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/937286

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

Retrieving the FT1 file...

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

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

Retrieving 45 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/937286/ft1_4FGL_J1249.8+3707_daily_bin587.fits


Retrieving the FT1 file...

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

Retrieving 45 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/937286/ft2_4FGL_J1249.8+3707_daily_bin587.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/937286/ft1_4FGL_J1249.8+3707_daily_bin587.fits outfile=/scratch/kocevski/937286/ft1_filteredMKT_4FGL_J1249.8+3707_daily_bin587.fits ra=192.46 dec=37.1306 rad=12.0 tmin=391478401.0 tmax=391737601.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 4.42
user 4.12
sys 0.23

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/937286/ft1_filtered_4FGL_J1249.8+3707_daily_bin587.fits evtable="EVENTS" scfile=/scratch/kocevski/937286/ft2_4FGL_J1249.8+3707_daily_bin587.fits sctable="SC_DATA" expcube=/scratch/kocevski/937286/ltcube_391478401_391737601_4FGL_J1249.8+3707_daily_bin587.fits outfile=/scratch/kocevski/937286/expmap_391478401_391737601_4FGL_J1249.8+3707_daily_bin587.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/937286/ltcube_391478401_391737601_4FGL_J1249.8+3707_daily_bin587.fits
.....................!
real 190.14
user 185.00
sys 4.74

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/937286/ft1_filtered_4FGL_J1249.8+3707_daily_bin587.fits scfile=/scratch/kocevski/937286/ft2_4FGL_J1249.8+3707_daily_bin587.fits outfile=/scratch/kocevski/937286/cmap_391478401_391737601_4FGL_J1249.8+3707_daily_bin587.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.37
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/937286/ft1_filtered_4FGL_J1249.8+3707_daily_bin587.fits scfile=/scratch/kocevski/937286/ft2_4FGL_J1249.8+3707_daily_bin587.fits outfile=/scratch/kocevski/937286/cmap_HighResolution_391478401_391737601_4FGL_J1249.8+3707_daily_bin587.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.14

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    31.947       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    6.8977       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10451E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    1.6790       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .11335E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    7.9575       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .58277       1.0000         .10000E-03   10000.    
    10 'Prefactor '    10.855       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    3.3150       1.0000         .10000E-03   10000.    
    13 'Prefactor '    25.949       1.0000         .10000E-03   10000.    
    14 'Prefactor '    27.191       1.0000         .10000E-03   10000.    
    15 'Prefactor '    3.9404       1.0000         .10000E-03   10000.    
    16 'norm      '    5.4069       1.0000         .10000E-03   10000.    
    17 'norm      '    11.591       1.0000         .10000E-03   10000.    
    18 'norm      '    2.2790       1.0000         .10000E-03   10000.    
    19 'norm      '    10.921       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .11537E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10663E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    42.353       1.0000         .10000E-03   10000.    
    23 'Prefactor '    12.029       1.0000         .10000E-03   10000.    
    24 'Prefactor '    30.552       1.0000         .10000E-03   10000.    
    25 'Normalizat'    .99157       1.0000         .10000E-01   10.000    
    26 'Prefactor '    .91518       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=   6082.599     FROM MIGRAD    STATUS=CONVERGED    641 CALLS     3128 TOTAL
                     EDM=   .83E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     31.945        34.314       -.34285E-07    .79605E-05
   2  Prefactor     .10000E-03    19.448        .78949E-07** at limit **
   3  norm          6.8983        3.0420       -.33735E-08    .90459E-05
   4  Prefactor     .10000E-03    2.7844        .22992E-07** at limit **
   5  Prefactor     1.6792        1.5542       -.24543E-07    .15485E-04
   6  Prefactor     .10000E-03    1.1141        .19975E-07** at limit **
   7  Prefactor     7.9591        7.4327       -.34364E-07    .28249E-04
   8  Prefactor     .10000E-03    10.148        .14492E-06** at limit **
   9  Prefactor     .55194        9.6237       -.13311E-05    .22207E-03
  10  Prefactor     10.596        118.62       -.47132E-06   -.59293E-04
  11  Prefactor     .10000E-03    1.4719       -.72060E-07** at limit **
  12  norm          3.3257        7.8234       -.11707E-05    .14955E-03
  13  Prefactor     25.925        34.898        .59719E-06    .16337E-03
  14  Prefactor     27.175        33.830        .80388E-06    .27069E-03
  15  Prefactor     3.9406        8.4539        .54284E-05   -.10942E-03
  16  norm          5.4093        4.4218        .89898E-06    .35175E-03
  17  norm          11.591        12.659       -.16878E-08    .12134E-04
  18  norm          2.2815        5.5455        .24850E-05    .64471E-03
  19  norm          10.920        8.5752       -.78030E-06    .38265E-03
  20  Prefactor     .10002E-03    1.8343       -.23621E-05** at limit **
  21  Prefactor     .10000E-03    12.870       -.13218E-05** at limit **
  22  Prefactor     42.432        48.099        .42970E-05    .19955E-03
  23  Prefactor     12.024        16.371        .35598E-06    .15896E-03
  24  Prefactor     30.531        52.576        .75545E-07    .21387E-04
  25  Normalizat    .99177        .16065        .83850E-06    .52579E-03
  26  Prefactor     .91512        .19612       -.83511E-06    .35300E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 31.9448
  Prefactor  = 0.0001
  norm       = 6.89833
  Prefactor  = 0.0001
  Prefactor  = 1.67916
  Prefactor  = 0.0001
  Prefactor  = 7.95914
  Prefactor  = 0.0001
  Prefactor  = 0.551939
  Prefactor  = 10.596
  Prefactor  = 0.0001
  norm       = 3.32571
  Prefactor  = 25.9252
  Prefactor  = 27.1746
  Prefactor  = 3.94062
  norm       = 5.40928
  norm       = 11.5906
  norm       = 2.2815
  norm       = 10.9199
  Prefactor  = 0.000100015
  Prefactor  = 0.0001
  Prefactor  = 42.4322
  Prefactor  = 12.0237
  Prefactor  = 30.531
  Normalizat = 0.99177
  Prefactor  = 0.915124
 **********
 **   18 **HESSE 
 **********

 FCN=   6082.599     FROM HESSE     STATUS=OK           460 CALLS     3588 TOTAL
                     EDM=   .53E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     31.945        34.320        .70891E-04   -1.4577    
   2  Prefactor     .10000E-03    19.529        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          6.8983        3.0309        .84612E-04   -1.5183    
   4  Prefactor     .10000E-03    5.9113        .25325E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     1.6792        1.5673        .88278E-04   -1.5449    
   6  Prefactor     .10000E-03    2.0522        .15850E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     7.9591        7.4099        .14214E-03   -1.5144    
   8  Prefactor     .10000E-03    10.169        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .55194        57.719        .46584E-02   -1.5559    
  10  Prefactor     10.596        116.50        .12160E-03   -1.5057    
  11  Prefactor     .10000E-03    1.4736        .92408E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          3.3257        7.5696        .22234E-03   -1.5343    
  13  Prefactor     25.925        34.837        .78640E-04   -1.4689    
  14  Prefactor     27.175        33.091        .76827E-04   -1.4665    
  15  Prefactor     3.9406        8.2940        .10161E-02   -1.5311    
  16  norm          5.4093        4.4159        .70543E-03   -1.5243    
  17  norm          11.591        12.662        .11767E-03   -1.5027    
  18  norm          2.2815        5.5007        .19550E-03   -1.5406    
  19  norm          10.920        8.5667        .12123E-03   -1.5047    
  20  Prefactor     .10002E-03    5.4410        .18552E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    12.999        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     42.432        47.684        .61599E-04   -1.4404    
  23  Prefactor     12.024        16.377        .11550E-03   -1.5014    
  24  Prefactor     30.531        52.618        .72488E-04   -1.4602    
  25  Normalizat    .99177        .18979        .22447E-03   -.93307    
  26  Prefactor     .91512        .23171        .29164E-03   -.95615    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.32445e-09
Minuit parameter uncertainties:
  1  34.3412
  2  4.70264e-06
  3  3.03095
  4  2.22452e-05
  5  1.56738
  6  5.75868e-06
  7  7.41077
  8  5.74479e-06
  9  11.2986
  10  70.445
  11  5.14454e-06
  12  7.57182
  13  34.8646
  14  33.1131
  15  8.29642
  16  4.4162
  17  12.6651
  18  5.50193
  19  8.56764
  20  0.000575159
  21  4.66635e-06
  22  47.7265
  23  16.3826
  24  52.6985
  25  0.189916
  26  0.231959
Done.

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

Extracting fit parameters...

4FGL J1249.8+3707
   Spectrum: PowerLaw
313    Prefactor:  5.519e-01  1.130e+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:  9.151e-01  2.320e-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:  9.918e-01  1.899e-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.80e-08 ph cm-2 s-1
Energy Flux Upper Limit: 2.79e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/937286/likelihoodResults_391478401_391737601_4FGL_J1249.8+3707_daily_bin587.txt

Performing a free index iterative likelihood fit...

Freezing all point sources, except source of interest...

Done.

Freeing candidate source...
Done.

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6082.59857657
delta logL = 0.000126947073113

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6082.59822423
delta logL = 0.000479286208247

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .55335       1.0000         .10000E-03   10000.    
     2 'Index     '    1.8765       1.0000          .0000       10.000    
     3 'Normalizat'    .99194       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .91475       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=   6082.598     FROM MIGRAD    STATUS=CONVERGED     68 CALLS      238 TOTAL
                     EDM=   .31E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .56704        7.5986        .11487        .32425E-03
   2  Index         1.8739        .26458        .50000        .32626E-05
   3  Normalizat    .99179        .39154E-02    .46066E-01    .53685E-05
   4  Prefactor     .91494        .49320E-02    .65940E-01    .15741E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.567035
  Index      = 1.87393
  Normalizat = 0.991791
  Prefactor  = 0.914941
 **********
 **   18 **HESSE 
 **********

 FCN=   6082.598     FROM HESSE     STATUS=OK            35 CALLS      273 TOTAL
                     EDM=   .58E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .56704        60.999        .42055E-02   -1.5557    
   2  Index         1.8739        2.9851        .51752E-02   -.67541    
   3  Normalizat    .99179        .18074        .22447E-03   -.93306    
   4  Prefactor     .91494        .22868        .29167E-03   -.95621    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.79912e-11
Minuit parameter uncertainties:
  1  11.7737
  2  3.39881
  3  0.180854
  4  0.228916
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/937286': 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) = 6082.59822274
delta logL = 0.000480777942357

Extracting fit parameters...

4FGL J1249.8+3707
   Spectrum: PowerLaw
313    Prefactor:  5.670e-01  1.177e+01  1.000e-04  1.000e+04 ( 1.000e-14)
314        Index:  1.874e+00  3.399e+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.149e-01  2.289e-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:  9.918e-01  1.809e-01  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/937286/cmap_HighResolution_391478401_391737601_4FGL_J1249.8+3707_daily_bin587.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.79e-03', job_status='DONE', photon_flux_upper_limit='3.80e-08', time_completed='2021-09-06 06:48:45.306984', job_id='937286', GAL2='0.91', fit_tolerance='1e-08', EG2='0.99', EG='0.99', time_epoch_completed='1630936125.31', return_code2='0', ts='0.00', comment='SUCCESS', return_code='0', GAL='0.92', dlogl='4.81e-04', ts2='0.00', photon_index_error='0.00', photon_index='1.78' WHERE bin_id='587' AND source_name='4FGL J1249.8+3707' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep  6 06:48:45 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0274>
Subject: Job 937286: <4FGL_J1249.8+3707_daily_bin587> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1249.8+3707_daily_bin587 192.46 37.1306 391478401 391737601 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 :                                   765.19 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             350.19 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   783 sec.
    Turnaround time :                            786 sec.

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

