/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 147 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 = 7391
number of fields = 29
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J1351.0+0029_daily_bin493
RA = 207.757, Dec = 0.4873
tmin = 367113601, tmax = 367372801
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='13742', job_status='RUN', time_executed='2021-09-08 15:18:14.818111', time_epoch_executed='1631139494.82' WHERE source_name='4FGL J1351.0+0029' and cadence='daily' and bin_id='493'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/13742

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

Retrieving the FT1 file...

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

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

Retrieving 50 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/13742/ft1_4FGL_J1351.0+0029_daily_bin493.fits


Retrieving the FT1 file...

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

Retrieving 50 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/13742/ft2_4FGL_J1351.0+0029_daily_bin493.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/13742/ft1_4FGL_J1351.0+0029_daily_bin493.fits outfile=/scratch/kocevski/13742/ft1_filteredMKT_4FGL_J1351.0+0029_daily_bin493.fits ra=207.757 dec=0.4873 rad=12.0 tmin=367113601.0 tmax=367372801.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 5.27
user 5.00
sys 0.24

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/13742/ft2_4FGL_J1351.0+0029_daily_bin493.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/13742/ft1_filteredMKT_4FGL_J1351.0+0029_daily_bin493.fits evtable="EVENTS" outfile="/scratch/kocevski/13742/ft1_filtered_4FGL_J1351.0+0029_daily_bin493.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/13742/ft1_filtered_4FGL_J1351.0+0029_daily_bin493.fits" evtable="EVENTS" scfile=/scratch/kocevski/13742/ft2_4FGL_J1351.0+0029_daily_bin493.fits sctable="SC_DATA" outfile=/scratch/kocevski/13742/ltcube_367113601_367372801_4FGL_J1351.0+0029_daily_bin493.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/13742/ft2_4FGL_J1351.0+0029_daily_bin493.fits
.....................!
real 14.79
user 14.40
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/13742/ft1_filtered_4FGL_J1351.0+0029_daily_bin493.fits evtable="EVENTS" scfile=/scratch/kocevski/13742/ft2_4FGL_J1351.0+0029_daily_bin493.fits sctable="SC_DATA" expcube=/scratch/kocevski/13742/ltcube_367113601_367372801_4FGL_J1351.0+0029_daily_bin493.fits outfile=/scratch/kocevski/13742/expmap_367113601_367372801_4FGL_J1351.0+0029_daily_bin493.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/13742/ltcube_367113601_367372801_4FGL_J1351.0+0029_daily_bin493.fits
.....................!
real 193.49
user 188.31
sys 4.34

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/13742/ft1_filtered_4FGL_J1351.0+0029_daily_bin493.fits scfile=/scratch/kocevski/13742/ft2_4FGL_J1351.0+0029_daily_bin493.fits outfile=/scratch/kocevski/13742/cmap_367113601_367372801_4FGL_J1351.0+0029_daily_bin493.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.40
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/13742/ft1_filtered_4FGL_J1351.0+0029_daily_bin493.fits scfile=/scratch/kocevski/13742/ft2_4FGL_J1351.0+0029_daily_bin493.fits outfile=/scratch/kocevski/13742/cmap_HighResolution_367113601_367372801_4FGL_J1351.0+0029_daily_bin493.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.41
sys 0.14

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    4.1374       1.0000         .10000E-03   10000.    
     2 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10013E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    4.9881       1.0000         .10000E-03   10000.    
     5 'norm      '    1.6222       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    .10009E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    3.0490       1.0000         .10000E-03   10000.    
     9 'Prefactor '    37.139       1.0000         .10000E-03   10000.    
    10 'Prefactor '    1.0424       1.0000         .10000E-03   10000.    
    11 'norm      '    5.2617       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    4.9087       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    11.467       1.0000         .10000E-03   10000.    
    16 'norm      '    2.6705       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    .10007E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    58.088       1.0000         .10000E-03   10000.    
    20 'Normalizat'    1.1954       1.0000         .10000E-01   10.000    
    21 'Prefactor '    .97649       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=   6952.048     FROM MIGRAD    STATUS=CONVERGED    431 CALLS     2165 TOTAL
                     EDM=   .48E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          4.1363        8.5453        .31933E-06   -.27229E-04
   2  norm          .10000E-03    4.7351        .12839E-07** at limit **
   3  Prefactor     .10000E-03    34.148        .50579E-06** at limit **
   4  Prefactor     4.9883        12.785        .33756E-06   -.13606E-04
   5  norm          1.6222        1.2791        .56741E-07   -.81497E-04
   6  Prefactor     .10000E-03    34.798        .29618E-07** at limit **
   7  norm          .10000E-03    23.437        .64728E-07** at limit **
   8  Prefactor     3.0491        3.0201        .60223E-07   -.40374E-04
   9  Prefactor     37.136        27.243       -.14412E-06   -.40622E-04
  10  Prefactor     1.0428        3.5432        .12536E-05   -.11631E-03
  11  norm          5.2613        5.9109        .35081E-05   -.71952E-03
  12  Prefactor     .10000E-03    4.9399        .72283E-08** at limit **
  13  norm          4.9083        2.5536       -.81673E-07   -.66314E-04
  14  Prefactor     .10000E-03    9.4774       -.37384E-07** at limit **
  15  norm          11.466        10.284       -.19523E-06    .37342E-04
  16  norm          2.6700        7.9958        .70868E-06   -.42790E-04
  17  Prefactor     .10000E-03    11.971       -.48328E-06** at limit **
  18  norm          .10000E-03    11.344        .50642E-06** at limit **
  19  Prefactor     58.027        66.576       -.93323E-05   -.28565E-03
  20  Normalizat    1.1952        .20529       -.33147E-06   -.37148E-04
  21  Prefactor     .97657        .14221       -.24377E-06   -.39715E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 4.1363
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 4.98832
  norm       = 1.62216
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 3.04909
  Prefactor  = 37.1361
  Prefactor  = 1.04275
  norm       = 5.26133
  Prefactor  = 0.0001
  norm       = 4.90831
  Prefactor  = 0.0001
  norm       = 11.4663
  norm       = 2.66998
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 58.0269
  Normalizat = 1.19521
  Prefactor  = 0.976575
 **********
 **   18 **HESSE 
 **********

 FCN=   6952.048     FROM HESSE     STATUS=OK           319 CALLS     2484 TOTAL
                     EDM=   .11E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          4.1363        8.5378        .19817E-03   -1.5301    
   2  norm          .10000E-03    4.7393        .17720E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    34.666        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     4.9883        12.803        .18006E-03   -1.5261    
   5  norm          1.6222        1.2665        .79874E-04   -1.5453    
   6  Prefactor     .10000E-03    34.819        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .10000E-03    23.614        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     3.0491        3.0142        .13935E-03   -1.5359    
   9  Prefactor     37.136        27.394        .65764E-04   -1.4488    
  10  Prefactor     1.0428        3.5158        .28113E-03   -1.5504    
  11  norm          5.2613        6.1094        .87614E-03   -1.5249    
  12  Prefactor     .10000E-03    4.9501        .18093E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          4.9083        2.5448        .90559E-04   -1.5265    
  14  Prefactor     .10000E-03    9.5028        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          11.466        10.291        .59153E-03   -1.5031    
  16  norm          2.6700        7.9738        .24939E-03   -1.5381    
  17  Prefactor     .10000E-03    11.995        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          .10000E-03    11.382        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     58.027        71.168        .26319E-03   -1.4183    
  20  Normalizat    1.1952        .24661        .28552E-03   -.86751    
  21  Prefactor     .97657        .17103        .21910E-03   -.93514    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.12818e-09
