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


Performing analysis on: 4FGL_J1351.0+0029_daily_bin413
RA = 207.757, Dec = 0.4873
tmin = 346377601, tmax = 346636801
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='13576', job_status='RUN', time_executed='2021-09-08 15:18:03.460494', time_epoch_executed='1631139483.46' WHERE source_name='4FGL J1351.0+0029' and cadence='daily' and bin_id='413'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/13576

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/13576/ft1_4FGL_J1351.0+0029_daily_bin413.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/13576/ft2_4FGL_J1351.0+0029_daily_bin413.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/13576/ft1_4FGL_J1351.0+0029_daily_bin413.fits outfile=/scratch/kocevski/13576/ft1_filteredMKT_4FGL_J1351.0+0029_daily_bin413.fits ra=207.757 dec=0.4873 rad=12.0 tmin=346377601.0 tmax=346636801.0 emin=100.0 emax=100000.0 zmin=0.0 zmax=90.0 evclass=128 evtype="INDEF" convtype=-1 phasemin=0.0 phasemax=1.0 evtable="EVENTS" chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

Done.
real 3.37
user 3.15
sys 0.19

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/13576/ft2_4FGL_J1351.0+0029_daily_bin413.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/13576/ft1_filteredMKT_4FGL_J1351.0+0029_daily_bin413.fits evtable="EVENTS" outfile="/scratch/kocevski/13576/ft1_filtered_4FGL_J1351.0+0029_daily_bin413.fits" apply_filter=yes overwrite=yes header_obstimes=yes tstart=0.0 tstop=0.0 gtifile="default" chatter=3 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

