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


Performing analysis on: 4FGL_J1249.8+3707_daily_bin233
RA = 192.46, Dec = 37.1306
tmin = 299721601, tmax = 299980801
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='935667', job_status='RUN', time_executed='2021-09-06 06:34:02.291305', time_epoch_executed='1630935242.29' WHERE source_name='4FGL J1249.8+3707' and cadence='daily' and bin_id='233'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/935667

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/935667/ft1_4FGL_J1249.8+3707_daily_bin233.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/935667/ft2_4FGL_J1249.8+3707_daily_bin233.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/935667/ft1_4FGL_J1249.8+3707_daily_bin233.fits outfile=/scratch/kocevski/935667/ft1_filteredMKT_4FGL_J1249.8+3707_daily_bin233.fits ra=192.46 dec=37.1306 rad=12.0 tmin=299721601.0 tmax=299980801.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.17
sys 0.17

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/935667/ft1_filtered_4FGL_J1249.8+3707_daily_bin233.fits evtable="EVENTS" scfile=/scratch/kocevski/935667/ft2_4FGL_J1249.8+3707_daily_bin233.fits sctable="SC_DATA" expcube=/scratch/kocevski/935667/ltcube_299721601_299980801_4FGL_J1249.8+3707_daily_bin233.fits outfile=/scratch/kocevski/935667/expmap_299721601_299980801_4FGL_J1249.8+3707_daily_bin233.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/935667/ltcube_299721601_299980801_4FGL_J1249.8+3707_daily_bin233.fits
.....................!
real 190.66
user 185.46
sys 4.82

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/935667/ft1_filtered_4FGL_J1249.8+3707_daily_bin233.fits scfile=/scratch/kocevski/935667/ft2_4FGL_J1249.8+3707_daily_bin233.fits outfile=/scratch/kocevski/935667/cmap_299721601_299980801_4FGL_J1249.8+3707_daily_bin233.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.56
user 0.36
sys 0.16

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

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10053E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10058E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    9.7823       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    4.5406       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .13901E-02   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .27889E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    16.700       1.0000         .10000E-03   10000.    
    10 'Prefactor '    45.357       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    132.69       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10013E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    7.9562       1.0000         .10000E-03   10000.    
    16 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .10004E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    .29855E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    12.511       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10204E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10041E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10038E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10095E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    25 'Normalizat'    1.0510       1.0000         .10000E-01   10.000    
    26 'Prefactor '    .93224       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=   5644.141     FROM MIGRAD    STATUS=CONVERGED    620 CALLS     3552 TOTAL
                     EDM=   .16E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    11.323       -.55836E-05** at limit **
   2  Prefactor     .10000E-03    12.134        .38068E-05** at limit **
   3  norm          9.7821        4.0641       -.35713E-06    .12691E-03
   4  Prefactor     .10000E-03    6.7054        .27176E-05** at limit **
   5  Prefactor     .10000E-03    .85126        .18587E-06** at limit **
   6  Prefactor     4.5402        2.7448        .51344E-06    .51596E-03
   7  Prefactor     .10206E-03    8.2501       -.24441E-05** at limit **
   8  Prefactor     .10126E-03    20.689       -.54008E-05** at limit **
   9  Prefactor     16.703        19.312        .31092E-07    .10827E-04
  10  Prefactor     45.340        59.595       -.20056E-04    .41730E-04
  11  Prefactor     .10000E-03    3.4289        .68529E-07** at limit **
  12  norm          .10000E-03    .92545        .72507E-07** at limit **
  13  Prefactor     132.70        67.404        .95350E-05    .71126E-04
  14  Prefactor     .10000E-03    6.2238       -.33197E-05** at limit **
  15  Prefactor     7.9596        15.334       -.71076E-06    .14983E-04
  16  norm          .10000E-03    1.6780       -.76967E-07** at limit **
  17  norm          .10000E-03    4.9133       -.34552E-06** at limit **
  18  norm          .10001E-03    2.4495       -.10346E-05** at limit **
  19  norm          12.523        7.9793        .66164E-06    .10436E-02
  20  Prefactor     .10000E-03    2.4026        .51454E-06** at limit **
  21  Prefactor     .10000E-03    20.461       -.10157E-04** at limit **
  22  Prefactor     .10000E-03    28.178       -.13462E-04** at limit **
  23  Prefactor     .10000E-03    17.614        .99485E-05** at limit **
  24  Prefactor     .10000E-03    35.499        .20502E-04** at limit **
  25  Normalizat    1.0508        .16816        .10611E-05    .57633E-03
  26  Prefactor     .93239        .20718        .46972E-06    .40065E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 9.78213
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 4.54024
  Prefactor  = 0.000102055
  Prefactor  = 0.000101263
  Prefactor  = 16.7025
  Prefactor  = 45.3398
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 132.704
  Prefactor  = 0.0001
  Prefactor  = 7.95962
  norm       = 0.0001
  norm       = 0.0001
  norm       = 0.000100007
  norm       = 12.523
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 1.0508
  Prefactor  = 0.932392
 **********
 **   18 **HESSE 
 **********

 FCN=   5644.141     FROM HESSE     STATUS=OK           450 CALLS     4002 TOTAL
                     EDM=   .29E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    11.327        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    12.143        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          9.7821        4.0559        .91223E-04   -1.5082    
   4  Prefactor     .10000E-03    6.8044        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    .85434        .67579E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     4.5402        2.7111        .89573E-04   -1.5282    
   7  Prefactor     .10206E-03    101.19        .40713E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10126E-03    135.26        .65220E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     16.703        19.292        .98007E-04   -1.4890    
  10  Prefactor     45.340        59.563        .59532E-04   -1.4360    
  11  Prefactor     .10000E-03    3.4427        .13567E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          .10000E-03    .92604        .70576E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     132.70        67.413        .17479E-03   -1.3399    
  14  Prefactor     .10000E-03    6.2244        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     7.9596        15.301        .14215E-03   -1.5144    
  16  norm          .10000E-03    1.6819        .95006E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .10000E-03    4.9156        .16265E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          .10001E-03    6.4412        .19887E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          12.523        7.0465        .11325E-03   -1.5000    
  20  Prefactor     .10000E-03    5.1600        .22037E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    21.066        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    28.211        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    17.730        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10000E-03    35.513        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Normalizat    1.0508        .19390        .22194E-03   -.91347    
  26  Prefactor     .93239        .24051        .29510E-03   -.95018    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.86668e-08
