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


Performing analysis on: 4FGL_J1249.8+3707_daily_bin848
RA = 192.46, Dec = 37.1306
tmin = 459129601, tmax = 459388801
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='938797', job_status='RUN', time_executed='2021-09-06 06:41:10.487165', time_epoch_executed='1630935670.49' WHERE source_name='4FGL J1249.8+3707' and cadence='daily' and bin_id='848'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/938797

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/938797/ft1_4FGL_J1249.8+3707_daily_bin848.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/938797/ft2_4FGL_J1249.8+3707_daily_bin848.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/938797/ft1_4FGL_J1249.8+3707_daily_bin848.fits outfile=/scratch/kocevski/938797/ft1_filteredMKT_4FGL_J1249.8+3707_daily_bin848.fits ra=192.46 dec=37.1306 rad=12.0 tmin=459129601.0 tmax=459388801.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.00
user 3.64
sys 0.22

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/938797/ft2_4FGL_J1249.8+3707_daily_bin848.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/938797/ft1_filteredMKT_4FGL_J1249.8+3707_daily_bin848.fits evtable="EVENTS" outfile="/scratch/kocevski/938797/ft1_filtered_4FGL_J1249.8+3707_daily_bin848.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.79
user 0.34
sys 0.16

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/938797/ft1_filtered_4FGL_J1249.8+3707_daily_bin848.fits evtable="EVENTS" scfile=/scratch/kocevski/938797/ft2_4FGL_J1249.8+3707_daily_bin848.fits sctable="SC_DATA" expcube=/scratch/kocevski/938797/ltcube_459129601_459388801_4FGL_J1249.8+3707_daily_bin848.fits outfile=/scratch/kocevski/938797/expmap_459129601_459388801_4FGL_J1249.8+3707_daily_bin848.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/938797/ltcube_459129601_459388801_4FGL_J1249.8+3707_daily_bin848.fits
.....................!
real 190.00
user 185.03
sys 4.18

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/938797/ft1_filtered_4FGL_J1249.8+3707_daily_bin848.fits scfile=/scratch/kocevski/938797/ft2_4FGL_J1249.8+3707_daily_bin848.fits outfile=/scratch/kocevski/938797/cmap_459129601_459388801_4FGL_J1249.8+3707_daily_bin848.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.53
user 0.36
sys 0.15

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

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .14133E-02   1.0000         .10000E-03   10000.    
     3 'norm      '    5.8088       1.0000         .10000E-03   10000.    
     4 'Prefactor '    11.595       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10038E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    9.9094       1.0000         .10000E-03   10000.    
     7 'Prefactor '    9.3411       1.0000         .10000E-03   10000.    
     8 'Prefactor '    69.590       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10039E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    46.572       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10020E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    2.9859       1.0000         .10000E-03   10000.    
    17 'norm      '    .10046E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    3.8701       1.0000         .10000E-03   10000.    
    19 'norm      '    8.3037       1.0000         .10000E-03   10000.    
    20 'Prefactor '    1.8971       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    10.784       1.0000         .10000E-03   10000.    
    25 'Normalizat'    1.3872       1.0000         .10000E-01   10.000    
    26 'Prefactor '    .70708       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=   6165.350     FROM MIGRAD    STATUS=CONVERGED    614 CALLS     3059 TOTAL
                     EDM=   .42E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    24.518        .79949E-05** at limit **
   2  Prefactor     .10000E-03    197.44        .15624E-04** at limit **
   3  norm          5.8053        3.1895        .14100E-06   -.90301E-04
   4  Prefactor     11.576        9.1772       -.60719E-06   -.64236E-03
   5  Prefactor     .10000E-03    1.1393        .53053E-08** at limit **
   6  Prefactor     9.9078        4.0490       -.19357E-06   -.10523E-03
   7  Prefactor     9.3447        15.487       -.18548E-05   -.35407E-04
   8  Prefactor     69.612        32.375        .32181E-05    .71124E-05
   9  Prefactor     .10000E-03    8.3665        .16779E-05** at limit **
  10  Prefactor     46.522        58.612       -.48802E-04   -.10802E-05
  11  Prefactor     .10000E-03    5.8885        .11702E-05** at limit **
  12  norm          .10000E-03    1.1567        .12507E-06** at limit **
  13  Prefactor     .10000E-03    23.093       -.37809E-05** at limit **
  14  Prefactor     .10000E-03    8.5548        .65633E-06** at limit **
  15  Prefactor     .10000E-03    6.7728       -.18764E-05** at limit **
  16  norm          2.9863        3.0907        .49568E-07    .14908E-03
  17  norm          .10000E-03    5.4912       -.37399E-06** at limit **
  18  norm          3.8737        5.6498        .50623E-06   -.56308E-03
  19  norm          8.3020        8.1294       -.61081E-06   -.78780E-03
  20  Prefactor     1.8984        2.7322       -.32371E-06   -.68611E-03
  21  Prefactor     .10000E-03    15.098        .84537E-05** at limit **
  22  Prefactor     .10000E-03    19.865       -.98507E-05** at limit **
  23  Prefactor     .10000E-03    11.450       -.42089E-05** at limit **
  24  Prefactor     10.777        130.33       -.16786E-04   -.64318E-06
  25  Normalizat    1.3869        .18804        .13664E-05   -.17897E-03
  26  Prefactor     .70706        .21948        .21458E-05   -.58798E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.000100002
  norm       = 5.80534
  Prefactor  = 11.5758
  Prefactor  = 0.0001
  Prefactor  = 9.90783
  Prefactor  = 9.34471
  Prefactor  = 69.6121
  Prefactor  = 0.0001
  Prefactor  = 46.5222
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 2.98627
  norm       = 0.0001
  norm       = 3.87369
  norm       = 8.30197
  Prefactor  = 1.89843
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 10.7774
  Normalizat = 1.38688
  Prefactor  = 0.707059
 **********
 **   18 **HESSE 
 **********

 FCN=   6165.350     FROM HESSE     STATUS=OK           450 CALLS     3509 TOTAL
                     EDM=   .85E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    24.521        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    202.28        .41034E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          5.8053        3.1789        .99216E-04   -1.5226    
   4  Prefactor     11.576        9.1913        .58825E-03   -1.5027    
   5  Prefactor     .10000E-03    1.1435        .81585E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     9.9078        4.0442        .90630E-04   -1.5078    
   7  Prefactor     9.3447        15.458        .13113E-03   -1.5096    
   8  Prefactor     69.612        32.422        .48119E-04   -1.4037    
   9  Prefactor     .10000E-03    8.3721        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     46.522        58.530        .58754E-04   -1.4343    
  11  Prefactor     .10000E-03    6.0156        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          .10000E-03    1.1579        .82469E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    23.114        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    8.5613        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    6.7820        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          2.9863        3.0946        .13645E-03   -1.5362    
  17  norm          .10000E-03    5.4995        .17971E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          3.8737        5.6913        .16962E-03   -1.5314    
  19  norm          8.3020        8.2148        .69561E-03   -1.5132    
  20  Prefactor     1.8984        2.7037        .14825E-03   -1.5432    
  21  Prefactor     .10000E-03    15.508        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    19.867        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    11.489        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     10.777        132.25        .12200E-03   -1.5051    
  25  Normalizat    1.3869        .22237        .22538E-03   -.81009    
  26  Prefactor     .70706        .25625        .36242E-03   -1.0325    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.45011e-10
