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


Performing analysis on: 4FGL_J1249.8+3707_daily_bin801
RA = 192.46, Dec = 37.1306
tmin = 446947201, tmax = 447206401
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='938730', job_status='RUN', time_executed='2021-09-06 06:43:07.167718', time_epoch_executed='1630935787.17' WHERE source_name='4FGL J1249.8+3707' and cadence='daily' and bin_id='801'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/938730

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/938730/ft1_4FGL_J1249.8+3707_daily_bin801.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/938730/ft2_4FGL_J1249.8+3707_daily_bin801.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/938730/ft1_4FGL_J1249.8+3707_daily_bin801.fits outfile=/scratch/kocevski/938730/ft1_filteredMKT_4FGL_J1249.8+3707_daily_bin801.fits ra=192.46 dec=37.1306 rad=12.0 tmin=446947201.0 tmax=447206401.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 3.38
user 3.19
sys 0.17

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/938730/ft1_filtered_4FGL_J1249.8+3707_daily_bin801.fits evtable="EVENTS" scfile=/scratch/kocevski/938730/ft2_4FGL_J1249.8+3707_daily_bin801.fits sctable="SC_DATA" expcube=/scratch/kocevski/938730/ltcube_446947201_447206401_4FGL_J1249.8+3707_daily_bin801.fits outfile=/scratch/kocevski/938730/expmap_446947201_447206401_4FGL_J1249.8+3707_daily_bin801.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/938730/ltcube_446947201_447206401_4FGL_J1249.8+3707_daily_bin801.fits
.....................!
real 191.81
user 187.21
sys 4.27

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/938730/ft1_filtered_4FGL_J1249.8+3707_daily_bin801.fits scfile=/scratch/kocevski/938730/ft2_4FGL_J1249.8+3707_daily_bin801.fits outfile=/scratch/kocevski/938730/cmap_446947201_447206401_4FGL_J1249.8+3707_daily_bin801.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.68
user 0.38
sys 0.15

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

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    36.807       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10025E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    2.8888       1.0000         .10000E-03   10000.    
     4 'Prefactor '    1.2110       1.0000         .10000E-03   10000.    
     5 'Prefactor '    2.9960       1.0000         .10000E-03   10000.    
     6 'Prefactor '    2.8096       1.0000         .10000E-03   10000.    
     7 'Prefactor '    33.470       1.0000         .10000E-03   10000.    
     8 'Prefactor '    42.216       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10039E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    7.7931       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    14.707       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10828E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10570E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10050E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    4.6511       1.0000         .10000E-03   10000.    
    17 'norm      '    6.9433       1.0000         .10000E-03   10000.    
    18 'norm      '    6.0770       1.0000         .10000E-03   10000.    
    19 'norm      '    .11960E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    2.7584       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10040E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    84.233       1.0000         .10000E-03   10000.    
    23 'Prefactor '    12.729       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .12650E-01   1.0000         .10000E-03   10000.    
    25 'Normalizat'    1.0578       1.0000         .10000E-01   10.000    
    26 'Prefactor '    .82556       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=   5527.167     FROM MIGRAD    STATUS=CONVERGED    635 CALLS     3134 TOTAL
                     EDM=   .11E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     36.773        34.448        .29420E-04    .14935E-04
   2  Prefactor     .10000E-03    14.831        .13100E-05** at limit **
   3  norm          2.8884        2.4921        .63840E-07    .10404E-04
   4  Prefactor     1.2086        4.6714       -.14607E-05   -.86397E-03
   5  Prefactor     2.9962        2.2960        .32939E-07   -.61661E-04
   6  Prefactor     2.8093        2.3063        .67055E-07   -.19429E-03
   7  Prefactor     33.475        16.446       -.31062E-06   -.58541E-05
   8  Prefactor     42.208        21.861        .74830E-05    .37539E-05
   9  Prefactor     .10000E-03    27.891       -.24596E-05** at limit **
  10  Prefactor     7.8169        67.410       -.10808E-04   -.20686E-05
  11  Prefactor     .10000E-03    2.6701        .62329E-07** at limit **
  12  norm          14.706        6.6404       -.34060E-05   -.63578E-04
  13  Prefactor     .10000E-03    44.625       -.10421E-05** at limit **
  14  Prefactor     .10000E-03    23.749        .49430E-05** at limit **
  15  Prefactor     .10000E-03    17.708       -.27660E-05** at limit **
  16  norm          4.6501        4.5903        .40936E-06    .73218E-04
  17  norm          6.9440        9.9681        .75305E-07   -.10101E-04
  18  norm          6.0669        4.7501        .21833E-05   -.52499E-04
  19  norm          .10000E-03    9.2605       -.85699E-06** at limit **
  20  Prefactor     2.7602        4.6952       -.25094E-05   -.64265E-03
  21  Prefactor     .10000E-03    6.3576       -.86867E-07** at limit **
  22  Prefactor     84.252        82.663        .12606E-04    .42511E-04
  23  Prefactor     12.731        19.378       -.18397E-05   -.98732E-05
  24  Prefactor     .10001E-03    520.74       -.87764E-04** at limit **
  25  Normalizat    1.0576        .17637       -.58157E-06    .29783E-03
  26  Prefactor     .82585        .22005       -.36161E-06    .12629E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 36.7734
  Prefactor  = 0.0001
  norm       = 2.88838
  Prefactor  = 1.20855
  Prefactor  = 2.99622
  Prefactor  = 2.80933
  Prefactor  = 33.4745
  Prefactor  = 42.2078
  Prefactor  = 0.0001
  Prefactor  = 7.81688
  Prefactor  = 0.0001
  norm       = 14.7064
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 4.65013
  norm       = 6.944
  norm       = 6.0669
  norm       = 0.000100001
  Prefactor  = 2.7602
  Prefactor  = 0.0001
  Prefactor  = 84.2525
  Prefactor  = 12.7307
  Prefactor  = 0.000100009
  Normalizat = 1.05764
  Prefactor  = 0.825847
 **********
 **   18 **HESSE 
 **********

 FCN=   5527.167     FROM HESSE     STATUS=OK           460 CALLS     3594 TOTAL
                     EDM=   .22E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     36.773        34.313        .33030E-03   -1.4494    
   2  Prefactor     .10000E-03    14.864        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          2.8884        2.4953        .10178E-03   -1.5368    
   4  Prefactor     1.2086        4.6384        .30638E-03   -1.5488    
   5  Prefactor     2.9962        2.2930        .91917E-04   -1.5362    
   6  Prefactor     2.8093        2.2945        .96293E-04   -1.5373    
   7  Prefactor     33.475        16.424        .69264E-04   -1.4550    
   8  Prefactor     42.208        21.835        .61698E-04   -1.4408    
   9  Prefactor     .10000E-03    28.783        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     7.8169        67.333        .14364E-03   -1.5149    
  11  Prefactor     .10000E-03    2.6853        .11862E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          14.706        6.6343        .10444E-03   -1.4941    
  13  Prefactor     .10000E-03    44.720        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    23.853        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    18.094        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          4.6501        4.5775        .15064E-03   -1.5277    
  17  norm          6.9440        9.9639        .15225E-03   -1.5181    
  18  norm          6.0669        4.6784        .12797E-03   -1.5215    
  19  norm          .10000E-03    9.4230        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     2.7602        4.6289        .16669E-03   -1.5376    
  21  Prefactor     .10000E-03    6.3679        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     84.252        82.071        .43769E-04   -1.3870    
  23  Prefactor     12.731        19.376        .11227E-03   -1.4994    
  24  Prefactor     .10001E-03    529.35        .18172E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Normalizat    1.0576        .20504        .22612E-03   -.91124    
  26  Prefactor     .82585        .25492        .31768E-03   -.98783    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.18672e-09