This is gtmktime version HEAD
Applying GTI filter:
IN_SAA!=T && LIVETIME>0 && gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nogrb.gti',(START+STOP)/2) && (angsep(RA_SUN,DEC_SUN,RA_ZENITH,DEC_ZENITH)>115 || gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nosolarflares.gti',(START+STOP)/2))
real 0.50
user 0.35
sys 0.14

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/13576/ft1_filtered_4FGL_J1351.0+0029_daily_bin413.fits" evtable="EVENTS" scfile=/scratch/kocevski/13576/ft2_4FGL_J1351.0+0029_daily_bin413.fits sctable="SC_DATA" outfile=/scratch/kocevski/13576/ltcube_346377601_346636801_4FGL_J1351.0+0029_daily_bin413.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/13576/ft2_4FGL_J1351.0+0029_daily_bin413.fits
.....................!
real 14.65
user 14.24
sys 0.35

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/13576/ft1_filtered_4FGL_J1351.0+0029_daily_bin413.fits evtable="EVENTS" scfile=/scratch/kocevski/13576/ft2_4FGL_J1351.0+0029_daily_bin413.fits sctable="SC_DATA" expcube=/scratch/kocevski/13576/ltcube_346377601_346636801_4FGL_J1351.0+0029_daily_bin413.fits outfile=/scratch/kocevski/13576/expmap_346377601_346636801_4FGL_J1351.0+0029_daily_bin413.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/13576/ltcube_346377601_346636801_4FGL_J1351.0+0029_daily_bin413.fits
.....................!
real 191.08
user 184.87
sys 5.71

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/13576/ft1_filtered_4FGL_J1351.0+0029_daily_bin413.fits scfile=/scratch/kocevski/13576/ft2_4FGL_J1351.0+0029_daily_bin413.fits outfile=/scratch/kocevski/13576/cmap_346377601_346636801_4FGL_J1351.0+0029_daily_bin413.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.36
sys 0.17

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/13576/ft1_filtered_4FGL_J1351.0+0029_daily_bin413.fits scfile=/scratch/kocevski/13576/ft2_4FGL_J1351.0+0029_daily_bin413.fits outfile=/scratch/kocevski/13576/cmap_HighResolution_346377601_346636801_4FGL_J1351.0+0029_daily_bin413.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.38
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10006E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    22.115       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10040E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    3.9358       1.0000         .10000E-03   10000.    
     5 'norm      '    1.5103       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    .10014E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    6.4646       1.0000         .10000E-03   10000.    
     9 'Prefactor '    53.497       1.0000         .10000E-03   10000.    
    10 'Prefactor '    2.6555       1.0000         .10000E-03   10000.    
    11 'norm      '    22.969       1.0000         .10000E-03   10000.    
    12 'Prefactor '    26.381       1.0000         .10000E-03   10000.    
    13 'norm      '    4.6421       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10373E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    25.618       1.0000         .10000E-03   10000.    
    16 'norm      '    .10039E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .50306E-01   1.0000         .10000E-03   10000.    
    18 'norm      '    .10886E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10024E-03   1.0000         .10000E-03   10000.    
    20 'Normalizat'    1.0843       1.0000         .10000E-01   10.000    
    21 'Prefactor '    .88448       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=   5904.508     FROM MIGRAD    STATUS=CONVERGED    462 CALLS     2260 TOTAL
                     EDM=   .14E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    3.5270        .25955E-07** at limit **
   2  norm          22.116        15.457        .92635E-07    .23985E-04
   3  Prefactor     .10000E-03    10.683        .48227E-07** at limit **
   4  Prefactor     3.9317        11.070        .87866E-05   -.50869E-03
   5  norm          1.5105        1.6408        .22790E-06   -.60228E-04
   6  Prefactor     .10000E-03    15.209        .17936E-05** at limit **
   7  norm          .10000E-03    13.300        .10655E-05** at limit **
   8  Prefactor     6.4634        4.7964        .72049E-07   -.60175E-04
   9  Prefactor     53.478        30.904       -.79967E-07   -.11312E-03
  10  Prefactor     2.6556        2.5513       -.23439E-07    .29923E-04
  11  norm          22.970        10.604       -.29055E-08   -.93953E-04
  12  Prefactor     26.376        15.820        .67010E-07   -.60325E-04
  13  norm          4.6414        3.4094        .64012E-07    .12768E-03
  14  Prefactor     .10000E-03    29.093        .24530E-06** at limit **
  15  norm          25.622        16.799        .23226E-06    .44787E-04
  16  norm          .10000E-03    13.927       -.28953E-05** at limit **
  17  Prefactor     .10093E-03    19.737       -.16529E-05** at limit **
  18  norm          .10006E-03    62.794        .12365E-04** at limit **
  19  Prefactor     .10003E-03    55.363       -.72809E-05** at limit **
  20  Normalizat    1.0847        .22008       -.12826E-05    .73421E-04
  21  Prefactor     .88407        .14678       -.34475E-06    .40207E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  norm       = 22.1164
  Prefactor  = 0.0001
  Prefactor  = 3.93172
  norm       = 1.51047
  Prefactor  = 0.000100002
  norm       = 0.000100001
  Prefactor  = 6.46336
  Prefactor  = 53.4777
  Prefactor  = 2.6556
  norm       = 22.9697
  Prefactor  = 26.3758
  norm       = 4.64137
  Prefactor  = 0.0001
  norm       = 25.6217
  norm       = 0.000100004
  Prefactor  = 0.000100925
  norm       = 0.000100061
  Prefactor  = 0.000100032
  Normalizat = 1.08472
  Prefactor  = 0.884066
 **********
 **   18 **HESSE 
 **********

 FCN=   5904.508     FROM HESSE     STATUS=OK           321 CALLS     2581 TOTAL
                     EDM=   .75E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    3.5451        .14094E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          22.116        15.455        .85174E-04   -1.4767    
   3  Prefactor     .10000E-03    10.747        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     3.9317        11.469        .10167E-02   -1.5311    
   5  norm          1.5105        1.6215        .96503E-04   -1.5462    
   6  Prefactor     .10000E-03    15.353        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .10000E-03    13.363        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     6.4634        4.8056        .13672E-03   -1.5199    
   9  Prefactor     53.478        30.968        .54838E-04   -1.4244    
  10  Prefactor     2.6556        2.5608        .11732E-03   -1.5382    
  11  norm          22.970        10.602        .83579E-04   -1.4749    
  12  Prefactor     26.376        15.828        .77995E-04   -1.4680    
  13  norm          4.6414        3.3993        .11468E-03   -1.5277    
  14  Prefactor     .10000E-03    29.552        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          25.622        16.815        .79146E-04   -1.4695    
  16  norm          .10000E-03    14.473        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10093E-03    181.75        .64658E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          .10006E-03    68.642        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10003E-03    57.759        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Normalizat    1.0847        .26116        .28599E-03   -.90244    
  21  Prefactor     .88407        .17513        .21899E-03   -.96700    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.47869e-09