Minuit parameter uncertainties:
  1  1.79675e-05
  2  0.00139686
  3  3.17896
  4  9.1924
  5  7.17845e-07
  6  4.04431
  7  15.4644
  8  32.4306
  9  5.02373e-06
  10  58.6021
  11  1.30812e-05
  12  1.35866e-05
  13  3.24941e-05
  14  2.45285e-05
  15  1.76205e-06
  16  3.09479
  17  6.5689e-06
  18  5.69205
  19  8.21587
  20  2.70386
  21  9.09364e-05
  22  9.38699e-08
  23  7.05202e-06
  24  75.716
  25  0.222522
  26  0.256679
Done.

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

Extracting fit parameters...

4FGL J1249.8+3707
   Spectrum: PowerLaw
313    Prefactor:  1.000e-04  5.024e-06  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:  7.071e-01  2.567e-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.387e+00  2.225e-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.79e-08 ph cm-2 s-1
Energy Flux Upper Limit: 2.78e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/938797/likelihoodResults_459129601_459388801_4FGL_J1249.8+3707_daily_bin848.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) = 6165.35062003
delta logL = -0.00056470810523

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6165.35005826
delta logL = -2.93868379231e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .12364E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    1.7517       1.0000          .0000       10.000    
     3 'Normalizat'    1.3865       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .70752       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=   6165.350     FROM MIGRAD    STATUS=CONVERGED     87 CALLS      244 TOTAL
                     EDM=   .16E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10060E-03    44.333        .18142E-02** at limit **
   2  Index         1.7141        5.4739        .50000        .19449E-04
   3  Normalizat    1.3869        .10123E-01    .22538E-03    .47395E-04
   4  Prefactor     .70706        .12091E-01    .36242E-03    .34850E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001006
  Index      = 1.71414
  Normalizat = 1.38688
  Prefactor  = 0.707058
 **********
 **   18 **HESSE 
 **********

 FCN=   6165.350     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      273 TOTAL
                     EDM=   .74E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10060E-03    204.25        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         1.7141        9.0386        .50000       -.71706    
   3  Normalizat    1.3869        .22214E-01    .45077E-04   -.81009    
   4  Prefactor     .70706        .26531E-01    .14497E-04   -1.0325    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 7.37411e-09
