/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 216 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 = 7394
number of fields = 22
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J1351.0+0029_daily_bin122
RA = 207.757, Dec = 0.4873
tmin = 270950401, tmax = 271209601
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='11957', job_status='RUN', time_executed='2021-09-08 15:15:12.619396', time_epoch_executed='1631139312.62' WHERE source_name='4FGL J1351.0+0029' and cadence='daily' and bin_id='122'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/11957

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/11957/ft1_4FGL_J1351.0+0029_daily_bin122.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/11957/ft2_4FGL_J1351.0+0029_daily_bin122.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/11957/ft1_4FGL_J1351.0+0029_daily_bin122.fits outfile=/scratch/kocevski/11957/ft1_filteredMKT_4FGL_J1351.0+0029_daily_bin122.fits ra=207.757 dec=0.4873 rad=12.0 tmin=270950401.0 tmax=271209601.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 1.66
user 1.44
sys 0.18

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/11957/ft2_4FGL_J1351.0+0029_daily_bin122.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/11957/ft2_4FGL_J1351.0+0029_daily_bin122.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/11957/ft1_filteredMKT_4FGL_J1351.0+0029_daily_bin122.fits evtable="EVENTS" outfile="/scratch/kocevski/11957/ft1_filtered_4FGL_J1351.0+0029_daily_bin122.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.55
user 0.34
sys 0.16

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/11957/ft1_filtered_4FGL_J1351.0+0029_daily_bin122.fits" evtable="EVENTS" scfile=/scratch/kocevski/11957/ft2_4FGL_J1351.0+0029_daily_bin122.fits sctable="SC_DATA" outfile=/scratch/kocevski/11957/ltcube_270950401_271209601_4FGL_J1351.0+0029_daily_bin122.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/11957/ft2_4FGL_J1351.0+0029_daily_bin122.fits
.....................!
real 18.06
user 17.66
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/11957/ft1_filtered_4FGL_J1351.0+0029_daily_bin122.fits evtable="EVENTS" scfile=/scratch/kocevski/11957/ft2_4FGL_J1351.0+0029_daily_bin122.fits sctable="SC_DATA" expcube=/scratch/kocevski/11957/ltcube_270950401_271209601_4FGL_J1351.0+0029_daily_bin122.fits outfile=/scratch/kocevski/11957/expmap_270950401_271209601_4FGL_J1351.0+0029_daily_bin122.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/11957/ltcube_270950401_271209601_4FGL_J1351.0+0029_daily_bin122.fits
.....................!
real 192.34
user 186.87
sys 4.41

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 156 point sources and 0 extended sources

Setting source of interest to:
4FGL J1351.0+0029 @ 207.757 0.4873

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/11957/ft1_filtered_4FGL_J1351.0+0029_daily_bin122.fits scfile=/scratch/kocevski/11957/ft2_4FGL_J1351.0+0029_daily_bin122.fits outfile=/scratch/kocevski/11957/cmap_270950401_271209601_4FGL_J1351.0+0029_daily_bin122.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=207.757 yref=0.4873 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.39
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/11957/ft1_filtered_4FGL_J1351.0+0029_daily_bin122.fits scfile=/scratch/kocevski/11957/ft2_4FGL_J1351.0+0029_daily_bin122.fits outfile=/scratch/kocevski/11957/cmap_HighResolution_270950401_271209601_4FGL_J1351.0+0029_daily_bin122.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=207.757 yref=0.4873 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.38
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/11957/ft1_filtered_4FGL_J1351.0+0029_daily_bin122.fits evtable="EVENTS" scfile=/scratch/kocevski/11957/ft2_4FGL_J1351.0+0029_daily_bin122.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/11957/Model_4FGL_J1351.0+0029_daily_bin122.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/11957/ft1_filtered_4FGL_J1351.0+0029_daily_bin122.fits.....................!
real 62.77
user 61.34
sys 1.19

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/11957/ft1_filtered_4FGL_J1351.0+0029_daily_bin122.fits', '/scratch/kocevski/11957/ft2_4FGL_J1351.0+0029_daily_bin122.fits', expMap='/scratch/kocevski/11957/expmap_270950401_271209601_4FGL_J1351.0+0029_daily_bin122.fits', expCube='/scratch/kocevski/11957/ltcube_270950401_271209601_4FGL_J1351.0+0029_daily_bin122.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/11957/Model_4FGL_J1351.0+0029_daily_bin122.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1351.0+0029'

4FGL J1351.0+0029
   Spectrum: PowerLaw
