/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 78 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 = 7474
number of fields = 22
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J1249.8+3707_daily_bin54
RA = 192.46, Dec = 37.1306
tmin = 253324801, tmax = 253584001
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='934355', job_status='RUN', time_executed='2021-09-06 06:27:22.492001', time_epoch_executed='1630934842.49' WHERE source_name='4FGL J1249.8+3707' and cadence='daily' and bin_id='54'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/934355

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/934355/ft1_4FGL_J1249.8+3707_daily_bin54.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/934355/ft2_4FGL_J1249.8+3707_daily_bin54.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/934355/ft1_4FGL_J1249.8+3707_daily_bin54.fits outfile=/scratch/kocevski/934355/ft1_filteredMKT_4FGL_J1249.8+3707_daily_bin54.fits ra=192.46 dec=37.1306 rad=12.0 tmin=253324801.0 tmax=253584001.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 1.56
user 1.23
sys 0.19

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/934355/ft2_4FGL_J1249.8+3707_daily_bin54.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/934355/ft1_filteredMKT_4FGL_J1249.8+3707_daily_bin54.fits evtable="EVENTS" outfile="/scratch/kocevski/934355/ft1_filtered_4FGL_J1249.8+3707_daily_bin54.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.67
user 0.35
sys 0.17

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/934355/ft1_filtered_4FGL_J1249.8+3707_daily_bin54.fits" evtable="EVENTS" scfile=/scratch/kocevski/934355/ft2_4FGL_J1249.8+3707_daily_bin54.fits sctable="SC_DATA" outfile=/scratch/kocevski/934355/ltcube_253324801_253584001_4FGL_J1249.8+3707_daily_bin54.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/934355/ft2_4FGL_J1249.8+3707_daily_bin54.fits
.....................!
real 14.98
user 14.58
sys 0.29

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/934355/ft1_filtered_4FGL_J1249.8+3707_daily_bin54.fits evtable="EVENTS" scfile=/scratch/kocevski/934355/ft2_4FGL_J1249.8+3707_daily_bin54.fits sctable="SC_DATA" expcube=/scratch/kocevski/934355/ltcube_253324801_253584001_4FGL_J1249.8+3707_daily_bin54.fits outfile=/scratch/kocevski/934355/expmap_253324801_253584001_4FGL_J1249.8+3707_daily_bin54.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/934355/ltcube_253324801_253584001_4FGL_J1249.8+3707_daily_bin54.fits
.....................!
real 191.83
user 185.47
sys 5.37

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/934355/ft1_filtered_4FGL_J1249.8+3707_daily_bin54.fits scfile=/scratch/kocevski/934355/ft2_4FGL_J1249.8+3707_daily_bin54.fits outfile=/scratch/kocevski/934355/cmap_253324801_253584001_4FGL_J1249.8+3707_daily_bin54.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.62
user 0.38
sys 0.13

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/934355/ft1_filtered_4FGL_J1249.8+3707_daily_bin54.fits scfile=/scratch/kocevski/934355/ft2_4FGL_J1249.8+3707_daily_bin54.fits outfile=/scratch/kocevski/934355/cmap_HighResolution_253324801_253584001_4FGL_J1249.8+3707_daily_bin54.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.58
user 0.39
sys 0.14

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10013E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    13.412       1.0000         .10000E-03   10000.    
     3 'norm      '    2.2169       1.0000         .10000E-03   10000.    
     4 'Prefactor '    4.9137       1.0000         .10000E-03   10000.    
     5 'Prefactor '    3.2212       1.0000         .10000E-03   10000.    
     6 'Prefactor '    6.3635       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10031E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10038E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10015E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10015E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    11.048       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10016E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    4.4960       1.0000         .10000E-03   10000.    
    17 'norm      '    10.062       1.0000         .10000E-03   10000.    
    18 'norm      '    9.2958       1.0000         .10000E-03   10000.    
    19 'norm      '    .10016E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .36153       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .23591       1.0000         .10000E-03   10000.    
    23 'Prefactor '    4.7884       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10059E-03   1.0000         .10000E-03   10000.    
    25 'Normalizat'    1.0960       1.0000         .10000E-01   10.000    
    26 'Prefactor '    .80395       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6280E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   5041.700     FROM MIGRAD    STATUS=CONVERGED    163 CALLS     2624 TOTAL
                     EDM=   .37E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    24.963        .60847E-06** at limit **
   2  Prefactor     13.480        34.373        .17848E-05    .56223E-04
   3  norm          2.2159        3.4788        .19136E-06   -.10545E-04
   4  Prefactor     4.9105        2.4560        .31339E-08    .12349E-02
   5  Prefactor     3.2209        2.8465        .74640E-07   -.55036E-05
   6  Prefactor     6.3630        2.7407        .24760E-07   -.85178E-07
   7  Prefactor     .10000E-03    8.4755       -.10655E-05** at limit **
   8  Prefactor     .10000E-03    18.649       -.20474E-05** at limit **
   9  Prefactor     .10000E-03    9.4855        .26317E-06** at limit **
  10  Prefactor     .10004E-03    18.621        .33068E-05** at limit **
  11  Prefactor     .10000E-03    4.8386       -.24658E-06** at limit **
  12  norm          .10000E-03    1.3490        .73752E-06** at limit **
  13  Prefactor     11.056        5.0303        .26532E-06    .19676E-03
  14  Prefactor     .10000E-03    14.751        .20354E-05** at limit **
  15  Prefactor     .10000E-03    8.2354       -.44833E-06** at limit **
  16  norm          4.4952        4.3450       -.73276E-07    .10013E-04
  17  norm          10.061        1.3134        .44993E-07   -.19987E-03
  18  norm          9.2915        4.4299        .38751E-07    .44953E-04
  19  norm          .10000E-03    7.4722        .19625E-05** at limit **
  20  Prefactor     .35795        3.8023        .11568E-05   -.21981E-05
  21  Prefactor     .10000E-03    6.1837        .24126E-06** at limit **
  22  Prefactor     .10000E-03    8125.1       -.63981E-05** at limit **
  23  Prefactor     4.7950        10.447        .83129E-06   -.84845E-03
  24  Prefactor     .10004E-03    20.598        .20099E-05** at limit **
  25  Normalizat    1.0961        .20253        .25111E-06   -.92363E-05
  26  Prefactor     .80377        .24605        .10827E-05   -.63399E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 13.4798
  norm       = 2.21586
  Prefactor  = 4.91052
  Prefactor  = 3.22095
  Prefactor  = 6.36295
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100039
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 11.0564
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 4.49524
  norm       = 10.061
  norm       = 9.2915
  norm       = 0.0001
  Prefactor  = 0.357946
  Prefactor  = 0.0001
  Prefactor  = 0.000100002
  Prefactor  = 4.79502
  Prefactor  = 0.000100037
  Normalizat = 1.09608
  Prefactor  = 0.803773
 **********
 **   18 **HESSE 
 **********

 FCN=   5041.700     FROM HESSE     STATUS=OK           520 CALLS     3144 TOTAL
                     EDM=   .97E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    25.206        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     13.480        34.924        .27344E-02   -1.4974    
   3  norm          2.2159        3.5029        .69053E-02   -1.5410    
   4  Prefactor     4.9105        9.2444        .45362E-02   -1.5265    
   5  Prefactor     3.2209        2.8508        .56429E-02   -1.5349    
   6  Prefactor     6.3630        2.7468        .39778E-02   -1.5203    
   7  Prefactor     .10000E-03    8.4056        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    18.648        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    9.4886        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10004E-03    28.567        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    4.7933        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          .10000E-03    1.3477        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     11.056        33.253        .30134E-02   -1.5043    
  14  Prefactor     .10000E-03    14.721        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    8.2147        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          4.4952        4.3658        .47470E-02   -1.5284    
  17  norm          10.061        12.465        .31581E-02   -1.5073    
  18  norm          9.2915        4.5003        .32862E-02   -1.5098    
  19  norm          .10000E-03    7.3801        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .35795        2.3527        .35848E-01   -1.5588    
  21  Prefactor     .10000E-03    6.1791        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    74.928        .15005       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     4.7950        13.320        .45964E-02   -1.5270    
  24  Prefactor     .10004E-03    29.127        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Normalizat    1.0961        .17648        .38167E-01   -.89878    
  26  Prefactor     .80377        .21385        .68621E-01   -.99589    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.69136e-09
