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


Performing analysis on: 4FGL_J1249.8+3707_daily_bin1323
RA = 192.46, Dec = 37.1306
tmin = 582249601, tmax = 582508801
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='940756', job_status='RUN', time_executed='2021-09-06 06:46:11.557346', time_epoch_executed='1630935971.56' WHERE source_name='4FGL J1249.8+3707' and cadence='daily' and bin_id='1323'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/940756

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/940756/ft1_4FGL_J1249.8+3707_daily_bin1323.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/940756/ft2_4FGL_J1249.8+3707_daily_bin1323.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/940756/ft1_4FGL_J1249.8+3707_daily_bin1323.fits outfile=/scratch/kocevski/940756/ft1_filteredMKT_4FGL_J1249.8+3707_daily_bin1323.fits ra=192.46 dec=37.1306 rad=12.0 tmin=582249601.0 tmax=582508801.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.41
user 5.09
sys 0.22

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/940756/ft1_filtered_4FGL_J1249.8+3707_daily_bin1323.fits evtable="EVENTS" scfile=/scratch/kocevski/940756/ft2_4FGL_J1249.8+3707_daily_bin1323.fits sctable="SC_DATA" expcube=/scratch/kocevski/940756/ltcube_582249601_582508801_4FGL_J1249.8+3707_daily_bin1323.fits outfile=/scratch/kocevski/940756/expmap_582249601_582508801_4FGL_J1249.8+3707_daily_bin1323.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/940756/ltcube_582249601_582508801_4FGL_J1249.8+3707_daily_bin1323.fits
.....................!
real 191.53
user 185.79
sys 4.59

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/940756/ft1_filtered_4FGL_J1249.8+3707_daily_bin1323.fits scfile=/scratch/kocevski/940756/ft2_4FGL_J1249.8+3707_daily_bin1323.fits outfile=/scratch/kocevski/940756/cmap_582249601_582508801_4FGL_J1249.8+3707_daily_bin1323.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.55
user 0.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/940756/ft1_filtered_4FGL_J1249.8+3707_daily_bin1323.fits scfile=/scratch/kocevski/940756/ft2_4FGL_J1249.8+3707_daily_bin1323.fits outfile=/scratch/kocevski/940756/cmap_HighResolution_582249601_582508801_4FGL_J1249.8+3707_daily_bin1323.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=500 nypix=500 binsz=0.1 coordsys="CEL" xref=192.46 yref=37.1306 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