Minuit parameter uncertainties:
  1  0.0222191
  2  252.944
  3  0.0222143
  4  0.0265318
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/938797': 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) = 6165.35005498
delta logL = 3.45780790667e-07

Extracting fit parameters...

4FGL J1249.8+3707
   Spectrum: PowerLaw
313    Prefactor:  1.006e-04  2.222e-02  1.000e-04  1.000e+04 ( 1.000e-14)
314        Index:  1.714e+00  2.529e+02  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:  7.071e-01  2.653e-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.387e+00  2.221e-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/938797/cmap_HighResolution_459129601_459388801_4FGL_J1249.8+3707_daily_bin848.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.78e-03', job_status='DONE', photon_flux_upper_limit='3.79e-08', time_completed='2021-09-06 06:54:05.410328', job_id='938797', GAL2='0.71', fit_tolerance='1e-08', EG2='1.39', EG='1.39', time_epoch_completed='1630936445.41', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.71', dlogl='3.46e-07', ts2='-0.00', photon_index_error='0.00', photon_index='1.78' WHERE bin_id='848' AND source_name='4FGL J1249.8+3707' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep  6 06:54:05 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0211>
Subject: Job 938797: <4FGL_J1249.8+3707_daily_bin848> in cluster <slac> Done

Job <4FGL_J1249.8+3707_daily_bin848> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Mon Sep  6 06:40:35 2021
Job was executed on host(s) <bullet0211>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Sep  6 06:40:36 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Mon Sep  6 06:40:36 2021
Terminated at Mon Sep  6 06:54:06 2021
Results reported at Mon Sep  6 06:54:06 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1249.8+3707_daily_bin848 192.46 37.1306 459129601 459388801 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 :                                   763.20 sec.
    Max Memory :                                 618 MB
    Average Memory :                             292.76 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   809 sec.
    Turnaround time :                            811 sec.

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