252    Prefactor:  3.616e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-13)
253        Index:  2.437e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
254        Scale:  9.999e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/11957/ft1_filtered_4FGL_J1351.0+0029_daily_bin122.fits
Spacecraft file(s): /scratch/kocevski/11957/ft2_4FGL_J1351.0+0029_daily_bin122.fits
Exposure map: /scratch/kocevski/11957/expmap_270950401_271209601_4FGL_J1351.0+0029_daily_bin122.fits
Exposure cube: /scratch/kocevski/11957/ltcube_270950401_271209601_4FGL_J1351.0+0029_daily_bin122.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/11957/Model_4FGL_J1351.0+0029_daily_bin122.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) = 8285.49410791

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    34.288       1.0000         .10000E-03   10000.    
     2 'norm      '    .10274E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .12597E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .59935       1.0000         .10000E-03   10000.    
     5 'norm      '    .10006E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .15570E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    4.2731       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    21.593       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    .91738       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .33261E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    3.8995       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10137E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    8.1857       1.0000         .10000E-03   10000.    
    16 'norm      '    12.871       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10532E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    .10957E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10224E-03   1.0000         .10000E-03   10000.    
    20 'Normalizat'    1.3566       1.0000         .10000E-01   10.000    
    21 'Prefactor '    .85085       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5140E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   8285.472     FROM MIGRAD    STATUS=CONVERGED    466 CALLS     1927 TOTAL
                     EDM=   .11E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          34.280        12.354        .33464E-06    .53231E-03
   2  norm          .10000E-03    3.7514        .21708E-07** at limit **
   3  Prefactor     .10000E-03    6.1170        .45440E-06** at limit **
   4  Prefactor     .60261        6.7752        .73184E-06   -.13534E-03
   5  norm          .10000E-03    .54419        .57809E-07** at limit **
   6  Prefactor     .10000E-03    17.081       -.23987E-06** at limit **
   7  norm          4.3314        34.066        .26011E-05    .13911E-03
   8  Prefactor     .10000E-03    2.4184       -.77050E-07** at limit **
   9  Prefactor     21.578        18.475        .71551E-06    .43313E-03
  10  Prefactor     .10000E-03    1.5197       -.51269E-07** at limit **
  11  norm          .91338        7.8527        .36916E-05   -.65217E-03
  12  Prefactor     .10000E-03    5.2715        .52244E-07** at limit **
  13  norm          3.8988        2.3115        .94572E-07    .31257E-04
  14  Prefactor     .10000E-03    9.1618       -.60466E-06** at limit **
  15  norm          8.1856        7.3394       -.13284E-05   -.67338E-03
  16  norm          12.871        7.7439        .45577E-07   -.30610E-04
  17  Prefactor     .10000E-03    9.8373        .76416E-06** at limit **
  18  norm          .10000E-03    5.9570       -.42594E-06** at limit **
  19  Prefactor     .10000E-03    21.141        .13090E-06** at limit **
  20  Normalizat    1.3573        .18484       -.61949E-06   -.40831E-03
  21  Prefactor     .85058        .12843       -.24139E-06   -.44076E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 34.2797
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.602613
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 4.33144
  Prefactor  = 0.0001
  Prefactor  = 21.5783
  Prefactor  = 0.0001
  norm       = 0.913381
  Prefactor  = 0.0001
  norm       = 3.89876
  Prefactor  = 0.000100001
  norm       = 8.1856
  norm       = 12.8712
  Prefactor  = 0.000100002
  norm       = 0.0001
  Prefactor  = 0.0001
  Normalizat = 1.3573
  Prefactor  = 0.850578
 **********
 **   18 **HESSE 
 **********

 FCN=   8285.472     FROM HESSE     STATUS=OK           315 CALLS     2242 TOTAL
                     EDM=   .48E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          34.280        12.457        .68435E-04   -1.4536    
   2  norm          .10000E-03    3.7531        .17218E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    6.1855        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .60261        30.685        .44690E-02   -1.5553    
   5  norm          .10000E-03    .84249        .12949E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    17.106        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          4.3314        35.167        .19490E-03   -1.5292    
   8  Prefactor     .10000E-03    2.4787        .27613E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     21.578        18.670        .86196E-04   -1.4779    
  10  Prefactor     .10000E-03    1.5350        .10957E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .91338        9.9355        .30992E-02   -1.5517    
  12  Prefactor     .10000E-03    27.521        .39415E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          3.8988        2.3078        .10154E-03   -1.5313    
  14  Prefactor     .10000E-03    9.3220        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          8.1856        7.8225        .70064E-03   -1.5136    
  16  norm          12.871        7.7398        .11165E-03   -1.4990    
  17  Prefactor     .10000E-03    10.057        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          .10000E-03    6.0094        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    21.153        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Normalizat    1.3573        .22201        .26461E-03   -.81872    
  21  Prefactor     .85058        .15561        .22737E-03   -.97890    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.82958e-08
Minuit parameter uncertainties:
  1  12.4583
  2  3.24083e-06
  3  0.00011048
  4  8.60424
  5  1.22984e-06
  6  9.31397e-05
  7  24.7034
  8  4.07066e-06
  9  18.6755
  10  3.93837e-06
  11  6.02585
  12  2.01337e-05
  13  2.30786
  14  0.000170131
  15  7.82343
  16  7.74037
  17  0.000249468
  18  0.000101723
  19  6.51037e-05
  20  0.222169
  21  0.155694
Done.

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

Extracting fit parameters...

4FGL J1351.0+0029
   Spectrum: PowerLaw