Minuit parameter uncertainties:
  1  0.000167583
  2  34.9767
  3  3.50324
  4  9.24705
  5  2.85095
  6  2.74685
  7  9.60899e-07
  8  2.28044e-06
  9  3.18775e-08
  10  0.00212195
  11  1.26163e-07
  12  4.56659e-07
  13  33.309
  14  3.58428e-06
  15  3.04069e-06
  16  4.36611
  17  12.468
  18  4.50048
  19  3.38748e-06
  20  1.8352
  21  2.25149e-07
  22  0.000681043
  23  13.3287
  24  0.00207409
  25  0.176574
  26  0.214071
Done.

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

Extracting fit parameters...

4FGL J1249.8+3707
   Spectrum: PowerLaw
313    Prefactor:  1.000e-04  3.188e-08  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:  8.038e-01  2.141e-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.096e+00  1.766e-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.11e-08 ph cm-2 s-1
Energy Flux Upper Limit: 3.02e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/934355/likelihoodResults_253324801_253584001_4FGL_J1249.8+3707_daily_bin54.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) = 5041.70018349
delta logL = -0.0005006504216

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5041.69968284
delta logL = 8.09450284578e-11

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    1.7775       1.0000          .0000       10.000    
     3 'Normalizat'    1.0961       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .80377       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=   5041.700     FROM MIGRAD    STATUS=CONVERGED     55 CALLS      207 TOTAL
                     EDM=   .97E-10    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    219.41        .90712E-02** at limit **
   2  Index         1.7749        8.3135        .50000        .19357E-05
   3  Normalizat    1.0961        .21278E-01    .38162E-01    .88768E-05
   4  Prefactor     .80377        .26331E-01    .68621E-01    .16154E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 1.77493
  Normalizat = 1.09608
  Prefactor  = 0.803773
 **********
 **   18 **HESSE 
 **********

 FCN=   5041.700     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      240 TOTAL
                     EDM=   .12E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    340.78        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         1.7749        5.5212        .50000       -.70104    
   3  Normalizat    1.0961        .26959E-01    .21439E-03   -.89878    
   4  Prefactor     .80377        .33313E-01    .30361E-03   -.99589    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.22529e-10