This is gtbin version HEAD
real 0.54
user 0.38
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

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 '    .10066E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    2.7964       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    1.8066       1.0000         .10000E-03   10000.    
     6 'Prefactor '    7.8442       1.0000         .10000E-03   10000.    
     7 'Prefactor '    4.2536       1.0000         .10000E-03   10000.    
     8 'Prefactor '    25.803       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    163.38       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10018E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10302E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    19.658       1.0000         .10000E-03   10000.    
    17 'norm      '    .78071       1.0000         .10000E-03   10000.    
    18 'norm      '    33.886       1.0000         .10000E-03   10000.    
    19 'norm      '    .67212E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    7.9608       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .12799E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    25 'Normalizat'    1.0259       1.0000         .10000E-01   10.000    
    26 'Prefactor '    1.3218       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=   6099.145     FROM MIGRAD    STATUS=CONVERGED    605 CALLS     3062 TOTAL
                     EDM=   .16E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  9.8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    28.687        .49514E-06** at limit **
   2  Prefactor     .10001E-03    56.200       -.25728E-05** at limit **
   3  norm          2.7965        3.1605        .55292E-07    .18183E-03
   4  Prefactor     .10000E-03    2.8960       -.16381E-08** at limit **
   5  Prefactor     1.8067        1.8357        .42810E-07    .14122E-03
   6  Prefactor     7.8446        3.7211        .82397E-07    .76875E-04
   7  Prefactor     4.2548        11.013       -.13786E-05    .27393E-03
   8  Prefactor     25.812        28.205       -.15633E-06   -.72297E-04
   9  Prefactor     .10000E-03    8.2716       -.31444E-09** at limit **
  10  Prefactor     .10000E-03    31.836        .20246E-06** at limit **
  11  Prefactor     .10000E-03    2.5512        .89354E-09** at limit **
  12  norm          .10000E-03    5.0153       -.14558E-06** at limit **
  13  Prefactor     163.30        99.136       -.12855E-05    .46060E-03
  14  Prefactor     .10000E-03    23.634       -.65545E-06** at limit **
  15  Prefactor     .10000E-03    24.175       -.20149E-06** at limit **
  16  norm          19.659        8.8959        .87744E-07    .32106E-03
  17  norm          .69176        167.91        .25630E-04   -.56237E-04
  18  norm          33.873        8.0776        .87786E-06    .16351E-02
  19  norm          .10000E-03    10.396        .12738E-05** at limit **
  20  Prefactor     7.9604        5.3528        .17334E-06    .66360E-03
  21  Prefactor     .10000E-03    25.578        .26981E-07** at limit **
  22  Prefactor     .10000E-03    64.126       -.11173E-05** at limit **
  23  Prefactor     .10001E-03    76.300        .31469E-05** at limit **
  24  Prefactor     .10000E-03    28.714        .50465E-06** at limit **
  25  Normalizat    1.0256        .21310        .94665E-06    .16919E-03
  26  Prefactor     1.3220        .25610       -.19010E-05   -.49007E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.000100007
  norm       = 2.79649
  Prefactor  = 0.0001
  Prefactor  = 1.80668
  Prefactor  = 7.8446
  Prefactor  = 4.25482
  Prefactor  = 25.8115
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 163.297
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 19.6587
  norm       = 0.691758
  norm       = 33.8727
  norm       = 0.000100003
  Prefactor  = 7.96038
  Prefactor  = 0.0001
  Prefactor  = 0.000100002
  Prefactor  = 0.000100015
  Prefactor  = 0.0001
  Normalizat = 1.02562
  Prefactor  = 1.32199
 **********
 **   18 **HESSE 
 **********

 FCN=   6099.145     FROM HESSE     STATUS=OK           452 CALLS     3514 TOTAL
                     EDM=   .33E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    28.737        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10001E-03    57.085        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          2.7965        3.1500        .13753E-03   -1.5373    
   4  Prefactor     .10000E-03    2.8995        .12979E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     1.8067        1.8481        .10074E-03   -1.5439    
   6  Prefactor     7.8446        3.7190        .97422E-04   -1.5148    
   7  Prefactor     4.2548        11.107        .97681E-03   -1.5295    
   8  Prefactor     25.812        28.269        .78862E-04   -1.4691    
   9  Prefactor     .10000E-03    8.2779        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    31.850        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    2.5553        .12181E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          .10000E-03    5.1168        .17083E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     163.30        106.14        .15776E-03   -1.3145    
  14  Prefactor     .10000E-03    23.720        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    24.475        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          19.659        8.8910        .90336E-04   -1.4821    
  17  norm          .69176        195.39        .59818E-02   -1.5542    
  18  norm          33.873        8.3149        .68839E-04   -1.4543    
  19  norm          .10000E-03    58.982        .38636E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     7.9604        5.3582        .13783E-03   -1.5144    
  21  Prefactor     .10000E-03    25.762        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    64.360        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10001E-03    78.783        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10000E-03    28.755        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Normalizat    1.0256        .25501        .29371E-03   -.92177    
  26  Prefactor     1.3220        .30593        .31847E-03   -.82655    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.34391e-08