Minuit parameter uncertainties:
  1  34.3315
  2  7.0218e-06
  3  2.49535
  4  4.6398
  5  2.29306
  6  2.29459
  7  16.4258
  8  21.8394
  9  0.000109157
  10  45.9535
  11  9.33869e-06
  12  6.63466
  13  2.34455e-05
  14  0.000213642
  15  7.34327e-05
  16  4.57787
  17  9.96626
  18  4.67871
  19  0.000212435
  20  4.62951
  21  6.20546e-06
  22  82.1815
  23  19.3855
  24  0.0043598
  25  0.205198
  26  0.255281
Done.

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

Extracting fit parameters...

4FGL J1249.8+3707
   Spectrum: PowerLaw
313    Prefactor:  1.000e-04  1.092e-04  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.258e-01  2.553e-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.058e+00  2.052e-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.73e-08 ph cm-2 s-1
Energy Flux Upper Limit: 2.75e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/938730/likelihoodResults_446947201_447206401_4FGL_J1249.8+3707_daily_bin801.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) = 5527.16678023
delta logL = -0.000165734151778

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5527.16661469
delta logL = -1.89853381016e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .12419E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    1.9015       1.0000          .0000       10.000    
     3 'Normalizat'    1.0576       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .82584       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=   5527.167     FROM MIGRAD    STATUS=CONVERGED     59 CALLS      246 TOTAL
                     EDM=   .24E-10    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    .50933E-01    .90712E-01** at limit **
   2  Index         1.9192        5.7513        .50000       -.37062E-05
   3  Normalizat    1.0576        .34166E-03    .40072E-01    .15572E-04
   4  Prefactor     .82585        .43167E-03    .71793E-01    .23957E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 1.9192
  Normalizat = 1.05764
  Prefactor  = 0.825848
 **********
 **   18 **HESSE 
 **********

 FCN=   5527.167     FROM HESSE     STATUS=NOT POSDEF    35 CALLS      281 TOTAL
                     EDM=   .15E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    12.438        .40859E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         1.9192        9.0226        .50000       -.66386    
   3  Normalizat    1.0576        .26467E-02    .22612E-03   -.91124    
   4  Prefactor     .82585        .33391E-02    .31768E-03   -.98782    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.4559e-09