Minuit parameter uncertainties:
  1  8.54028
  2  3.20215e-07
  3  1.97418e-05
  4  12.8099
  5  1.26649
  6  6.09124e-06
  7  5.61278e-07
  8  3.01439
  9  27.4034
  10  3.51646
  11  6.11017
  12  3.91589e-06
  13  2.54481
  14  6.18264e-07
  15  10.2928
  16  7.97696
  17  3.13656e-05
  18  5.78491e-05
  19  71.2722
  20  0.246847
  21  0.171128
Done.

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

Extracting fit parameters...

4FGL J1351.0+0029
   Spectrum: PowerLaw
252    Prefactor:  3.714e+01  2.740e+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.766e-01  1.711e-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.195e+00  2.468e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 2.54
Ra Dec: 207.757 0.487
Photon Index (Fixed Index): 2.44 +/- 0.00
Photon Flux (Fixed Index): 7.07e-08 +/- 5.21e-08
Energy Flux (Fixed Index): 2.21e-05 +/- 1.63e-05

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

Saving results to:
/scratch/kocevski/13742/likelihoodResults_367113601_367372801_4FGL_J1351.0+0029_daily_bin493.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) = 6950.84050307
delta logL = 1.20778054031

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6950.83062473
delta logL = 1.21765887272

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    13.491       1.0000         .10000E-03   10000.    
     2 'Index     '    3.3898       1.0000          .0000       10.000    
     3 'Normalizat'    1.1110       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0142       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.

 FCN=   6950.831     FROM MIGRAD    STATUS=CONVERGED     57 CALLS      260 TOTAL
                     EDM=   .58E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     13.479        113.92        .27263E-02    .19527E-03
   2  Index         3.3904        2.5984        .10242        .20292E-03
   3  Normalizat    1.1110        .80930E-01    .66543E-01    .11692E-04
   4  Prefactor     1.0142        .55018E-01    .42776E-01   -.21006E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 13.479
  Index      = 3.39036
  Normalizat = 1.11102
  Prefactor  = 1.01416
 **********
 **   18 **HESSE 
 **********

 FCN=   6950.831     FROM HESSE     STATUS=OK            33 CALLS      293 TOTAL
                     EDM=   .43E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     13.479        25.158        .10905E-03   -1.4974    
   2  Index         3.3904        .99883        .39906E-02   -.32776    
   3  Normalizat    1.1110        .24919        .29439E-03   -.89399    
   4  Prefactor     1.0142        .17167        .21536E-03   -.92259    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.2944e-11
