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


Performing analysis on: 4FGL_J1249.8+3707_daily_bin924
RA = 192.46, Dec = 37.1306
tmin = 478828801, tmax = 479088001
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='938912', job_status='RUN', time_executed='2021-09-06 06:42:41.606478', time_epoch_executed='1630935761.61' WHERE source_name='4FGL J1249.8+3707' and cadence='daily' and bin_id='924'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/938912

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/938912/ft1_4FGL_J1249.8+3707_daily_bin924.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/938912/ft2_4FGL_J1249.8+3707_daily_bin924.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/938912/ft1_4FGL_J1249.8+3707_daily_bin924.fits outfile=/scratch/kocevski/938912/ft1_filteredMKT_4FGL_J1249.8+3707_daily_bin924.fits ra=192.46 dec=37.1306 rad=12.0 tmin=478828801.0 tmax=479088001.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.45
user 3.24
sys 0.19

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/938912/ft1_filtered_4FGL_J1249.8+3707_daily_bin924.fits" evtable="EVENTS" scfile=/scratch/kocevski/938912/ft2_4FGL_J1249.8+3707_daily_bin924.fits sctable="SC_DATA" outfile=/scratch/kocevski/938912/ltcube_478828801_479088001_4FGL_J1249.8+3707_daily_bin924.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/938912/ft2_4FGL_J1249.8+3707_daily_bin924.fits
.....................!
real 13.10
user 12.73
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/938912/ft1_filtered_4FGL_J1249.8+3707_daily_bin924.fits evtable="EVENTS" scfile=/scratch/kocevski/938912/ft2_4FGL_J1249.8+3707_daily_bin924.fits sctable="SC_DATA" expcube=/scratch/kocevski/938912/ltcube_478828801_479088001_4FGL_J1249.8+3707_daily_bin924.fits outfile=/scratch/kocevski/938912/expmap_478828801_479088001_4FGL_J1249.8+3707_daily_bin924.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/938912/ltcube_478828801_479088001_4FGL_J1249.8+3707_daily_bin924.fits
.....................!
real 190.34
user 185.29
sys 4.75

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/938912/ft1_filtered_4FGL_J1249.8+3707_daily_bin924.fits scfile=/scratch/kocevski/938912/ft2_4FGL_J1249.8+3707_daily_bin924.fits outfile=/scratch/kocevski/938912/cmap_478828801_479088001_4FGL_J1249.8+3707_daily_bin924.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.52
user 0.37
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/938912/ft1_filtered_4FGL_J1249.8+3707_daily_bin924.fits scfile=/scratch/kocevski/938912/ft2_4FGL_J1249.8+3707_daily_bin924.fits outfile=/scratch/kocevski/938912/cmap_HighResolution_478828801_479088001_4FGL_J1249.8+3707_daily_bin924.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.57
user 0.37
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    21.279       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10013E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    19.524       1.0000         .10000E-03   10000.    
     4 'Prefactor '    5.0568       1.0000         .10000E-03   10000.    
     5 'Prefactor '    1.9158       1.0000         .10000E-03   10000.    
     6 'Prefactor '    4.3819       1.0000         .10000E-03   10000.    
     7 'Prefactor '    3.6044       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10000E-03   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 '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    3.9433       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10425E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    25.605       1.0000         .10000E-03   10000.    
    15 'Prefactor '    9.9937       1.0000         .10000E-03   10000.    
    16 'norm      '    .17737E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .94958E-02   1.0000         .10000E-03   10000.    
    18 'norm      '    .16815       1.0000         .10000E-03   10000.    
    19 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10030E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .51714       1.0000         .10000E-03   10000.    
    22 'Prefactor '    42.635       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    52.269       1.0000         .10000E-03   10000.    
    25 'Normalizat'    .62751       1.0000         .10000E-01   10.000    
    26 'Prefactor '    1.1146       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=   5133.864     FROM MIGRAD    STATUS=CONVERGED    633 CALLS     3147 TOTAL
                     EDM=   .48E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     21.280        22.472       -.50213E-07    .15520E-05
   2  Prefactor     .10000E-03    26.504        .17304E-04** at limit **
   3  norm          19.525        5.3198        .17825E-05   -.47361E-04
   4  Prefactor     5.0584        7.7223        .23641E-06   -.27572E-03
   5  Prefactor     1.9156        2.7493       -.15016E-05   -.55365E-03
   6  Prefactor     4.3823        2.6640       -.39873E-06   -.70633E-04
   7  Prefactor     3.6051        7.0889       -.67849E-06   -.19984E-03
   8  Prefactor     .10000E-03    12.047       -.38662E-07** at limit **
   9  Prefactor     .10000E-03    7.0855        .46896E-06** at limit **
  10  Prefactor     .10000E-03    31.212       -.16998E-04** at limit **
  11  Prefactor     .10000E-03    2.4237        .10977E-07** at limit **
  12  norm          3.9433        4.4926        .39291E-06   -.94768E-04
  13  Prefactor     .10000E-03    123.69       -.12287E-04** at limit **
  14  Prefactor     25.584        27.000       -.23979E-05    .84951E-04
  15  Prefactor     9.9901        11.960        .14235E-06    .13001E-04
  16  norm          .10000E-03    3.4396       -.15061E-06** at limit **
  17  norm          .10023E-03    10.642        .20284E-05** at limit **
  18  norm          .17825        1.9929        .18281E-06    .73804E-04
  19  norm          .10000E-03    2.5826        .35390E-07** at limit **
  20  Prefactor     .10000E-03    1.1384        .17591E-08** at limit **
  21  Prefactor     .51704        8.7300       -.28156E-05    .82279E-04
  22  Prefactor     42.642        54.344        .68062E-05    .83653E-04
  23  Prefactor     .10000E-03    21.358       -.42922E-05** at limit **
  24  Prefactor     52.272        78.116        .25495E-05    .11658E-04
  25  Normalizat    .62743        .16660       -.47032E-06    .65942E-04
  26  Prefactor     1.1146        .20719       -.21803E-06    .27885E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 21.28
  Prefactor  = 0.0001
  norm       = 19.525
  Prefactor  = 5.0584
  Prefactor  = 1.91563
  Prefactor  = 4.38228
  Prefactor  = 3.60509
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 3.94332
  Prefactor  = 0.0001
  Prefactor  = 25.5844
  Prefactor  = 9.99014
  norm       = 0.000100001
  norm       = 0.00010023
  norm       = 0.178249
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.517041
  Prefactor  = 42.6422
  Prefactor  = 0.0001
  Prefactor  = 52.2722
  Normalizat = 0.62743
  Prefactor  = 1.11457
 **********
 **   18 **HESSE 
 **********

 FCN=   5133.864     FROM HESSE     STATUS=OK           464 CALLS     3611 TOTAL
                     EDM=   .41E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     21.280        22.472        .86829E-04   -1.4785    
   2  Prefactor     .10000E-03    26.450        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          19.525        5.3340        .74468E-04   -1.4824    
   4  Prefactor     5.0584        7.7086        .17881E-03   -1.5258    
   5  Prefactor     1.9156        2.7380        .12589E-03   -1.5431    
   6  Prefactor     4.3823        2.6577        .85049E-04   -1.5289    
   7  Prefactor     3.6051        7.0815        .21283E-03   -1.5328    
   8  Prefactor     .10000E-03    12.070        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    7.0932        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    31.140        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    2.4440        .10882E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          3.9433        4.4687        .14632E-03   -1.5311    
  13  Prefactor     .10000E-03    124.42        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     25.584        27.196        .79165E-04   -1.4696    
  15  Prefactor     9.9901        11.849        .12675E-03   -1.5076    
  16  norm          .10000E-03    7.2833        .25382E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .10023E-03    63.139        .45075E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          .17825        13.417        .17707E-02   -1.5624    
  19  norm          .10000E-03    2.5900        .11234E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    1.1437        .74487E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .51704        29.038        .38898E-02   -1.5564    
  22  Prefactor     42.642        54.206        .61395E-04   -1.4401    
  23  Prefactor     .10000E-03    21.553        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     52.272        78.437        .55475E-04   -1.4261    
  25  Normalizat    .62743        .19859        .25002E-03   -1.0683    
  26  Prefactor     1.1146        .24741        .24803E-03   -.89002    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.14809e-09
