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


Performing analysis on: 4FGL_J1249.8+3707_daily_bin132
RA = 192.46, Dec = 37.1306
tmin = 273542401, tmax = 273801601
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='934459', job_status='RUN', time_executed='2021-09-06 06:28:39.088695', time_epoch_executed='1630934919.09' WHERE source_name='4FGL J1249.8+3707' and cadence='daily' and bin_id='132'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/934459

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/934459/ft1_4FGL_J1249.8+3707_daily_bin132.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/934459/ft2_4FGL_J1249.8+3707_daily_bin132.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/934459/ft1_4FGL_J1249.8+3707_daily_bin132.fits outfile=/scratch/kocevski/934459/ft1_filteredMKT_4FGL_J1249.8+3707_daily_bin132.fits ra=192.46 dec=37.1306 rad=12.0 tmin=273542401.0 tmax=273801601.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 4.05
user 3.32
sys 0.27

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/934459/ft2_4FGL_J1249.8+3707_daily_bin132.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/934459/ft1_filteredMKT_4FGL_J1249.8+3707_daily_bin132.fits evtable="EVENTS" outfile="/scratch/kocevski/934459/ft1_filtered_4FGL_J1249.8+3707_daily_bin132.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 1.09
user 0.34
sys 0.16

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/934459/ft1_filtered_4FGL_J1249.8+3707_daily_bin132.fits evtable="EVENTS" scfile=/scratch/kocevski/934459/ft2_4FGL_J1249.8+3707_daily_bin132.fits sctable="SC_DATA" expcube=/scratch/kocevski/934459/ltcube_273542401_273801601_4FGL_J1249.8+3707_daily_bin132.fits outfile=/scratch/kocevski/934459/expmap_273542401_273801601_4FGL_J1249.8+3707_daily_bin132.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/934459/ltcube_273542401_273801601_4FGL_J1249.8+3707_daily_bin132.fits
.....................!
real 193.45
user 185.73
sys 5.31

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/934459/ft1_filtered_4FGL_J1249.8+3707_daily_bin132.fits scfile=/scratch/kocevski/934459/ft2_4FGL_J1249.8+3707_daily_bin132.fits outfile=/scratch/kocevski/934459/cmap_273542401_273801601_4FGL_J1249.8+3707_daily_bin132.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.38
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/934459/ft1_filtered_4FGL_J1249.8+3707_daily_bin132.fits scfile=/scratch/kocevski/934459/ft2_4FGL_J1249.8+3707_daily_bin132.fits outfile=/scratch/kocevski/934459/cmap_HighResolution_273542401_273801601_4FGL_J1249.8+3707_daily_bin132.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.56
user 0.37
sys 0.17

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    3.6194       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10024E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    2.1571       1.0000         .10000E-03   10000.    
     6 'Prefactor '    3.5819       1.0000         .10000E-03   10000.    
     7 'Prefactor '    23.438       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    38.758       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    4.7944       1.0000         .10000E-03   10000.    
    12 'norm      '    .10006E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    21.121       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .15662E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    13.297       1.0000         .10000E-03   10000.    
    18 'norm      '    .28600E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    3.8123       1.0000         .10000E-03   10000.    
    20 'Prefactor '    2.1697       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10050E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .76784E-03   1.0000         .10000E-03   10000.    
    25 'Normalizat'    1.1579       1.0000         .10000E-01   10.000    
    26 'Prefactor '    .91835       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=   6141.084     FROM MIGRAD    STATUS=CONVERGED    615 CALLS     2660 TOTAL
                     EDM=   .63E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    15.128        .65967E-06** at limit **
   2  Prefactor     .10000E-03    10.196       -.79089E-06** at limit **
   3  norm          3.6197        2.7393        .23703E-07   -.79992E-06
   4  Prefactor     .10000E-03    7.2898       -.59773E-06** at limit **
   5  Prefactor     2.1574        2.0075       -.66538E-08    .20611E-04
   6  Prefactor     3.5823        2.3299        .68139E-08   -.83609E-05
   7  Prefactor     23.441        15.254        .31225E-07   -.28097E-05
   8  Prefactor     .10000E-03    8.1842        .95685E-06** at limit **
   9  Prefactor     38.760        21.608       -.45546E-06    .18466E-04
  10  Prefactor     .10001E-03    30.622       -.44485E-05** at limit **
  11  Prefactor     4.7929        5.0854        .25015E-05   -.83203E-03
  12  norm          .10000E-03    1.8696       -.22940E-07** at limit **
  13  Prefactor     .10000E-03    39.152        .27480E-05** at limit **
  14  Prefactor     21.116        18.654       -.10945E-06    .54646E-04
  15  Prefactor     .10000E-03    6.2762       -.81553E-07** at limit **
  16  norm          .10000E-03    4.9247       -.20957E-06** at limit **
  17  norm          13.298        12.079        .60117E-07   -.54663E-05
  18  norm          .10000E-03    2.3060       -.44322E-06** at limit **
  19  norm          3.8101        5.4177        .24303E-06    .13395E-03
  20  Prefactor     2.1709        3.4501        .62793E-06   -.40333E-04
  21  Prefactor     .10000E-03    40.092        .34946E-05** at limit **
  22  Prefactor     .10000E-03    71.018       -.20798E-05** at limit **
  23  Prefactor     .10000E-03    12.169        .12919E-06** at limit **
  24  Prefactor     .10004E-03    127.80       -.86911E-05** at limit **
  25  Normalizat    1.1578        .17212       -.26249E-06    .94288E-04
  26  Prefactor     .91831        .20791       -.27471E-06    .55066E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 3.61969
  Prefactor  = 0.0001
  Prefactor  = 2.15736
  Prefactor  = 3.58227
  Prefactor  = 23.4414
  Prefactor  = 0.0001
  Prefactor  = 38.7596
  Prefactor  = 0.000100011
  Prefactor  = 4.79294
  norm       = 0.0001
  Prefactor  = 0.000100004
  Prefactor  = 21.1159
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 13.2983
  norm       = 0.0001
  norm       = 3.81009
  Prefactor  = 2.17091
  Prefactor  = 0.000100004
  Prefactor  = 0.000100003
  Prefactor  = 0.0001
  Prefactor  = 0.000100036
  Normalizat = 1.15781
  Prefactor  = 0.918311
 **********
 **   18 **HESSE 
 **********

 FCN=   6141.084     FROM HESSE     STATUS=OK           454 CALLS     3114 TOTAL
                     EDM=   .14E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    15.170        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    10.254        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          3.6197        2.7331        .10622E-03   -1.5327    
   4  Prefactor     .10000E-03    7.4606        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     2.1574        2.0081        .10090E-03   -1.5414    
   6  Prefactor     3.5823        2.3238        .90952E-04   -1.5329    
   7  Prefactor     23.441        15.224        .82738E-04   -1.4739    
   8  Prefactor     .10000E-03    8.2608        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     38.760        21.627        .64381E-04   -1.4462    
  10  Prefactor     .10001E-03    32.212        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     4.7929        5.2397        .90130E-03   -1.5270    
  12  norm          .10000E-03    1.8857        .10458E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    39.809        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     21.116        18.473        .43577E-03   -1.4789    
  15  Prefactor     .10000E-03    6.2918        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10000E-03    5.1339        .33955E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          13.298        12.081        .10985E-03   -1.4978    
  18  norm          .10000E-03    23.193        .19982E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          3.8101        5.0347        .19356E-03   -1.5318    
  20  Prefactor     2.1709        3.3244        .16544E-03   -1.5413    
  21  Prefactor     .10000E-03    41.173        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    71.705        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    12.240        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10004E-03    134.22        .20926E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Normalizat    1.1578        .19951        .22539E-03   -.87917    
  26  Prefactor     .91831        .24132        .30687E-03   -.95504    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.41297e-09
