/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 172 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 = 7450
number of fields = 27
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J1249.8+3707_daily_bin345
RA = 192.46, Dec = 37.1306
tmin = 328752001, tmax = 329011201
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='935822', job_status='RUN', time_executed='2021-09-06 06:33:56.452956', time_epoch_executed='1630935236.45' WHERE source_name='4FGL J1249.8+3707' and cadence='daily' and bin_id='345'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/935822

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/935822/ft1_4FGL_J1249.8+3707_daily_bin345.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/935822/ft2_4FGL_J1249.8+3707_daily_bin345.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/935822/ft1_4FGL_J1249.8+3707_daily_bin345.fits outfile=/scratch/kocevski/935822/ft1_filteredMKT_4FGL_J1249.8+3707_daily_bin345.fits ra=192.46 dec=37.1306 rad=12.0 tmin=328752001.0 tmax=329011201.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.54
user 3.24
sys 0.20

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/935822/ft1_filtered_4FGL_J1249.8+3707_daily_bin345.fits evtable="EVENTS" scfile=/scratch/kocevski/935822/ft2_4FGL_J1249.8+3707_daily_bin345.fits sctable="SC_DATA" expcube=/scratch/kocevski/935822/ltcube_328752001_329011201_4FGL_J1249.8+3707_daily_bin345.fits outfile=/scratch/kocevski/935822/expmap_328752001_329011201_4FGL_J1249.8+3707_daily_bin345.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/935822/ltcube_328752001_329011201_4FGL_J1249.8+3707_daily_bin345.fits
.....................!
real 191.65
user 185.97
sys 5.07

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/935822/ft1_filtered_4FGL_J1249.8+3707_daily_bin345.fits scfile=/scratch/kocevski/935822/ft2_4FGL_J1249.8+3707_daily_bin345.fits outfile=/scratch/kocevski/935822/cmap_328752001_329011201_4FGL_J1249.8+3707_daily_bin345.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/935822/ft1_filtered_4FGL_J1249.8+3707_daily_bin345.fits scfile=/scratch/kocevski/935822/ft2_4FGL_J1249.8+3707_daily_bin345.fits outfile=/scratch/kocevski/935822/cmap_HighResolution_328752001_329011201_4FGL_J1249.8+3707_daily_bin345.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.37
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10013E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    1.6820       1.0000         .10000E-03   10000.    
     4 'Prefactor '    3.5875       1.0000         .10000E-03   10000.    
     5 'Prefactor '    1.9267       1.0000         .10000E-03   10000.    
     6 'Prefactor '    4.6660       1.0000         .10000E-03   10000.    
     7 'Prefactor '    16.063       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10300E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    36.362       1.0000         .10000E-03   10000.    
    10 'Prefactor '    53.194       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .43966       1.0000         .10000E-03   10000.    
    12 'norm      '    .16513       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    6.5869       1.0000         .10000E-03   10000.    
    17 'norm      '    9.7528       1.0000         .10000E-03   10000.    
    18 'norm      '    .10008E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    3.9514       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10020E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .89766       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    62.091       1.0000         .10000E-03   10000.    
    25 'Normalizat'    1.2021       1.0000         .10000E-01   10.000    
    26 'Prefactor '    .69598       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=   5765.353     FROM MIGRAD    STATUS=CONVERGED    598 CALLS     3052 TOTAL
                     EDM=   .66E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    13.723       -.93179E-05** at limit **
   2  Prefactor     .10000E-03    16.004        .80608E-05** at limit **
   3  norm          1.6820        1.9692       -.12062E-06   -.27841E-03
   4  Prefactor     3.5879        4.2764        .83752E-07   -.33785E-04
   5  Prefactor     1.9267        1.8246       -.45658E-07   -.26979E-04
   6  Prefactor     4.6663        2.4362       -.39482E-07   -.26100E-04
   7  Prefactor     16.064        10.512        .12295E-06    .15075E-04
   8  Prefactor     .10000E-03    25.165       -.52120E-05** at limit **
   9  Prefactor     36.350        30.304       -.11965E-04   -.17197E-03
  10  Prefactor     53.193        49.520       -.11443E-05    .26617E-04
  11  Prefactor     .42812        4.7948        .24588E-05   -.74080E-03
  12  norm          .16892        2.6260       -.88162E-06   -.19950E-03
  13  Prefactor     .10000E-03    14.370       -.42977E-05** at limit **
  14  Prefactor     .10000E-03    8.1943        .16753E-05** at limit **
  15  Prefactor     .10000E-03    3.7125       -.47386E-06** at limit **
  16  norm          6.5859        4.2818       -.80668E-07    .40230E-04
  17  norm          9.7538        13.989        .90427E-06   -.30928E-04
  18  norm          .10000E-03    3.3446        .72794E-06** at limit **
  19  norm          3.9536        4.1314       -.14376E-05    .53071E-04
  20  Prefactor     .10000E-03    2.7280        .14922E-06** at limit **
  21  Prefactor     .95230        12.063       -.31030E-05    .15486E-03
  22  Prefactor     .10000E-03    16.005        .79185E-05** at limit **
  23  Prefactor     .10000E-03    6.5701       -.89847E-06** at limit **
  24  Prefactor     62.098        62.369        .90285E-05    .12212E-04
  25  Normalizat    1.2018        .16894        .11951E-06    .17279E-03
  26  Prefactor     .69625        .20506        .15866E-05    .39184E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 1.68199
  Prefactor  = 3.58792
  Prefactor  = 1.92673
  Prefactor  = 4.6663
  Prefactor  = 16.0638
  Prefactor  = 0.0001
  Prefactor  = 36.3501
  Prefactor  = 53.1927
  Prefactor  = 0.428119
  norm       = 0.168916
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 6.58591
  norm       = 9.75384
  norm       = 0.000100001
  norm       = 3.9536
  Prefactor  = 0.0001
  Prefactor  = 0.952304
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 62.0983
  Normalizat = 1.20175
  Prefactor  = 0.696249
 **********
 **   18 **HESSE 
 **********

 FCN=   5765.353     FROM HESSE     STATUS=OK           458 CALLS     3510 TOTAL
                     EDM=   .46E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    13.705        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    16.025        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          1.6820        1.9559        .10795E-03   -1.5449    
   4  Prefactor     3.5879        4.2738        .16675E-03   -1.5329    
   5  Prefactor     1.9267        1.8295        .93372E-04   -1.5430    
   6  Prefactor     4.6663        2.4331        .81525E-04   -1.5276    
   7  Prefactor     16.064        10.508        .99934E-04   -1.4906    
   8  Prefactor     .10000E-03    25.432        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     36.350        30.108        .66461E-04   -1.4501    
  10  Prefactor     53.193        49.501        .54993E-04   -1.4248    
  11  Prefactor     .42812        11.296        .29887E-02   -1.5577    
  12  norm          .16892        8.0849        .23624E-02   -1.5626    
  13  Prefactor     .10000E-03    14.372        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    8.2092        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    3.7136        .14285E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          6.5859        4.2744        .12256E-03   -1.5195    
  17  norm          9.7538        13.982        .12832E-03   -1.5083    
  18  norm          .10000E-03    3.4492        .26884E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          3.9536        4.0981        .15156E-03   -1.5310    
  20  Prefactor     .10000E-03    2.7945        .24228E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .95230        45.154        .48384E-02   -1.5513    
  22  Prefactor     .10000E-03    15.992        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    6.5773        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     62.098        62.370        .50923E-04   -1.4130    
  25  Normalizat    1.2018        .19154        .20800E-03   -.86549    
  26  Prefactor     .69625        .23280        .32675E-03   -1.0367    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.64362e-08
