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


Performing analysis on: 4FGL_J1351.0+0029_daily_bin179
RA = 207.757, Dec = 0.4873
tmin = 285724801, tmax = 285984001
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='12047', job_status='RUN', time_executed='2021-09-08 15:13:59.652057', time_epoch_executed='1631139239.65' WHERE source_name='4FGL J1351.0+0029' and cadence='daily' and bin_id='179'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/12047

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

Retrieving the FT1 file...

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

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

Retrieving 48 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/12047/ft1_4FGL_J1351.0+0029_daily_bin179.fits


Retrieving the FT1 file...

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

Retrieving 48 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/12047/ft2_4FGL_J1351.0+0029_daily_bin179.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/12047/ft1_4FGL_J1351.0+0029_daily_bin179.fits outfile=/scratch/kocevski/12047/ft1_filteredMKT_4FGL_J1351.0+0029_daily_bin179.fits ra=207.757 dec=0.4873 rad=12.0 tmin=285724801.0 tmax=285984001.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.18
user 3.92
sys 0.23

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/12047/ft2_4FGL_J1351.0+0029_daily_bin179.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/12047/ft1_filteredMKT_4FGL_J1351.0+0029_daily_bin179.fits evtable="EVENTS" outfile="/scratch/kocevski/12047/ft1_filtered_4FGL_J1351.0+0029_daily_bin179.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.51
user 0.35
sys 0.15

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/12047/ft1_filtered_4FGL_J1351.0+0029_daily_bin179.fits evtable="EVENTS" scfile=/scratch/kocevski/12047/ft2_4FGL_J1351.0+0029_daily_bin179.fits sctable="SC_DATA" expcube=/scratch/kocevski/12047/ltcube_285724801_285984001_4FGL_J1351.0+0029_daily_bin179.fits outfile=/scratch/kocevski/12047/expmap_285724801_285984001_4FGL_J1351.0+0029_daily_bin179.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/12047/ltcube_285724801_285984001_4FGL_J1351.0+0029_daily_bin179.fits
.....................!
real 191.78
user 186.44
sys 4.75

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/12047/ft1_filtered_4FGL_J1351.0+0029_daily_bin179.fits scfile=/scratch/kocevski/12047/ft2_4FGL_J1351.0+0029_daily_bin179.fits outfile=/scratch/kocevski/12047/cmap_285724801_285984001_4FGL_J1351.0+0029_daily_bin179.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.55
user 0.37
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/12047/ft1_filtered_4FGL_J1351.0+0029_daily_bin179.fits scfile=/scratch/kocevski/12047/ft2_4FGL_J1351.0+0029_daily_bin179.fits outfile=/scratch/kocevski/12047/cmap_HighResolution_285724801_285984001_4FGL_J1351.0+0029_daily_bin179.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.56
user 0.39
sys 0.16

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/12047/ft1_filtered_4FGL_J1351.0+0029_daily_bin179.fits', '/scratch/kocevski/12047/ft2_4FGL_J1351.0+0029_daily_bin179.fits', expMap='/scratch/kocevski/12047/expmap_285724801_285984001_4FGL_J1351.0+0029_daily_bin179.fits', expCube='/scratch/kocevski/12047/ltcube_285724801_285984001_4FGL_J1351.0+0029_daily_bin179.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/12047/Model_4FGL_J1351.0+0029_daily_bin179.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/12047/ft1_filtered_4FGL_J1351.0+0029_daily_bin179.fits
Spacecraft file(s): /scratch/kocevski/12047/ft2_4FGL_J1351.0+0029_daily_bin179.fits
Exposure map: /scratch/kocevski/12047/expmap_285724801_285984001_4FGL_J1351.0+0029_daily_bin179.fits
Exposure cube: /scratch/kocevski/12047/ltcube_285724801_285984001_4FGL_J1351.0+0029_daily_bin179.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/12047/Model_4FGL_J1351.0+0029_daily_bin179.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) = 4783.77455538

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    1.7084       1.0000         .10000E-03   10000.    
     2 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    10.742       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    1.6533       1.0000         .10000E-03   10000.    
     6 'Prefactor '    20.619       1.0000         .10000E-03   10000.    
     7 'norm      '    17.804       1.0000         .10000E-03   10000.    
     8 'Prefactor '    3.7293       1.0000         .10000E-03   10000.    
     9 'Prefactor '    24.162       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .51539       1.0000         .10000E-03   10000.    
    11 'norm      '    .10214E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10067E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    4.5144       1.0000         .10000E-03   10000.    
    14 'Prefactor '    20.185       1.0000         .10000E-03   10000.    
    15 'norm      '    9.9484       1.0000         .10000E-03   10000.    
    16 'norm      '    3.8735       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10035E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    20 'Normalizat'    1.1806       1.0000         .10000E-01   10.000    
    21 'Prefactor '    .96434       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=   4783.769     FROM MIGRAD    STATUS=CONVERGED    438 CALLS     2166 TOTAL
                     EDM=   .14E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          1.7042        15.788       -.11372E-05   -.23720E-03
   2  norm          .10000E-03    5.3145       -.49139E-07** at limit **
   3  Prefactor     10.722        24.981       -.25718E-04    .84782E-05
   4  Prefactor     .10000E-03    8.0462       -.30386E-06** at limit **
   5  norm          1.6529        1.6386       -.33450E-07   -.78066E-04
   6  Prefactor     20.615        47.687       -.73853E-05    .59743E-05
   7  norm          17.805        18.836        .19689E-06    .94087E-05
   8  Prefactor     3.7288        3.4096       -.48134E-06    .52152E-04
   9  Prefactor     24.161        20.464       -.57872E-06    .32357E-04
  10  Prefactor     .51550        2.6518       -.16298E-05   -.12603E-02
  11  norm          .10000E-03    15.272        .54006E-06** at limit **
  12  Prefactor     .10000E-03    3.6098       -.91351E-07** at limit **
  13  norm          4.5147        3.3005       -.41384E-06   -.99354E-04
  14  Prefactor     20.172        28.084       -.15912E-04    .21481E-04
  15  norm          9.9495        22.987       -.54079E-06   -.10101E-04
  16  norm          3.8735        5.0734       -.22043E-06    .20515E-05
  17  Prefactor     .10000E-03    37.664        .17538E-05** at limit **
  18  norm          .10000E-03    24.511       -.84351E-05** at limit **
  19  Prefactor     .10000E-03    28.005        .74688E-05** at limit **
  20  Normalizat    1.1808        .24544        .77614E-05   -.11251E-03
  21  Prefactor     .96422        .16892       -.33268E-06    .30609E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 1.70419
  norm       = 0.0001
  Prefactor  = 10.7219
  Prefactor  = 0.0001
  norm       = 1.65292
  Prefactor  = 20.6147
  norm       = 17.8048
  Prefactor  = 3.72884
  Prefactor  = 24.1608
  Prefactor  = 0.515495
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 4.5147
  Prefactor  = 20.1716
  norm       = 9.94949
  norm       = 3.87353
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Normalizat = 1.18082
  Prefactor  = 0.964222
 **********
 **   18 **HESSE 
 **********

 FCN=   4783.769     FROM HESSE     STATUS=OK           321 CALLS     2487 TOTAL
                     EDM=   .31E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          1.7042        15.897        .32166E-03   -1.5447    
   2  norm          .10000E-03    5.3148        .15573E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     10.722        24.847        .12224E-03   -1.5053    
   4  Prefactor     .10000E-03    8.0866        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          1.6529        1.6281        .84059E-04   -1.5451    
   6  Prefactor     20.615        47.660        .88208E-04   -1.4800    
   7  norm          17.805        18.837        .94920E-04   -1.4864    
   8  Prefactor     3.7288        3.4129        .11772E-03   -1.5322    
   9  Prefactor     24.161        20.470        .81492E-04   -1.4724    
  10  Prefactor     .51550        2.6189        .22255E-03   -1.5564    
  11  norm          .10000E-03    15.705        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    3.6116        .12833E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          4.5147        3.3001        .10312E-03   -1.5283    
  14  Prefactor     20.172        28.031        .89149E-04   -1.4809    
  15  norm          9.9495        23.065        .12704E-03   -1.5077    
  16  norm          3.8735        5.0680        .17375E-03   -1.5314    
  17  Prefactor     .10000E-03    37.888        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          .10000E-03    24.574        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    27.990        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Normalizat    1.1808        .29315        .27852E-03   -.87198    
  21  Prefactor     .96422        .20391        .21712E-03   -.93932    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.11736e-09