Minuit parameter uncertainties:
  1  0.000119948
  2  0.000117361
  3  2.73316
  4  6.49609e-05
  5  2.0082
  6  2.3239
  7  15.2264
  8  0.000127879
  9  21.6311
  10  0.00117946
  11  5.24024
  12  9.12907e-07
  13  0.000797847
  14  18.4783
  15  9.95043e-06
  16  2.41345e-05
  17  12.0832
  18  0.00017914
  19  5.03523
  20  3.32467
  21  0.000812837
  22  0.000860622
  23  1.69107e-05
  24  0.00441673
  25  0.199646
  26  0.241599
Done.

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

Extracting fit parameters...

4FGL J1249.8+3707
   Spectrum: PowerLaw
313    Prefactor:  3.876e+01  2.163e+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.183e-01  2.416e-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.158e+00  1.996e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 26.77
Ra Dec: 192.460 37.131
Photon Index (Fixed Index): 1.78 +/- 0.00
Photon Flux (Fixed Index): 3.53e-08 +/- 1.97e-08
Energy Flux (Fixed Index): 4.49e-05 +/- 2.51e-05

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) = 6139.82832703
delta logL = 1.25553395989

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6139.77394423
delta logL = 1.30991675851

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    47.615       1.0000         .10000E-03   10000.    
     2 'Index     '    1.1410       1.0000          .0000       10.000    
     3 'Normalizat'    1.1724       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .91697       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=   6139.774     FROM MIGRAD    STATUS=CONVERGED     85 CALLS      247 TOTAL
                     EDM=   .40E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     47.622        29.757        .58110E-04   -.31694E-04
   2  Index         1.1411        .39748        .83384E-02   -.31074E-04
   3  Normalizat    1.1724        .19485        .22423E-03   -.67687E-03
   4  Prefactor     .91695        .24016        .30731E-03   -.44524E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 47.6224
  Index      = 1.14106
  Normalizat = 1.17242
  Prefactor  = 0.91695
 **********
 **   18 **HESSE 
 **********

 FCN=   6139.774     FROM HESSE     STATUS=OK            23 CALLS      270 TOTAL
                     EDM=   .41E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     47.622        29.964        .23244E-05   -1.4327    
   2  Index         1.1411        .40025        .33354E-03   -.88165    
   3  Normalizat    1.1724        .19500        .44846E-04   -.87459    
   4  Prefactor     .91695        .24036        .61463E-04   -.95551    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.05271e-10
