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


Performing analysis on: 4FGL_J1249.8+3707_daily_bin504
RA = 192.46, Dec = 37.1306
tmin = 369964801, tmax = 370224001
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='937164', job_status='RUN', time_executed='2021-09-06 06:37:54.936171', time_epoch_executed='1630935474.94' WHERE source_name='4FGL J1249.8+3707' and cadence='daily' and bin_id='504'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/937164

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/937164/ft1_4FGL_J1249.8+3707_daily_bin504.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/937164/ft2_4FGL_J1249.8+3707_daily_bin504.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/937164/ft1_4FGL_J1249.8+3707_daily_bin504.fits outfile=/scratch/kocevski/937164/ft1_filteredMKT_4FGL_J1249.8+3707_daily_bin504.fits ra=192.46 dec=37.1306 rad=12.0 tmin=369964801.0 tmax=370224001.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 7.69
user 7.38
sys 0.25

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/937164/ft2_4FGL_J1249.8+3707_daily_bin504.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/937164/ft1_filteredMKT_4FGL_J1249.8+3707_daily_bin504.fits evtable="EVENTS" outfile="/scratch/kocevski/937164/ft1_filtered_4FGL_J1249.8+3707_daily_bin504.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.53
user 0.33
sys 0.15

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/937164/ft1_filtered_4FGL_J1249.8+3707_daily_bin504.fits evtable="EVENTS" scfile=/scratch/kocevski/937164/ft2_4FGL_J1249.8+3707_daily_bin504.fits sctable="SC_DATA" expcube=/scratch/kocevski/937164/ltcube_369964801_370224001_4FGL_J1249.8+3707_daily_bin504.fits outfile=/scratch/kocevski/937164/expmap_369964801_370224001_4FGL_J1249.8+3707_daily_bin504.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/937164/ltcube_369964801_370224001_4FGL_J1249.8+3707_daily_bin504.fits
.....................!
real 191.12
user 185.91
sys 4.67

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/937164/ft1_filtered_4FGL_J1249.8+3707_daily_bin504.fits scfile=/scratch/kocevski/937164/ft2_4FGL_J1249.8+3707_daily_bin504.fits outfile=/scratch/kocevski/937164/cmap_369964801_370224001_4FGL_J1249.8+3707_daily_bin504.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.57
user 0.38
sys 0.14

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

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

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 'Prefactor '    19.001       1.0000         .10000E-03   10000.    
     3 'norm      '    2.6966       1.0000         .10000E-03   10000.    
     4 'Prefactor '    4.9550       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .65244       1.0000         .10000E-03   10000.    
     7 'Prefactor '    5.6491       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    12.212       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10082E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10055E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    .10356E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    9.9768       1.0000         .10000E-03   10000.    
    14 'Prefactor '    21.583       1.0000         .10000E-03   10000.    
    15 'Prefactor '    13.134       1.0000         .10000E-03   10000.    
    16 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    6.9002       1.0000         .10000E-03   10000.    
    18 'norm      '    .10533E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    .10007E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10036E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    9.9502       1.0000         .10000E-03   10000.    
    22 'Prefactor '    17.727       1.0000         .10000E-03   10000.    
    23 'Prefactor '    22.427       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    25 'Normalizat'    1.0867       1.0000         .10000E-01   10.000    
    26 'Prefactor '    .87660       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=   5875.059     FROM MIGRAD    STATUS=CONVERGED    619 CALLS     3113 TOTAL
                     EDM=   .85E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    13.953        .84086E-06** at limit **
   2  Prefactor     18.996        24.369       -.57877E-06   -.13266E-04
   3  norm          2.6965        2.1726       -.83268E-07   -.51582E-04
   4  Prefactor     4.9567        6.4289        .32687E-05   -.90383E-03
   5  Prefactor     .10000E-03    .75474       -.16397E-07** at limit **
   6  Prefactor     .65331        1.5898        .39175E-06   -.78097E-04
   7  Prefactor     5.6490        6.3167       -.54414E-07   -.41129E-04
   8  Prefactor     .10000E-03    7.1184        .24874E-07** at limit **
   9  Prefactor     12.219        18.459       -.79663E-06   -.11664E-03
  10  Prefactor     .10000E-03    43.008        .27639E-06** at limit **
  11  Prefactor     .10000E-03    3.9776       -.83000E-07** at limit **
  12  norm          .10000E-03    1.8179        .48974E-07** at limit **
  13  Prefactor     9.9747        28.141       -.23671E-06   -.19776E-04
  14  Prefactor     21.524        26.101        .80864E-06    .67343E-04
  15  Prefactor     13.142        19.098        .40633E-06    .14399E-04
  16  norm          .10000E-03    2.6121        .12503E-07** at limit **
  17  norm          6.9000        12.766        .20248E-06    .40600E-05
  18  norm          .10000E-03    2.1599        .45053E-07** at limit **
  19  norm          .10000E-03    2.1488        .15314E-07** at limit **
  20  Prefactor     .10000E-03    .99769       -.14168E-06** at limit **
  21  Prefactor     9.9366        12.808       -.77253E-06   -.34711E-03
  22  Prefactor     17.687        35.471       -.68188E-05   -.36397E-03
  23  Prefactor     22.419        21.389        .45860E-06    .43906E-04
  24  Prefactor     .10000E-03    13.668       -.81863E-06** at limit **
  25  Normalizat    1.0865        .16716       -.42579E-06   -.13901E-04
  26  Prefactor     .87682        .20291        .12148E-06   -.25561E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 18.9956
  norm       = 2.69651
  Prefactor  = 4.95672
  Prefactor  = 0.0001
  Prefactor  = 0.653306
  Prefactor  = 5.64899
  Prefactor  = 0.0001
  Prefactor  = 12.2188
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 9.97471
  Prefactor  = 21.5237
  Prefactor  = 13.1418
  norm       = 0.0001
  norm       = 6.89997
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 9.93663
  Prefactor  = 17.6871
  Prefactor  = 22.4186
  Prefactor  = 0.0001
  Normalizat = 1.08649
  Prefactor  = 0.876817
 **********
 **   18 **HESSE 
 **********

 FCN=   5875.059     FROM HESSE     STATUS=OK           462 CALLS     3575 TOTAL
                     EDM=   .90E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    13.990        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     18.996        24.377        .91883E-04   -1.4836    
   3  norm          2.6965        2.1615        .96640E-04   -1.5380    
   4  Prefactor     4.9567        6.7808        .90337E-03   -1.5263    
   5  Prefactor     .10000E-03    .76045        .64944E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .65331        1.4641        .14302E-02   -1.5546    
   7  Prefactor     5.6490        6.3016        .16901E-03   -1.5233    
   8  Prefactor     .10000E-03    7.1249        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     12.219        18.485        .11463E-03   -1.5009    
  10  Prefactor     .10000E-03    43.037        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    3.9949        .14888E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          .10000E-03    1.8211        .10080E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     9.9747        28.144        .12686E-03   -1.5076    
  14  Prefactor     21.524        25.255        .86217E-04   -1.4780    
  15  Prefactor     13.142        19.094        .11053E-03   -1.4983    
  16  norm          .10000E-03    2.6289        .12073E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          6.9000        12.790        .15273E-03   -1.5183    
  18  norm          .10000E-03    8.4507        .20474E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          .10000E-03    2.1518        .10968E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    .99873        .74604E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     9.9366        12.735        .12703E-03   -1.5077    
  22  Prefactor     17.687        37.895        .95126E-04   -1.4867    
  23  Prefactor     22.419        21.396        .84581E-04   -1.4761    
  24  Prefactor     .10000E-03    13.702        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Normalizat    1.0865        .19597        .21641E-03   -.90187    
  26  Prefactor     .87682        .23726        .29676E-03   -.96956    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.01405e-09