Minuit parameter uncertainties:
  1  0.000235416
  2  0.00126865
  3  3.15018
  4  6.53726e-06
  5  1.84811
  6  3.71915
  7  11.1119
  8  28.2833
  9  5.41924e-06
  10  0.000125084
  11  2.28801e-06
  12  7.12718e-06
  13  106.266
  14  0.000202725
  15  7.37347e-05
  16  8.89163
  17  23.3272
  18  8.31521
  19  0.000831112
  20  5.35852
  21  4.32554e-05
  22  0.000800456
  23  0.00214988
  24  0.000231315
  25  0.255317
  26  0.306346
Done.

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

Extracting fit parameters...

4FGL J1249.8+3707
   Spectrum: PowerLaw
313    Prefactor:  1.000e-04  5.419e-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:  1.322e+00  3.063e-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.026e+00  2.553e-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.84e-08 ph cm-2 s-1
Energy Flux Upper Limit: 2.82e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/940756/likelihoodResults_582249601_582508801_4FGL_J1249.8+3707_daily_bin1323.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) = 6099.14582496
delta logL = -0.000568947498323

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6099.14525609
delta logL = -7.50578692532e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10344E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    1.7554       1.0000          .0000       10.000    
     3 'Normalizat'    1.0256       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.3221       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=   6099.145     FROM MIGRAD    STATUS=CONVERGED     90 CALLS      248 TOTAL
                     EDM=   .26E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10078E-03    52.230        .18142E-02** at limit **
   2  Index         1.7134        7.8689        .50000        .18844E-04
   3  Normalizat    1.0256        .12712E-01    .29370E-03    .29418E-05
   4  Prefactor     1.3220        .15468E-01    .31847E-03    .23453E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100785
  Index      = 1.71337
  Normalizat = 1.02561
  Prefactor  = 1.322
 **********
 **   18 **HESSE 
 **********

 FCN=   6099.145     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      277 TOTAL
                     EDM=   .12E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10078E-03    237.54        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         1.7134        7.4271        .50000       -.71727    
   3  Normalizat    1.0256        .27832E-01    .11748E-04   -.92177    
   4  Prefactor     1.3220        .33863E-01    .12739E-04   -.82655    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.23352e-08
Minuit parameter uncertainties:
  1  0.0274145
  2  327.549
  3  0.0278325
  4  0.0338636
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/940756': 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) = 6099.14525569
delta logL = 3.22807863995e-07

Extracting fit parameters...

4FGL J1249.8+3707
   Spectrum: PowerLaw
313    Prefactor:  1.008e-04  2.741e-02  1.000e-04  1.000e+04 ( 1.000e-14)
314        Index:  1.713e+00  3.275e+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:  1.322e+00  3.386e-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.026e+00  2.783e-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/940756/cmap_HighResolution_582249601_582508801_4FGL_J1249.8+3707_daily_bin1323.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.82e-03', job_status='DONE', photon_flux_upper_limit='3.84e-08', time_completed='2021-09-06 06:58:39.637555', job_id='940756', GAL2='1.32', fit_tolerance='1e-08', EG2='1.03', EG='1.03', time_epoch_completed='1630936719.64', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.32', dlogl='3.23e-07', ts2='-0.00', photon_index_error='0.00', photon_index='1.78' WHERE bin_id='1323' AND source_name='4FGL J1249.8+3707' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep  6 06:58:39 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0137>
Subject: Job 940756: <4FGL_J1249.8+3707_daily_bin1323> in cluster <slac> Done

Job <4FGL_J1249.8+3707_daily_bin1323> was submitted from host <rhel6-64c> by user <kocevski> in cluster <slac> at Mon Sep  6 06:45:57 2021
Job was executed on host(s) <bullet0137>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Sep  6 06:45:59 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:45:59 2021
Terminated at Mon Sep  6 06:58:40 2021
Results reported at Mon Sep  6 06:58:40 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1249.8+3707_daily_bin1323 192.46 37.1306 582249601 582508801 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 :                                   739.18 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             313.84 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   760 sec.
    Turnaround time :                            763 sec.

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