Minuit parameter uncertainties:
  1  10.4131
  2  6.20499e-07
  3  24.8711
  4  3.89731e-05
  5  1.62817
  6  47.7482
  7  18.8432
  8  3.41308
  9  20.4756
  10  2.32373
  11  0.000123673
  12  1.44842e-05
  13  3.30022
  14  28.0494
  15  23.0861
  16  5.06859
  17  0.000106591
  18  2.55334e-05
  19  8.3484e-06
  20  0.293555
  21  0.20407
Done.

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

Extracting fit parameters...

4FGL J1351.0+0029
   Spectrum: PowerLaw
252    Prefactor:  2.416e+01  2.048e+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:  9.642e-01  2.041e-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.181e+00  2.936e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 3.89
Ra Dec: 207.757 0.487
Photon Index (Fixed Index): 2.44 +/- 0.00
Photon Flux (Fixed Index): 4.60e-08 +/- 3.90e-08
Energy Flux (Fixed Index): 1.44e-05 +/- 1.22e-05

TS (Fixed Index): 3.89
Ra Dec: 207.757 0.487
Photon Flux Upper Limit: 1.44e-07 ph cm-2 s-1
Energy Flux Upper Limit: 1.12e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/12047/likelihoodResults_285724801_285984001_4FGL_J1351.0+0029_daily_bin179.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) = 4782.95222152
delta logL = 0.816341084637

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4782.85136698
delta logL = 0.917195621506

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    36.647       1.0000         .10000E-03   10000.    
     2 'Index     '    1.6781       1.0000          .0000       10.000    
     3 'Normalizat'    1.2068       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .95192       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=   4782.851     FROM MIGRAD    STATUS=CONVERGED     78 CALLS      239 TOTAL
                     EDM=   .11E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     36.654        30.796        .33101E-03   -.51655E-04
   2  Index         1.6781        .49895        .78071E-02   -.96473E-05
   3  Normalizat    1.2069        .27754        .27586E-03   -.25208E-03
   4  Prefactor     .95192        .19892        .21827E-03   -.27400E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 36.6539
  Index      = 1.67811
  Normalizat = 1.20685
  Prefactor  = 0.951923
 **********
 **   18 **HESSE 
 **********

 FCN=   4782.851     FROM HESSE     STATUS=OK            25 CALLS      264 TOTAL
                     EDM=   .11E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     36.654        30.956        .13241E-04   -1.4496    
   2  Index         1.6781        .50157        .31229E-03   -.72666    
   3  Normalizat    1.2069        .27778        .55173E-04   -.86391    
   4  Prefactor     .95192        .19910        .43654E-04   -.94350    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.0996e-10