Minuit parameter uncertainties:
  1  22.4811
  2  9.64069e-05
  3  5.33415
  4  7.71012
  5  2.73816
  6  2.65778
  7  7.08315
  8  4.82342e-06
  9  2.8968e-06
  10  2.11103e-05
  11  2.8881e-06
  12  4.46912
  13  5.99339e-05
  14  27.2095
  15  11.8514
  16  0.000142314
  17  0.0076222
  18  3.09284
  19  8.68743e-06
  20  1.30885e-06
  21  7.75269
  22  54.2684
  23  5.10473e-05
  24  78.5928
  25  0.198815
  26  0.247664
Done.

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

Extracting fit parameters...

4FGL J1249.8+3707
   Spectrum: PowerLaw
313    Prefactor:  1.000e-04  2.897e-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.115e+00  2.477e-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:  6.274e-01  1.988e-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.18e-08 ph cm-2 s-1
Energy Flux Upper Limit: 2.34e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/938912/likelihoodResults_478828801_479088001_4FGL_J1249.8+3707_daily_bin924.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) = 5133.86448858
delta logL = -0.000667466384584

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5133.86382137
delta logL = -2.63678884949e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10326E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    1.7638       1.0000          .0000       10.000    
     3 'Normalizat'    .62752       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1145       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=   5133.864     FROM MIGRAD    STATUS=CONVERGED     52 CALLS      205 TOTAL
                     EDM=   .24E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    53.854        .90712E-02** at limit **
   2  Index         1.7480        7.3693        .50000        .16005E-04
   3  Normalizat    .62743        .10580E-01    .41314E-01    .21322E-04
   4  Prefactor     1.1146        .13730E-01    .56094E-01    .57350E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 1.74797
  Normalizat = 0.62743
  Prefactor  = 1.11457
 **********
 **   18 **HESSE 
 **********

 FCN=   5133.864     FROM HESSE     STATUS=OK            33 CALLS      238 TOTAL
                     EDM=   .35E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    11.099        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         1.7480        5.6978        .50000       -.70812    
   3  Normalizat    .62743        .18746        .25002E-03   -1.0683    
   4  Prefactor     1.1146        .24329        .24803E-03   -.89002    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.46389e-10