Minuit parameter uncertainties:
  1  0.000123547
  2  24.3902
  3  2.16153
  4  6.78182
  5  1.20043e-06
  6  1.46418
  7  6.30237
  8  3.71172e-07
  9  18.4935
  10  4.78911e-05
  11  4.81687e-06
  12  2.33024e-06
  13  28.1814
  14  25.2676
  15  19.1031
  16  4.73222e-07
  17  12.7956
  18  6.87313e-05
  19  1.83882e-06
  20  7.1501e-06
  21  12.738
  22  37.9469
  23  21.4031
  24  0.000118845
  25  0.196105
  26  0.237536
Done.

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

Extracting fit parameters...

4FGL J1249.8+3707
   Spectrum: PowerLaw
313    Prefactor:  1.222e+01  1.849e+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:  8.768e-01  2.375e-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.086e+00  1.961e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.60
Ra Dec: 192.460 37.131
Photon Flux Upper Limit: 5.52e-08 ph cm-2 s-1
Energy Flux Upper Limit: 4.06e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/937164/likelihoodResults_369964801_370224001_4FGL_J1249.8+3707_daily_bin504.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) = 5874.54573204
delta logL = 0.513338637513

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5874.51324378
delta logL = 0.545826894207

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    3.3224       1.0000         .10000E-03   10000.    
     2 'Index     '    2.7116       1.0000          .0000       10.000    
     3 'Normalizat'    1.0505       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .89758       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=   5874.513     FROM MIGRAD    STATUS=CONVERGED     58 CALLS      256 TOTAL
                     EDM=   .32E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     3.3073        71.335        .55519E-02    .41663E-03
   2  Index         2.7130        2.6324        .80820E-01    .20052E-03
   3  Normalizat    1.0508        .60725E-01    .40521E-01    .39261E-05
   4  Prefactor     .89748        .64939E-01    .66338E-01    .13377E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 3.30727
  Index      = 2.71299
  Normalizat = 1.05077
  Prefactor  = 0.897478
 **********
 **   18 **HESSE 
 **********

 FCN=   5874.513     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      289 TOTAL
                     EDM=   .12E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     3.3073        125.35        .11892E-03   -1.5344    
   2  Index         2.7130        6.3536        .44363E-02   -.47507    
   3  Normalizat    1.0508        .24836        .21949E-03   -.91349    
   4  Prefactor     .89748        .27196        .29344E-03   -.96229    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.15966e-09