Minuit parameter uncertainties:
  1  29.9735
  2  0.401319
  3  0.195125
  4  0.240636
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/934459': 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) = 6139.7739442
delta logL = 1.3099167947

Extracting fit parameters...

4FGL J1249.8+3707
   Spectrum: PowerLaw
313    Prefactor:  4.762e+01  2.997e+01  1.000e-04  1.000e+04 ( 1.000e-14)
314        Index:  1.141e+00  4.013e-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.169e-01  2.406e-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.172e+00  1.951e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 29.39
Ra Dec: 192.460 37.131
Photon Index (Free Index): 1.14 +/- 0.40
Photon Flux (Free Index): 1.42e-08 +/- 1.12e-08
Energy Flux (Free Index): 1.41e-04 +/- 1.22e-04

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/934459/cmap_HighResolution_273542401_273801601_4FGL_J1249.8+3707_daily_bin132.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='3.53e-08', energy_flux2='1.41e-04', photon_flux_error='1.97e-08', dlogl='1.31e+00', energy_flux='4.49e-05', photon_flux2='1.42e-08', job_status='DONE', time_completed='2021-09-06 06:39:28.056059', photon_index_error2='0.40', photon_index2='1.14', ts='26.77', fit_tolerance='1e-08', GAL='0.92', photon_index_error='0.00', energy_flux_error2='1.22e-04', EG='1.16', time_epoch_completed='1630935568.06', return_code='0', job_id='934459', GAL2='0.92', EG2='1.17', return_code2='0', energy_flux_error='2.51e-05', photon_flux_error2='1.12e-08', ts2='29.39', photon_index='1.78' WHERE bin_id='132' AND source_name='4FGL J1249.8+3707' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep  6 06:39:28 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0058>
Subject: Job 934459: <4FGL_J1249.8+3707_daily_bin132> in cluster <slac> Done

Job <4FGL_J1249.8+3707_daily_bin132> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Mon Sep  6 06:25:58 2021
Job was executed on host(s) <bullet0058>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Sep  6 06:25:59 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:25:59 2021
Terminated at Mon Sep  6 06:39:28 2021
Results reported at Mon Sep  6 06:39:28 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1249.8+3707_daily_bin132 192.46 37.1306 273542401 273801601 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 :                                   643.13 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             277.61 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   809 sec.
    Turnaround time :                            810 sec.

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