Minuit parameter uncertainties:
  1  3.24879e-05
  2  4.71063
  3  0.187653
  4  0.243531
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/938912': 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): 0
logL (Free Index) = 5133.86382097
delta logL = 1.39760231832e-07

Extracting fit parameters...

4FGL J1249.8+3707
   Spectrum: PowerLaw
313    Prefactor:  1.000e-04  3.249e-05  1.000e-04  1.000e+04 ( 1.000e-14)
314        Index:  1.748e+00  4.711e+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:  1.115e+00  2.435e-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:  6.274e-01  1.877e-01  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/938912/cmap_HighResolution_478828801_479088001_4FGL_J1249.8+3707_daily_bin924.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.34e-03', job_status='DONE', photon_flux_upper_limit='3.18e-08', time_completed='2021-09-06 06:54:23.416408', job_id='938912', GAL2='1.11', fit_tolerance='1e-08', EG2='0.63', EG='0.63', time_epoch_completed='1630936463.42', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.11', dlogl='1.40e-07', ts2='-0.00', photon_index_error='0.00', photon_index='1.78' WHERE bin_id='924' AND source_name='4FGL J1249.8+3707' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep  6 06:54:23 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0243>
Subject: Job 938912: <4FGL_J1249.8+3707_daily_bin924> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1249.8+3707_daily_bin924 192.46 37.1306 478828801 479088001 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 :                                   698.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             302.89 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   819 sec.
    Turnaround time :                            822 sec.

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