Minuit parameter uncertainties:
  1  1.8576e-06
  2  2.03291e-05
  3  1.95593
  4  4.27414
  5  1.8296
  6  2.43319
  7  10.5094
  8  1.23855e-06
  9  30.1211
  10  49.5393
  11  4.39859
  12  2.33688
  13  5.8998e-06
  14  2.51106e-05
  15  7.14568e-06
  16  4.27464
  17  13.9863
  18  8.41976e-05
  19  4.09843
  20  3.69983e-05
  21  13.1248
  22  3.50847e-06
  23  2.85571e-06
  24  62.4359
  25  0.191655
  26  0.233123
Done.

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

Extracting fit parameters...

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

GAL_V02
   Spectrum: PowerLaw
625    Prefactor:  6.962e-01  2.331e-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.202e+00  1.917e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 2.35
Ra Dec: 192.460 37.131
Photon Index (Fixed Index): 1.78 +/- 0.00
Photon Flux (Fixed Index): 3.31e-08 +/- 2.75e-08
Energy Flux (Fixed Index): 4.21e-05 +/- 3.49e-05

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

Saving results to:
/scratch/kocevski/935822/likelihoodResults_328752001_329011201_4FGL_J1249.8+3707_daily_bin345.txt

Performing a free index iterative likelihood fit...