Minuit parameter uncertainties:
  1  1.63496e-06
  2  8.73689e-06
  3  4.05598
  4  2.10272e-05
  5  1.2423e-06
  6  2.71121
  7  0.0288898
  8  0.0261969
  9  19.299
  10  59.6417
  11  1.46929e-06
  12  5.16177e-06
  13  67.4523
  14  1.05017e-05
  15  15.3085
  16  3.03094e-07
  17  1.52644e-05
  18  0.00043249
  19  7.04693
  20  4.60089e-05
  21  0.000109506
  22  5.28567e-06
  23  4.23928e-05
  24  3.90654e-05
  25  0.194031
  26  0.240781
Done.

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

Extracting fit parameters...

4FGL J1249.8+3707
   Spectrum: PowerLaw
313    Prefactor:  1.670e+01  1.930e+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:  9.324e-01  2.408e-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.051e+00  1.940e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.19
Ra Dec: 192.460 37.131
Photon Index (Fixed Index): 1.78 +/- 0.00
Photon Flux (Fixed Index): 1.52e-08 +/- 1.76e-08
Energy Flux (Fixed Index): 1.94e-05 +/- 2.24e-05

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

Saving results to:
/scratch/kocevski/935667/likelihoodResults_299721601_299980801_4FGL_J1249.8+3707_daily_bin233.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) = 5642.93790222
delta logL = 1.20292795387

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5642.93483192
delta logL = 1.20599825595

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    1.4432       1.0000         .10000E-03   10000.    
     2 'Index     '    3.1211       1.0000          .0000       10.000    
     3 'Normalizat'    .98242       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .98015       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=   5642.935     FROM MIGRAD    STATUS=CONVERGED     53 CALLS      267 TOTAL
                     EDM=   .20E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     1.4466        14.534        .89744E-02    .41218E-03
   2  Index         3.1203        1.7365        .75575E-01    .19674E-03
   3  Normalizat    .98241        .50487E-01    .45946E-01    .49884E-05
   4  Prefactor     .98017        .60480E-01    .46018E-01    .83575E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.44662
  Index      = 3.12033
  Normalizat = 0.982408
  Prefactor  = 0.980172
 **********
 **   18 **HESSE 
 **********

 FCN=   5642.935     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      300 TOTAL
                     EDM=   .31E-06    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     1.4466        29.119        .56134E-04   -1.5467    
   2  Index         3.1203        2.8701        .28224E-02   -.38540    
   3  Normalizat    .98241        .21187        .22845E-03   -.93622    
   4  Prefactor     .98017        .24583        .28817E-03   -.93393    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 3.06424e-07
Minuit parameter uncertainties:
  1  12.9875
  2  3.09527
  3  0.212051
  4  0.246109
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/935667': 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) = 5642.93483155
delta logL = 1.20599862615

Extracting fit parameters...

4FGL J1249.8+3707
   Spectrum: PowerLaw
313    Prefactor:  1.447e+00  1.299e+01  1.000e-04  1.000e+04 ( 1.000e-14)
314        Index:  3.120e+00  3.095e+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:  9.802e-01  2.461e-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:  9.824e-01  2.121e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 3.66
Ra Dec: 192.460 37.131
Photon Index (Free Index): 3.12 +/- 3.10
Photon Flux (Free Index): 6.88e-08 +/- 8.24e-08
Energy Flux (Free Index): 1.30e-05 +/- 9.13e-06

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/935667/cmap_HighResolution_299721601_299980801_4FGL_J1249.8+3707_daily_bin233.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.46e-03', comment='SUCCESS', photon_flux='1.52e-08', energy_flux2='1.30e-05', photon_flux_error='1.76e-08', dlogl='1.21e+00', energy_flux='1.94e-05', photon_flux2='6.88e-08', job_status='DONE', time_completed='2021-09-06 06:46:56.944446', photon_index_error2='3.10', photon_index2='3.12', ts='1.19', fit_tolerance='1e-08', GAL='0.93', photon_index_error='0.00', photon_flux_upper_limit='6.06e-08', energy_flux_error2='9.13e-06', EG='1.05', time_epoch_completed='1630936016.94', return_code='0', job_id='935667', GAL2='0.98', EG2='0.98', return_code2='102', energy_flux_error='2.24e-05', photon_flux_error2='8.24e-08', ts2='3.66', photon_index='1.78' WHERE bin_id='233' AND source_name='4FGL J1249.8+3707' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep  6 06:46:56 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0251>
Subject: Job 935667: <4FGL_J1249.8+3707_daily_bin233> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1249.8+3707_daily_bin233 192.46 37.1306 299721601 299980801 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 :                                   772.29 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             284.67 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   972 sec.
    Turnaround time :                            975 sec.

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