252    Prefactor:  2.158e+01  1.868e+01  1.000e-04  1.000e+04 ( 1.000e-13)
253        Index:  2.437e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
254        Scale:  9.999e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
511    Prefactor:  8.506e-01  1.557e-01  0.000e+00  1.000e+01 ( 1.000e+00)
512        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
513        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
510   Normalization:  1.357e+00  2.222e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 2.00
Ra Dec: 207.757 0.487
Photon Index (Fixed Index): 2.44 +/- 0.00
Photon Flux (Fixed Index): 4.11e-08 +/- 3.55e-08
Energy Flux (Fixed Index): 1.28e-05 +/- 1.11e-05

TS (Fixed Index): 2.00
Ra Dec: 207.757 0.487
Photon Flux Upper Limit: 1.18e-07 ph cm-2 s-1
Energy Flux Upper Limit: 9.13e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/11957/likelihoodResults_270950401_271209601_4FGL_J1351.0+0029_daily_bin122.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) = 8285.45648292
delta logL = 0.0157052439135

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 8285.4486144
delta logL = 0.0235737633557

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    19.031       1.0000         .10000E-03   10000.    
     2 'Index     '    2.5870       1.0000          .0000       10.000    
     3 'Normalizat'    1.3498       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .85397       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5140E+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=   8285.449     FROM MIGRAD    STATUS=CONVERGED    105 CALLS      266 TOTAL
                     EDM=   .90E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     19.016        22.748        .91811E-04    .24765E-05
   2  Index         2.5885        .77192        .85607E-02    .53651E-03
   3  Normalizat    1.3499        .22257        .26521E-03    .16889E-04
   4  Prefactor     .85399        .15422        .22697E-03   -.12522E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 19.0159
  Index      = 2.5885
  Normalizat = 1.34988
  Prefactor  = 0.853985
 **********
 **   18 **HESSE 
 **********

 FCN=   8285.449     FROM HESSE     STATUS=OK            25 CALLS      291 TOTAL
                     EDM=   .13E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     19.016        21.229        .36724E-05   -1.4836    
   2  Index         2.5885        .72020        .17121E-02   -.50328    
   3  Normalizat    1.3499        .22250        .10609E-04   -.82089    
   4  Prefactor     .85399        .15421        .90789E-05   -.97768    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.31585e-11
Minuit parameter uncertainties:
  1  21.2378
  2  0.723489
  3  0.222655
  4  0.154289
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/11957': 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) = 8285.44861123
delta logL = 0.023576939413

Extracting fit parameters...

4FGL J1351.0+0029
   Spectrum: PowerLaw
252    Prefactor:  1.902e+01  2.124e+01  1.000e-04  1.000e+04 ( 1.000e-13)
253        Index:  2.589e+00  7.235e-01  0.000e+00  1.000e+01 (-1.000e+00)
254        Scale:  9.999e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
511    Prefactor:  8.540e-01  1.543e-01  0.000e+00  1.000e+01 ( 1.000e+00)
512        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
513        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
510   Normalization:  1.350e+00  2.227e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.05
Ra Dec: 207.757 0.487
Photon Index (Free Index): 2.59 +/- 0.72
Photon Flux (Free Index): 4.64e-08 +/- 4.49e-08
Energy Flux (Free Index): 1.23e-05 +/- 1.07e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/11957/cmap_HighResolution_270950401_271209601_4FGL_J1351.0+0029_daily_bin122.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='9.13e-03', comment='SUCCESS', photon_flux='4.11e-08', energy_flux2='1.23e-05', photon_flux_error='3.55e-08', dlogl='2.36e-02', energy_flux='1.28e-05', photon_flux2='4.64e-08', job_status='DONE', time_completed='2021-09-08 15:26:01.202517', photon_index_error2='0.72', photon_index2='2.59', ts='2.00', fit_tolerance='1e-08', GAL='0.85', photon_index_error='0.00', photon_flux_upper_limit='1.18e-07', energy_flux_error2='1.07e-05', EG='1.36', time_epoch_completed='1631139961.2', return_code='0', job_id='11957', GAL2='0.85', EG2='1.35', return_code2='0', energy_flux_error='1.11e-05', photon_flux_error2='4.49e-08', ts2='2.05', photon_index='2.44' WHERE bin_id='122' AND source_name='4FGL J1351.0+0029' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  8 15:26:01 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0244>
Subject: Job 11957: <4FGL_J1351.0+0029_daily_bin122> in cluster <slac> Done

Job <4FGL_J1351.0+0029_daily_bin122> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Wed Sep  8 15:10:25 2021
Job was executed on host(s) <bullet0244>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep  8 15:11:28 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Wed Sep  8 15:11:28 2021
Terminated at Wed Sep  8 15:26:01 2021
Results reported at Wed Sep  8 15:26:01 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1351.0+0029_daily_bin122 207.757 0.4873 270950401 271209601 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1351.0+0029 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   645.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             282.21 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   873 sec.
    Turnaround time :                            936 sec.

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