Minuit parameter uncertainties:
  1  40.814
  2  4.65935
  3  0.248633
  4  0.272372
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/937164': 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) = 5874.51324027
delta logL = 0.545830410909

Extracting fit parameters...

4FGL J1249.8+3707
   Spectrum: PowerLaw
313    Prefactor:  3.307e+00  4.081e+01  1.000e-04  1.000e+04 ( 1.000e-14)
314        Index:  2.713e+00  4.659e+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:  8.975e-01  2.724e-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.051e+00  2.486e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.70
Ra Dec: 192.460 37.131
Photon Index (Free Index): 2.71 +/- 4.66
Photon Flux (Free Index): 4.32e-08 +/- 1.01e-07
Energy Flux (Free Index): 1.03e-05 +/- 1.72e-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/937164/cmap_HighResolution_369964801_370224001_4FGL_J1249.8+3707_daily_bin504.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.06e-03', comment='SUCCESS', energy_flux2='1.03e-05', dlogl='5.46e-01', photon_flux2='4.32e-08', job_status='DONE', time_completed='2021-09-06 06:50:39.086550', photon_index_error2='4.66', photon_index2='2.71', ts='0.60', fit_tolerance='1e-08', GAL='0.88', photon_index_error='0.00', photon_flux_upper_limit='5.52e-08', energy_flux_error2='1.72e-05', EG='1.09', time_epoch_completed='1630936239.09', return_code='0', job_id='937164', GAL2='0.90', EG2='1.05', return_code2='102', photon_flux_error2='1.01e-07', ts2='1.70', photon_index='1.78' WHERE bin_id='504' AND source_name='4FGL J1249.8+3707' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep  6 06:50:39 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0172>
Subject: Job 937164: <4FGL_J1249.8+3707_daily_bin504> in cluster <slac> Done

Job <4FGL_J1249.8+3707_daily_bin504> 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) <bullet0172>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Sep  6 06:35:34 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:34 2021
Terminated at Mon Sep  6 06:50:39 2021
Results reported at Mon Sep  6 06:50:39 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1249.8+3707_daily_bin504 192.46 37.1306 369964801 370224001 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 :                                   760.37 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             231.15 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   905 sec.
    Turnaround time :                            908 sec.

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

