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


Performing analysis on: 4FGL_J1249.8+3707_daily_bin755
RA = 192.46, Dec = 37.1306
tmin = 435024001, tmax = 435283201
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='938665', job_status='RUN', time_executed='2021-09-06 06:42:48.832645', time_epoch_executed='1630935768.83' WHERE source_name='4FGL J1249.8+3707' and cadence='daily' and bin_id='755'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/938665

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/938665/ft1_4FGL_J1249.8+3707_daily_bin755.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/938665/ft2_4FGL_J1249.8+3707_daily_bin755.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/938665/ft1_4FGL_J1249.8+3707_daily_bin755.fits outfile=/scratch/kocevski/938665/ft1_filteredMKT_4FGL_J1249.8+3707_daily_bin755.fits ra=192.46 dec=37.1306 rad=12.0 tmin=435024001.0 tmax=435283201.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 5.04
user 4.76
sys 0.24

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/938665/ft1_filtered_4FGL_J1249.8+3707_daily_bin755.fits" evtable="EVENTS" scfile=/scratch/kocevski/938665/ft2_4FGL_J1249.8+3707_daily_bin755.fits sctable="SC_DATA" outfile=/scratch/kocevski/938665/ltcube_435024001_435283201_4FGL_J1249.8+3707_daily_bin755.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/938665/ft2_4FGL_J1249.8+3707_daily_bin755.fits
.....................!
real 12.15
user 11.78
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/938665/ft1_filtered_4FGL_J1249.8+3707_daily_bin755.fits evtable="EVENTS" scfile=/scratch/kocevski/938665/ft2_4FGL_J1249.8+3707_daily_bin755.fits sctable="SC_DATA" expcube=/scratch/kocevski/938665/ltcube_435024001_435283201_4FGL_J1249.8+3707_daily_bin755.fits outfile=/scratch/kocevski/938665/expmap_435024001_435283201_4FGL_J1249.8+3707_daily_bin755.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/938665/ltcube_435024001_435283201_4FGL_J1249.8+3707_daily_bin755.fits
.....................!
real 190.08
user 184.84
sys 4.84

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/938665/ft1_filtered_4FGL_J1249.8+3707_daily_bin755.fits scfile=/scratch/kocevski/938665/ft2_4FGL_J1249.8+3707_daily_bin755.fits outfile=/scratch/kocevski/938665/cmap_435024001_435283201_4FGL_J1249.8+3707_daily_bin755.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.15

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

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    318.19       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10086E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    6.6376       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10016E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    5.0625       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .37065       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10085E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    33.470       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    2.7901       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .28835       1.0000         .10000E-03   10000.    
    15 'Prefactor '    27.695       1.0000         .10000E-03   10000.    
    16 'norm      '    .87057       1.0000         .10000E-03   10000.    
    17 'norm      '    8.9084       1.0000         .10000E-03   10000.    
    18 'norm      '    .25753E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    13.919       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .11571E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .32231E-01   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .82617E-03   1.0000         .10000E-03   10000.    
    25 'Normalizat'    1.3833       1.0000         .10000E-01   10.000    
    26 'Prefactor '    .64753       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=   5332.975     FROM MIGRAD    STATUS=CONVERGED   1205 CALLS     3765 TOTAL
                     EDM=   .28E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     318.18        134.86        .22790E-04   -.11274E-04
   2  Prefactor     .10000E-03    61.181        .18142E-02** at limit **
   3  norm          6.6373        5.5271        .12752E-03    .75777E-04
   4  Prefactor     .10000E-03    5.5574        .16753E-02** at limit **
   5  Prefactor     5.0627        4.2115        .11235E-03    .31654E-03
   6  Prefactor     .37004        4.7548        .21542E-02    .28633E-03
   7  Prefactor     .10000E-03    23.824        .18142E-02** at limit **
   8  Prefactor     33.463        30.532        .69264E-04   -.29872E-04
   9  Prefactor     .10000E-03    17.153        .18142E-02** at limit **
  10  Prefactor     .10000E-03    41.100        .18142E-02** at limit **
  11  Prefactor     .10000E-03    4.9707        .15853E-02** at limit **
  12  norm          2.7943        3.2369        .13463E-03    .48191E-03
  13  Prefactor     .10000E-03    38.095        .18142E-02** at limit **
  14  Prefactor     .49775E-01    48.138        .10229       -.13844E-04
  15  Prefactor     27.726        26.870        .76125E-04   -.74969E-04
  16  norm          .87170        6.5361        .33907E-03    .55557E-04
  17  norm          8.9080        13.007        .13429E-03   -.90922E-04
  18  norm          .83573E-03    29.871        .33751E-01** at limit **
  19  norm          13.929        12.970        .10736E-03   -.10239E-02
  20  Prefactor     .10000E-03    1.5385        .87993E-03** at limit **
  21  Prefactor     .10000E-03    5.6169        .16886E-02** at limit **
  22  Prefactor     .10002E-03    176.37        .18142E-02** at limit **
  23  Prefactor     .10030E-03    16.265        .84347E-01** at limit **
  24  Prefactor     .10001E-03    65.587        .16727    ** at limit **
  25  Normalizat    1.3834        .24712        .22212E-03    .54200E-03
  26  Prefactor     .64745        .27944        .36621E-03    .14318E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 318.182
  Prefactor  = 0.0001
  norm       = 6.63728
  Prefactor  = 0.0001
  Prefactor  = 5.06271
  Prefactor  = 0.370037
  Prefactor  = 0.0001
  Prefactor  = 33.4626
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 2.79432
  Prefactor  = 0.0001
  Prefactor  = 0.049775
  Prefactor  = 27.7262
  norm       = 0.871701
  norm       = 8.90796
  norm       = 0.000835726
  norm       = 13.9294
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100024
  Prefactor  = 0.000100297
  Prefactor  = 0.000100006
  Normalizat = 1.38339
  Prefactor  = 0.647445
 **********
 **   18 **HESSE 
 **********

 FCN=   5332.975     FROM HESSE     STATUS=OK           472 CALLS     4237 TOTAL
                     EDM=   .20E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     318.18        134.87        .45580E-05   -1.2121    
   2  Prefactor     .10000E-03    61.195        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          6.6373        5.5228        .51010E-05   -1.5193    
   4  Prefactor     .10000E-03    5.5587        .33507E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     5.0627        4.2107        .44938E-05   -1.5258    
   6  Prefactor     .37004        4.7193        .86170E-04   -1.5586    
   7  Prefactor     .10000E-03    23.840        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     33.463        30.529        .27706E-05   -1.4550    
   9  Prefactor     .10000E-03    17.155        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    41.100        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    4.9711        .31706E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          2.7943        3.2331        .53853E-05   -1.5374    
  13  Prefactor     .10000E-03    38.096        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .49775E-01    41.800        .11000       -1.5663    
  15  Prefactor     27.726        26.847        .30450E-05   -1.4654    
  16  norm          .87170        6.5192        .13563E-04   -1.5521    
  17  norm          8.9080        13.007        .53716E-05   -1.5111    
  18  norm          .83573E-03    10.954        .49573E-01   -1.5703    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          13.929        11.020        .21472E-04   -1.4961    
  20  Prefactor     .10000E-03    1.5386        .17599E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    5.6172        .33772E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10002E-03    176.44        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10030E-03    15.837        .86007E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10001E-03    66.475        .16563       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Normalizat    1.3834        .24643        .44424E-04   -.81110    
  26  Prefactor     .64745        .27922        .14648E-04   -1.0562    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.9891e-09