Minuit parameter uncertainties:
  1  30.9692
  2  0.503091
  3  0.278121
  4  0.199256
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/12047': 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) = 4782.85136695
delta logL = 0.917195649537

Extracting fit parameters...

4FGL J1351.0+0029
   Spectrum: PowerLaw
252    Prefactor:  3.665e+01  3.097e+01  1.000e-04  1.000e+04 ( 1.000e-13)
253        Index:  1.678e+00  5.031e-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:  9.519e-01  1.993e-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.207e+00  2.781e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 5.74
Ra Dec: 207.757 0.487
Photon Index (Free Index): 1.68 +/- 0.50
Photon Flux (Free Index): 2.55e-08 +/- 2.65e-08
Energy Flux (Free Index): 4.47e-05 +/- 5.78e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/12047/cmap_HighResolution_285724801_285984001_4FGL_J1351.0+0029_daily_bin179.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.12e-02', comment='SUCCESS', photon_flux='4.60e-08', energy_flux2='4.47e-05', photon_flux_error='3.90e-08', dlogl='9.17e-01', energy_flux='1.44e-05', photon_flux2='2.55e-08', job_status='DONE', time_completed='2021-09-08 15:22:52.623230', photon_index_error2='0.50', photon_index2='1.68', ts='3.89', fit_tolerance='1e-08', GAL='0.96', photon_index_error='0.00', photon_flux_upper_limit='1.44e-07', energy_flux_error2='5.78e-05', EG='1.18', time_epoch_completed='1631139772.62', return_code='0', job_id='12047', GAL2='0.95', EG2='1.21', return_code2='0', energy_flux_error='1.22e-05', photon_flux_error2='2.65e-08', ts2='5.74', photon_index='2.44' WHERE bin_id='179' AND source_name='4FGL J1351.0+0029' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  8 15:22:52 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0080>
Subject: Job 12047: <4FGL_J1351.0+0029_daily_bin179> in cluster <slac> Done

Job <4FGL_J1351.0+0029_daily_bin179> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Wed Sep  8 15:10:31 2021
Job was executed on host(s) <bullet0080>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep  8 15:11:45 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:45 2021
Terminated at Wed Sep  8 15:22:53 2021
Results reported at Wed Sep  8 15:22:53 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1351.0+0029_daily_bin179 207.757 0.4873 285724801 285984001 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 :                                   522.03 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             273.57 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   667 sec.
    Turnaround time :                            742 sec.

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