Minuit parameter uncertainties:
  1  1.16189e-05
  2  23.0546
  3  0.0269594
  4  0.0333137
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/934355': 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) = 5041.69968283
delta logL = 2.77304934571e-09

Extracting fit parameters...

4FGL J1249.8+3707
   Spectrum: PowerLaw
313    Prefactor:  1.000e-04  1.162e-05  1.000e-04  1.000e+04 ( 1.000e-14)
314        Index:  1.775e+00  2.305e+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:  8.038e-01  3.331e-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.096e+00  2.696e-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/934355/cmap_HighResolution_253324801_253584001_4FGL_J1249.8+3707_daily_bin54.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.02e-03', job_status='DONE', photon_flux_upper_limit='4.11e-08', time_completed='2021-09-06 06:38:31.700784', job_id='934355', GAL2='0.80', fit_tolerance='1e-08', EG2='1.10', EG='1.10', time_epoch_completed='1630935511.7', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.80', dlogl='2.77e-09', ts2='-0.00', photon_index_error='0.00', photon_index='1.78' WHERE bin_id='54' AND source_name='4FGL J1249.8+3707' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep  6 06:38:31 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0237>
Subject: Job 934355: <4FGL_J1249.8+3707_daily_bin54> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1249.8+3707_daily_bin54 192.46 37.1306 253324801 253584001 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 :                                   657.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             306.77 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   762 sec.
    Turnaround time :                            763 sec.

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