Minuit parameter uncertainties:
  1  134.999
  2  0.00019626
  3  5.52327
  4  1.50656e-06
  5  4.21098
  6  2.64286
  7  0.000123877
  8  30.5431
  9  5.3559e-05
  10  5.41842e-07
  11  5.8379e-05
  12  3.23327
  13  2.3938e-05
  14  2.88397
  15  26.8589
  16  4.76818
  17  13.011
  18  0.179582
  19  11.0219
  20  3.78441e-06
  21  2.10046e-05
  22  0.00408938
  23  0.00434232
  24  0.00126057
  25  0.246637
  26  0.279822
Done.

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

Extracting fit parameters...

4FGL J1249.8+3707
   Spectrum: PowerLaw
313    Prefactor:  1.000e-04  5.356e-05  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:  6.474e-01  2.798e-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.383e+00  2.466e-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: 5.11e-08 ph cm-2 s-1
Energy Flux Upper Limit: 3.76e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/938665/likelihoodResults_435024001_435283201_4FGL_J1249.8+3707_daily_bin755.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) = 5332.9753843
delta logL = -0.000277613003163

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5332.97510635
delta logL = 3.33711795975e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10731E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.1237       1.0000          .0000       10.000    
     3 'Normalizat'    1.3834       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .64745       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=   5332.975     FROM MIGRAD    STATUS=CONVERGED     58 CALLS      250 TOTAL
                     EDM=   .82E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    1.0332        .90712E-02** at limit **
   2  Index         2.1420        8.9108        .50000       -.75856E-05
   3  Normalizat    1.3834        .10705E-02    .50242E-01   -.49724E-03
   4  Prefactor     .64745        .12625E-02    .82688E-01   -.30824E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100001
  Index      = 2.14197
  Normalizat = 1.38339
  Prefactor  = 0.647448
 **********
 **   18 **HESSE 
 **********

 FCN=   5332.975     FROM HESSE     STATUS=NOT POSDEF    31 CALLS      281 TOTAL
                     EDM=   .26E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    33.156        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.1420        8.4974        .50000       -.60846    
   3  Normalizat    1.3834        .60144E-02    .22211E-03   -.81110    
   4  Prefactor     .64745        .70770E-02    .36622E-03   -1.0562    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 2.58016e-08