Minuit parameter uncertainties:
  1  1.56089e-06
  2  15.458
  3  2.78747e-06
  4  11.4754
  5  1.62153
  6  0.000349113
  7  0.000193892
  8  4.80589
  9  30.977
  10  2.56089
  11  10.6029
  12  15.8305
  13  3.3994
  14  8.27945e-05
  15  16.818
  16  0.000458701
  17  0.0260173
  18  0.00410909
  19  0.00273187
  20  0.261474
  21  0.175245
Done.

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

Extracting fit parameters...

4FGL J1351.0+0029
   Spectrum: PowerLaw
252    Prefactor:  5.348e+01  3.098e+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.841e-01  1.752e-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.085e+00  2.615e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 4.66
Ra Dec: 207.757 0.487
Photon Index (Fixed Index): 2.44 +/- 0.00
Photon Flux (Fixed Index): 1.02e-07 +/- 5.89e-08
Energy Flux (Fixed Index): 3.18e-05 +/- 1.84e-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) = 5904.24440337
delta logL = 0.263806856335

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5904.20049065
delta logL = 0.307719572873

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    34.353       1.0000         .10000E-03   10000.    
     2 'Index     '    2.8388       1.0000          .0000       10.000    
     3 'Normalizat'    1.0503       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .90086       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=   5904.200     FROM MIGRAD    STATUS=CONVERGED     81 CALLS      270 TOTAL
                     EDM=   .23E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     34.348        36.148        .68371E-04   -.16877E-03
   2  Index         2.8397        .62146        .43390E-02   -.73093E-04
   3  Normalizat    1.0505        .25410        .28988E-03   -.38314E-03
   4  Prefactor     .90074        .17541        .21716E-03   -.40160E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 34.3485
  Index      = 2.83975
  Normalizat = 1.05051
  Prefactor  = 0.900742
 **********
 **   18 **HESSE 
 **********

 FCN=   5904.200     FROM HESSE     STATUS=OK            25 CALLS      295 TOTAL
                     EDM=   .23E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     34.348        32.282        .27348E-05   -1.4535    
   2  Index         2.8397        .55472        .17356E-03   -.44677    
   3  Normalizat    1.0505        .25391        .57976E-04   -.91357    
   4  Prefactor     .90074        .17524        .43432E-04   -.96115    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.32723e-10
Minuit parameter uncertainties:
  1  32.2981
  2  0.556129
  3  0.254203
  4  0.175346
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/13576': 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) = 5904.20048488
delta logL = 0.30772534344

Extracting fit parameters...

4FGL J1351.0+0029
   Spectrum: PowerLaw
252    Prefactor:  3.435e+01  3.230e+01  1.000e-04  1.000e+04 ( 1.000e-13)
253        Index:  2.840e+00  5.561e-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.007e-01  1.753e-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.051e+00  2.542e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 5.33
Ra Dec: 207.757 0.487
Photon Index (Free Index): 2.84 +/- 0.56
Photon Flux (Free Index): 1.29e-07 +/- 7.25e-08
Energy Flux (Free Index): 2.82e-05 +/- 1.54e-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/13576/cmap_HighResolution_346377601_346636801_4FGL_J1351.0+0029_daily_bin413.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='1.02e-07', energy_flux2='2.82e-05', photon_flux_error='5.89e-08', dlogl='3.08e-01', energy_flux='3.18e-05', photon_flux2='1.29e-07', job_status='DONE', time_completed='2021-09-08 15:26:44.608490', photon_index_error2='0.56', photon_index2='2.84', ts='4.66', fit_tolerance='1e-08', GAL='0.88', photon_index_error='0.00', energy_flux_error2='1.54e-05', EG='1.08', time_epoch_completed='1631140004.61', return_code='0', job_id='13576', GAL2='0.90', EG2='1.05', return_code2='0', energy_flux_error='1.84e-05', photon_flux_error2='7.25e-08', ts2='5.33', photon_index='2.44' WHERE bin_id='413' AND source_name='4FGL J1351.0+0029' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  8 15:26:44 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0066>
Subject: Job 13576: <4FGL_J1351.0+0029_daily_bin413> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1351.0+0029_daily_bin413 207.757 0.4873 346377601 346636801 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 :                                   520.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             320.67 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              7
    Max Threads :                                21
    Run time :                                   681 sec.
    Turnaround time :                            683 sec.

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

