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


Performing analysis on: 4FGL_J1249.8+3707_daily_bin389
RA = 192.46, Dec = 37.1306
tmin = 340156801, tmax = 340416001
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='935866', job_status='RUN', time_executed='2021-09-06 06:33:47.262007', time_epoch_executed='1630935227.26' WHERE source_name='4FGL J1249.8+3707' and cadence='daily' and bin_id='389'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/935866

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/935866/ft1_4FGL_J1249.8+3707_daily_bin389.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/935866/ft2_4FGL_J1249.8+3707_daily_bin389.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/935866/ft1_4FGL_J1249.8+3707_daily_bin389.fits outfile=/scratch/kocevski/935866/ft1_filteredMKT_4FGL_J1249.8+3707_daily_bin389.fits ra=192.46 dec=37.1306 rad=12.0 tmin=340156801.0 tmax=340416001.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.30
user 3.09
sys 0.20

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/935866/ft1_filtered_4FGL_J1249.8+3707_daily_bin389.fits" evtable="EVENTS" scfile=/scratch/kocevski/935866/ft2_4FGL_J1249.8+3707_daily_bin389.fits sctable="SC_DATA" outfile=/scratch/kocevski/935866/ltcube_340156801_340416001_4FGL_J1249.8+3707_daily_bin389.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/935866/ft2_4FGL_J1249.8+3707_daily_bin389.fits
.....................!
real 11.72
user 11.35
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/935866/ft1_filtered_4FGL_J1249.8+3707_daily_bin389.fits evtable="EVENTS" scfile=/scratch/kocevski/935866/ft2_4FGL_J1249.8+3707_daily_bin389.fits sctable="SC_DATA" expcube=/scratch/kocevski/935866/ltcube_340156801_340416001_4FGL_J1249.8+3707_daily_bin389.fits outfile=/scratch/kocevski/935866/expmap_340156801_340416001_4FGL_J1249.8+3707_daily_bin389.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/935866/ltcube_340156801_340416001_4FGL_J1249.8+3707_daily_bin389.fits
.....................!
real 189.82
user 184.86
sys 4.53

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/935866/ft1_filtered_4FGL_J1249.8+3707_daily_bin389.fits scfile=/scratch/kocevski/935866/ft2_4FGL_J1249.8+3707_daily_bin389.fits outfile=/scratch/kocevski/935866/cmap_340156801_340416001_4FGL_J1249.8+3707_daily_bin389.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/935866/ft1_filtered_4FGL_J1249.8+3707_daily_bin389.fits scfile=/scratch/kocevski/935866/ft2_4FGL_J1249.8+3707_daily_bin389.fits outfile=/scratch/kocevski/935866/cmap_HighResolution_340156801_340416001_4FGL_J1249.8+3707_daily_bin389.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.58
user 0.38
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10293E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    2.9054       1.0000         .10000E-03   10000.    
     4 'Prefactor '    2.3512       1.0000         .10000E-03   10000.    
     5 'Prefactor '    3.5989       1.0000         .10000E-03   10000.    
     6 'Prefactor '    3.7841       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10004E-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      '    4.3930       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .10489E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    2.3595       1.0000         .10000E-03   10000.    
    19 'norm      '    .12562E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10028E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    15.097       1.0000         .10000E-03   10000.    
    23 'Prefactor '    6.4081       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10019E-03   1.0000         .10000E-03   10000.    
    25 'Normalizat'    1.2141       1.0000         .10000E-01   10.000    
    26 'Prefactor '    .90331       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=   6265.500     FROM MIGRAD    STATUS=CONVERGED    642 CALLS     3085 TOTAL
                     EDM=   .11E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    120.21        .39714E-05** at limit **
   2  Prefactor     .10000E-03    13.530       -.21526E-06** at limit **
   3  norm          2.9053        2.1976       -.23086E-08    .15176E-04
   4  Prefactor     2.3507        5.2522        .45804E-06   -.10645E-03
   5  Prefactor     3.5988        2.2033       -.81304E-08    .15004E-04
   6  Prefactor     3.7838        2.5723        .24718E-07   -.54712E-04
   7  Prefactor     .10000E-03    6.8840        .26808E-06** at limit **
   8  Prefactor     .10000E-03    14.093       -.38274E-06** at limit **
   9  Prefactor     .10000E-03    6.2584       -.85581E-07** at limit **
  10  Prefactor     .10000E-03    71.276       -.90399E-06** at limit **
  11  Prefactor     .10000E-03    2.1933        .24450E-07** at limit **
  12  norm          4.3931        4.0657       -.26209E-06    .31296E-04
  13  Prefactor     .10000E-03    16.645        .33430E-06** at limit **
  14  Prefactor     .10000E-03    12.647        .24292E-06** at limit **
  15  Prefactor     .10000E-03    4.4932       -.29974E-07** at limit **
  16  norm          .10000E-03    2.7834       -.41790E-06** at limit **
  17  norm          .10000E-03    3.9835        .13774E-07** at limit **
  18  norm          2.3606        2.6900        .30181E-05   -.11950E-02
  19  norm          .10000E-03    7.0199       -.30254E-05** at limit **
  20  Prefactor     .10000E-03    2.3771       -.15689E-05** at limit **
  21  Prefactor     .10000E-03    4.3646       -.48154E-06** at limit **
  22  Prefactor     15.011        54.527       -.17507E-04   -.21500E-03
  23  Prefactor     6.4088        17.040        .32158E-05   -.18316E-03
  24  Prefactor     .10000E-03    20.338       -.27534E-07** at limit **
  25  Normalizat    1.2141        .16501        .26567E-06    .67899E-04
  26  Prefactor     .90339        .20444       -.24304E-06    .84390E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100002
  Prefactor  = 0.0001
  norm       = 2.90535
  Prefactor  = 2.35065
  Prefactor  = 3.59883
  Prefactor  = 3.78375
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 4.39311
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.000100002
  norm       = 0.0001
  norm       = 2.36056
  norm       = 0.000100004
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 15.0113
  Prefactor  = 6.40884
  Prefactor  = 0.0001
  Normalizat = 1.21407
  Prefactor  = 0.903392
 **********
 **   18 **HESSE 
 **********

 FCN=   6265.500     FROM HESSE     STATUS=OK           450 CALLS     3535 TOTAL
                     EDM=   .26E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    120.95        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    13.583        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          2.9053        2.1989        .96798E-04   -1.5367    
   4  Prefactor     2.3507        5.2331        .26242E-03   -1.5401    
   5  Prefactor     3.5988        2.2060        .86680E-04   -1.5329    
   6  Prefactor     3.7838        2.5654        .99432E-04   -1.5319    
   7  Prefactor     .10000E-03    6.9332        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    14.147        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    6.2612        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    71.433        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    2.2022        .11447E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          4.3931        4.0641        .14763E-03   -1.5289    
  13  Prefactor     .10000E-03    16.654        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    12.679        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    4.4979        .16386E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10000E-03    6.3019        .25582E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .10000E-03    3.9850        .15429E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          2.3606        2.8132        .69729E-03   -1.5401    
  19  norm          .10000E-03    7.6488        .36285E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    2.4349        .23687E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    4.3710        .16148E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     15.011        57.290        .10308E-03   -1.4933    
  23  Prefactor     6.4088        17.058        .79276E-03   -1.5202    
  24  Prefactor     .10000E-03    20.348        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Normalizat    1.2141        .19753        .21910E-03   -.86169    
  26  Prefactor     .90339        .24392        .30980E-03   -.96023    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.64714e-09