Minuit parameter uncertainties:
  1  2.00446e-05
  2  40.2174
  3  0.00264673
  4  0.0033391
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/938730': 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) = 5527.16661429
delta logL = 2.03759555006e-07

Extracting fit parameters...

4FGL J1249.8+3707
   Spectrum: PowerLaw
313    Prefactor:  1.000e-04  2.004e-05  1.000e-04  1.000e+04 ( 1.000e-14)
314        Index:  1.919e+00  4.022e+01  0.000e+00  1.000e+01 (-1.000e+00)
315        Scale:  4.011e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
625    Prefactor:  8.258e-01  3.339e-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.058e+00  2.647e-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/938730/cmap_HighResolution_446947201_447206401_4FGL_J1249.8+3707_daily_bin801.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.75e-03', job_status='DONE', photon_flux_upper_limit='3.73e-08', time_completed='2021-09-06 06:55:23.581684', job_id='938730', GAL2='0.83', fit_tolerance='1e-08', EG2='1.06', EG='1.06', time_epoch_completed='1630936523.58', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.83', dlogl='2.04e-07', ts2='-0.00', photon_index_error='0.00', photon_index='1.78' WHERE bin_id='801' AND source_name='4FGL J1249.8+3707' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep  6 06:55:23 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0067>
Subject: Job 938730: <4FGL_J1249.8+3707_daily_bin801> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1249.8+3707_daily_bin801 192.46 37.1306 446947201 447206401 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 :                                   734.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             304.30 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   890 sec.
    Turnaround time :                            893 sec.

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