Minuit parameter uncertainties:
  1  0.000378502
  2  91.7229
  3  0.00601442
  4  0.00707697
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/938665': 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) = 5332.97510614
delta logL = 5.42607267562e-07

Extracting fit parameters...

4FGL J1249.8+3707
   Spectrum: PowerLaw
313    Prefactor:  1.000e-04  3.785e-04  1.000e-04  1.000e+04 ( 1.000e-14)
314        Index:  2.142e+00  9.172e+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:  6.474e-01  7.077e-03  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.383e+00  6.014e-03  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/938665/cmap_HighResolution_435024001_435283201_4FGL_J1249.8+3707_daily_bin755.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.76e-03', job_status='DONE', photon_flux_upper_limit='5.11e-08', time_completed='2021-09-06 06:55:26.650054', job_id='938665', GAL2='0.65', fit_tolerance='1e-08', EG2='1.38', EG='1.38', time_epoch_completed='1630936526.65', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.65', dlogl='5.43e-07', ts2='-0.00', photon_index_error='0.00', photon_index='1.78' WHERE bin_id='755' AND source_name='4FGL J1249.8+3707' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep  6 06:55:26 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0281>
Subject: Job 938665: <4FGL_J1249.8+3707_daily_bin755> in cluster <slac> Done

Job <4FGL_J1249.8+3707_daily_bin755> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Mon Sep  6 06:40:27 2021
Job was executed on host(s) <bullet0281>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Sep  6 06:40:29 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:29 2021
Terminated at Mon Sep  6 06:55:27 2021
Results reported at Mon Sep  6 06:55:27 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1249.8+3707_daily_bin755 192.46 37.1306 435024001 435283201 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 :                                   750.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             278.33 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   897 sec.
    Turnaround time :                            900 sec.

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