Minuit parameter uncertainties:
  1  0.000989494
  2  4.0318e-05
  3  2.19895
  4  5.23412
  5  2.20601
  6  2.56546
  7  6.48868e-06
  8  6.60396e-05
  9  1.03428e-05
  10  0.000320926
  11  3.70041e-07
  12  4.06434
  13  2.80672e-05
  14  1.89405e-05
  15  3.45553e-06
  16  0.000213541
  17  1.60504e-06
  18  2.81332
  19  0.000348355
  20  6.85564e-05
  21  1.00175e-05
  22  57.5016
  23  17.0705
  24  2.01703e-05
  25  0.19765
  26  0.244212
Done.

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

Extracting fit parameters...

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

GAL_V02
   Spectrum: PowerLaw
625    Prefactor:  9.034e-01  2.442e-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.214e+00  1.977e-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.10e-08 ph cm-2 s-1
Energy Flux Upper Limit: 2.28e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/935866/likelihoodResults_340156801_340416001_4FGL_J1249.8+3707_daily_bin389.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) = 6265.50032355
delta logL = -0.000754714249524

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6265.49956883
delta logL = 7.08860170562e-09

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10146E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    1.7588       1.0000          .0000       10.000    
     3 'Normalizat'    1.2141       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .90335       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=   6265.500     FROM MIGRAD    STATUS=CONVERGED     53 CALLS      209 TOTAL
                     EDM=   .25E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    78.753        .90712E-02** at limit **
   2  Index         1.7382        8.8182        .50000        .22973E-04
   3  Normalizat    1.2141        .14579E-01    .49559E-01    .17474E-04
   4  Prefactor     .90339        .18162E-01    .70024E-01   -.24866E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 1.73825
  Normalizat = 1.21407
  Prefactor  = 0.903391
 **********
 **   18 **HESSE 
 **********

 FCN=   6265.500     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      242 TOTAL
                     EDM=   .20E-06    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    1226.4        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         1.7382        5.3620        .50000       -.71068    
   3  Normalizat    1.2141        .91126E-01    .21910E-03   -.86169    
   4  Prefactor     .90339        .11336        .30980E-03   -.96023    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.99351e-07
Minuit parameter uncertainties:
  1  0.00159767
  2  53.3375
  3  0.0911383
  4  0.113387
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/935866': 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) = 6265.49956857
delta logL = 2.66424649453e-07

Extracting fit parameters...

4FGL J1249.8+3707
   Spectrum: PowerLaw
313    Prefactor:  1.000e-04  1.598e-03  1.000e-04  1.000e+04 ( 1.000e-14)
314        Index:  1.738e+00  5.334e+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:  9.034e-01  1.134e-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.214e+00  9.114e-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/935866/cmap_HighResolution_340156801_340416001_4FGL_J1249.8+3707_daily_bin389.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.28e-03', job_status='DONE', photon_flux_upper_limit='3.10e-08', time_completed='2021-09-06 06:46:28.063430', job_id='935866', GAL2='0.90', fit_tolerance='1e-08', EG2='1.21', EG='1.21', time_epoch_completed='1630935988.06', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.90', dlogl='2.66e-07', ts2='-0.00', photon_index_error='0.00', photon_index='1.78' WHERE bin_id='389' AND source_name='4FGL J1249.8+3707' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep  6 06:46:28 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0096>
Subject: Job 935866: <4FGL_J1249.8+3707_daily_bin389> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1249.8+3707_daily_bin389 192.46 37.1306 340156801 340416001 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 :                                   758.38 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             289.76 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   925 sec.
    Turnaround time :                            927 sec.

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