Freezing all point sources, except source of interest...

Done.

Freeing candidate source...
Done.

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5764.75054719
delta logL = 0.602223937244

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5764.74288476
delta logL = 0.609886360772

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    14.260       1.0000         .10000E-03   10000.    
     2 'Index     '    2.3210       1.0000          .0000       10.000    
     3 'Normalizat'    1.1735       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .71555       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=   5764.743     FROM MIGRAD    STATUS=CONVERGED     92 CALLS      310 TOTAL
                     EDM=   .14E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     14.268        30.122        .10607E-03    .34084E-03
   2  Index         2.3208        .76144        .32570E-02    .17788E-03
   3  Normalizat    1.1728        .19159        .21001E-03   -.77553E-03
   4  Prefactor     .71652        .23463        .32232E-03   -.16853E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 14.2678
  Index      = 2.32081
  Normalizat = 1.17279
  Prefactor  = 0.716517
 **********
 **   18 **HESSE 
 **********

 FCN=   5764.743     FROM HESSE     STATUS=OK            25 CALLS      335 TOTAL
                     EDM=   .13E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     14.268        21.620        .42427E-05   -1.4952    
   2  Index         2.3208        .54746        .13028E-03   -.56550    
   3  Normalizat    1.1728        .19016        .42002E-04   -.87448    
   4  Prefactor     .71652        .23287        .12893E-04   -1.0288    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.28324e-09
Minuit parameter uncertainties:
  1  21.6319
  2  0.549002
  3  0.19027
  4  0.23319
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/935822': 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) = 5764.74287575
delta logL = 0.609895375096

Extracting fit parameters...

4FGL J1249.8+3707
   Spectrum: PowerLaw
313    Prefactor:  1.427e+01  2.163e+01  1.000e-04  1.000e+04 ( 1.000e-14)
314        Index:  2.321e+00  5.490e-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:  7.165e-01  2.332e-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.173e+00  1.903e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 3.55
Ra Dec: 192.460 37.131
Photon Index (Free Index): 2.32 +/- 0.55
Photon Flux (Free Index): 5.68e-08 +/- 3.81e-08
Energy Flux (Free Index): 2.08e-05 +/- 1.81e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/935822/cmap_HighResolution_328752001_329011201_4FGL_J1249.8+3707_daily_bin345.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.47e-03', comment='SUCCESS', photon_flux='3.31e-08', energy_flux2='2.08e-05', photon_flux_error='2.75e-08', dlogl='6.10e-01', energy_flux='4.21e-05', photon_flux2='5.68e-08', job_status='DONE', time_completed='2021-09-06 06:46:11.155555', photon_index_error2='0.55', photon_index2='2.32', ts='2.35', fit_tolerance='1e-08', GAL='0.70', photon_index_error='0.00', photon_flux_upper_limit='8.80e-08', energy_flux_error2='1.81e-05', EG='1.20', time_epoch_completed='1630935971.16', return_code='0', job_id='935822', GAL2='0.72', EG2='1.17', return_code2='0', energy_flux_error='3.49e-05', photon_flux_error2='3.81e-08', ts2='3.55', photon_index='1.78' WHERE bin_id='345' AND source_name='4FGL J1249.8+3707' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep  6 06:46:11 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0050>
Subject: Job 935822: <4FGL_J1249.8+3707_daily_bin345> in cluster <slac> Done

Job <4FGL_J1249.8+3707_daily_bin345> was submitted from host <rhel6-64h> by user <kocevski> in cluster <slac> at Mon Sep  6 06:30:55 2021
Job was executed on host(s) <bullet0050>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Sep  6 06:30:56 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:30:56 2021
Terminated at Mon Sep  6 06:46:11 2021
Results reported at Mon Sep  6 06:46:11 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1249.8+3707_daily_bin345 192.46 37.1306 328752001 329011201 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 :                                   732.33 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             292.57 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   915 sec.
    Turnaround time :                            916 sec.

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