Minuit parameter uncertainties:
  1  25.1779
  2  1.00639
  3  0.249451
  4  0.171764
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/13742': 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) = 6950.83062441
delta logL = 1.21765919244

Extracting fit parameters...

4FGL J1351.0+0029
   Spectrum: PowerLaw
252    Prefactor:  1.348e+01  2.518e+01  1.000e-04  1.000e+04 ( 1.000e-13)
253        Index:  3.390e+00  1.006e+00  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:  1.014e+00  1.718e-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.111e+00  2.495e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 5.18
Ra Dec: 207.757 0.487
Photon Index (Free Index): 3.39 +/- 1.01
Photon Flux (Free Index): 1.39e-07 +/- 7.38e-08
Energy Flux (Free Index): 2.38e-05 +/- 1.33e-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/13742/cmap_HighResolution_367113601_367372801_4FGL_J1351.0+0029_daily_bin493.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.33e-02', comment='SUCCESS', photon_flux='7.07e-08', energy_flux2='2.38e-05', photon_flux_error='5.21e-08', dlogl='1.22e+00', energy_flux='2.21e-05', photon_flux2='1.39e-07', job_status='DONE', time_completed='2021-09-08 15:28:35.064645', photon_index_error2='1.01', photon_index2='3.39', ts='2.54', fit_tolerance='1e-08', GAL='0.98', photon_index_error='0.00', photon_flux_upper_limit='1.72e-07', energy_flux_error2='1.33e-05', EG='1.20', time_epoch_completed='1631140115.06', return_code='0', job_id='13742', GAL2='1.01', EG2='1.11', return_code2='0', energy_flux_error='1.63e-05', photon_flux_error2='7.38e-08', ts2='5.18', photon_index='2.44' WHERE bin_id='493' AND source_name='4FGL J1351.0+0029' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  8 15:28:35 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0266>
Subject: Job 13742: <4FGL_J1351.0+0029_daily_bin493> in cluster <slac> Done

Job <4FGL_J1351.0+0029_daily_bin493> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Wed Sep  8 15:15:33 2021
Job was executed on host(s) <bullet0266>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep  8 15:15:39 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:15:39 2021
Terminated at Wed Sep  8 15:28:35 2021
Results reported at Wed Sep  8 15:28:35 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1351.0+0029_daily_bin493 207.757 0.4873 367113601 367372801 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 :                                   615.48 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             243.40 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   776 sec.
    Turnaround time :                            782 sec.

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

