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


Performing analysis on: 4FGL_J1351.0+0029_daily_bin614
RA = 207.757, Dec = 0.4873
tmin = 398476801, tmax = 398736001
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='15657', job_status='RUN', time_executed='2021-09-08 15:25:31.622831', time_epoch_executed='1631139931.62' WHERE source_name='4FGL J1351.0+0029' and cadence='daily' and bin_id='614'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/15657

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

Retrieving the FT1 file...

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

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

Retrieving 50 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/15657/ft1_4FGL_J1351.0+0029_daily_bin614.fits


Retrieving the FT1 file...

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

Retrieving 50 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/15657/ft2_4FGL_J1351.0+0029_daily_bin614.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/15657/ft1_4FGL_J1351.0+0029_daily_bin614.fits outfile=/scratch/kocevski/15657/ft1_filteredMKT_4FGL_J1351.0+0029_daily_bin614.fits ra=207.757 dec=0.4873 rad=12.0 tmin=398476801.0 tmax=398736001.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 7.65
user 7.31
sys 0.30

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/15657/ft1_filtered_4FGL_J1351.0+0029_daily_bin614.fits" evtable="EVENTS" scfile=/scratch/kocevski/15657/ft2_4FGL_J1351.0+0029_daily_bin614.fits sctable="SC_DATA" outfile=/scratch/kocevski/15657/ltcube_398476801_398736001_4FGL_J1351.0+0029_daily_bin614.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/15657/ft2_4FGL_J1351.0+0029_daily_bin614.fits
.....................!
real 15.85
user 15.46
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/15657/ft1_filtered_4FGL_J1351.0+0029_daily_bin614.fits evtable="EVENTS" scfile=/scratch/kocevski/15657/ft2_4FGL_J1351.0+0029_daily_bin614.fits sctable="SC_DATA" expcube=/scratch/kocevski/15657/ltcube_398476801_398736001_4FGL_J1351.0+0029_daily_bin614.fits outfile=/scratch/kocevski/15657/expmap_398476801_398736001_4FGL_J1351.0+0029_daily_bin614.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/15657/ltcube_398476801_398736001_4FGL_J1351.0+0029_daily_bin614.fits
.....................!
real 192.65
user 186.95
sys 5.28

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/15657/ft1_filtered_4FGL_J1351.0+0029_daily_bin614.fits scfile=/scratch/kocevski/15657/ft2_4FGL_J1351.0+0029_daily_bin614.fits outfile=/scratch/kocevski/15657/cmap_398476801_398736001_4FGL_J1351.0+0029_daily_bin614.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.61
user 0.40
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/15657/ft1_filtered_4FGL_J1351.0+0029_daily_bin614.fits scfile=/scratch/kocevski/15657/ft2_4FGL_J1351.0+0029_daily_bin614.fits outfile=/scratch/kocevski/15657/cmap_HighResolution_398476801_398736001_4FGL_J1351.0+0029_daily_bin614.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.57
user 0.40
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    7.0011       1.0000         .10000E-03   10000.    
     2 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    25.339       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .15384       1.0000         .10000E-03   10000.    
     5 'norm      '    4.1856       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    13.962       1.0000         .10000E-03   10000.    
     8 'Prefactor '    2.0104       1.0000         .10000E-03   10000.    
     9 'Prefactor '    16.885       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    8.8798       1.0000         .10000E-03   10000.    
    12 'Prefactor '    1.3291       1.0000         .10000E-03   10000.    
    13 'norm      '    3.9498       1.0000         .10000E-03   10000.    
    14 'Prefactor '    10.702       1.0000         .10000E-03   10000.    
    15 'norm      '    10.350       1.0000         .10000E-03   10000.    
    16 'norm      '    9.0297       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10552E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    27.409       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    20 'Normalizat'    .96057       1.0000         .10000E-01   10.000    
    21 'Prefactor '    .91833       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5140E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   4085.954     FROM MIGRAD    STATUS=CONVERGED     90 CALLS     1846 TOTAL
                     EDM=   .14E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          6.9975        1.5327        .14220E-06   -.23444E-03
   2  norm          .10000E-03    5.8120       -.38195E-06** at limit **
   3  Prefactor     25.327        1.6161        .10990E-06   -.18504E-02
   4  Prefactor     .10185E-03    677.91        .10198E-04** at limit **
   5  norm          4.1845        1.9861       -.10249E-06   -.22732E-03
   6  Prefactor     .10013E-03    30.620       -.58203E-05** at limit **
   7  norm          13.956        1.2648        .10818E-06   -.92558E-03
   8  Prefactor     2.0080        5.1585       -.42445E-05   -.32872E-03
   9  Prefactor     16.899        1.4562       -.85399E-07    .18786E-02
  10  Prefactor     .10000E-03    3.3970       -.23645E-06** at limit **
  11  norm          8.8797        5.8145        .60071E-06    .83187E-02
  12  Prefactor     1.2910        11.491        .37950E-05   -.18419E-02
  13  norm          3.9484        2.9670        .46686E-06    .37929E-03
  14  Prefactor     10.709        1.7542       -.24517E-06    .23962E-02
  15  norm          10.349        1.3211       -.21721E-07   -.44163E-03
  16  norm          9.0271        6.4724       -.22327E-07   -.88538E-02
  17  Prefactor     .10008E-03    32.022        .77997E-05** at limit **
  18  norm          27.398        1.5187       -.52748E-07    .15147E-02
  19  Prefactor     .10051E-03    21.166       -.21882E-06** at limit **
  20  Normalizat    .96090        .28343       -.18270E-05   -.11598E-03
  21  Prefactor     .91837        .19669        .37525E-06   -.11833E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 6.99748
  norm       = 0.0001
  Prefactor  = 25.3266
  Prefactor  = 0.000101849
  norm       = 4.18454
  Prefactor  = 0.000100128
  norm       = 13.9557
  Prefactor  = 2.00803
  Prefactor  = 16.8988
  Prefactor  = 0.0001
  norm       = 8.8797
  Prefactor  = 1.29098
  norm       = 3.94837
  Prefactor  = 10.7089
  norm       = 10.3486
  norm       = 9.02707
  Prefactor  = 0.000100084
  norm       = 27.3983
  Prefactor  = 0.000100514
  Normalizat = 0.960902
  Prefactor  = 0.918369
 **********
 **   18 **HESSE 
 **********

 FCN=   4085.954     FROM HESSE     STATUS=OK           367 CALLS     2213 TOTAL
                     EDM=   .61E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          6.9975        11.251        .37904E-02   -1.5179    
   2  norm          .10000E-03    5.8104        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     25.327        21.788        .19895E-02   -1.4701    
   4  Prefactor     .10185E-03    11.045        .97649E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          4.1845        1.9941        .49247E-02   -1.5299    
   6  Prefactor     .10013E-03    32.718        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          13.956        22.718        .26799E-02   -1.4961    
   8  Prefactor     2.0080        5.2004        .72996E-02   -1.5425    
   9  Prefactor     16.899        34.808        .24367E-02   -1.4886    
  10  Prefactor     .10000E-03    3.3773        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          8.8797        6.3567        .33627E-02   -1.5112    
  12  Prefactor     1.2910        82.281        .95258E-02   -1.5481    
  13  norm          3.9484        2.9871        .50742E-02   -1.5311    
  14  Prefactor     10.709        29.460        .30617E-02   -1.5053    
  15  norm          10.349        10.221        .31137E-02   -1.5064    
  16  norm          9.0271        7.7907        .33345E-02   -1.5107    
  17  Prefactor     .10008E-03    40.450        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          27.398        33.804        .19130E-02   -1.4661    
  19  Prefactor     .10051E-03    37.027        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Normalizat    .96090        .25599        .45671E-01   -.94352    
  21  Prefactor     .91837        .16975        .45238E-01   -.95502    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.10418e-07
Minuit parameter uncertainties:
  1  11.2545
  2  7.28365e-06
  3  21.7949
  4  0.00904091
  5  1.99418
  6  0.00410062
  7  22.7321
  8  5.20157
  9  34.8498
  10  5.01142e-06
  11  6.35715
  12  20.6418
  13  2.9872
  14  29.4996
  15  10.2231
  16  7.79162
  17  0.00369961
  18  33.8273
  19  0.00873004
  20  0.256316
  21  0.169849
Done.

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

Extracting fit parameters...

4FGL J1351.0+0029
   Spectrum: PowerLaw
252    Prefactor:  1.690e+01  3.485e+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.184e-01  1.698e-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:  9.609e-01  2.563e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/15657/likelihoodResults_398476801_398736001_4FGL_J1351.0+0029_daily_bin614.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) = 4085.75217072
delta logL = 0.202207567449

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 4085.73241373
delta logL = 0.221964558765

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    6.3899       1.0000         .10000E-03   10000.    
     2 'Index     '    3.4525       1.0000          .0000       10.000    
     3 'Normalizat'    .90318       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .94416       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=   4085.732     FROM MIGRAD    STATUS=CONVERGED     93 CALLS      296 TOTAL
                     EDM=   .85E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     6.3827        370.63        .15878E-03    .19296E-04
   2  Index         3.4531        6.4071        .63706E-02    .23736E-04
   3  Normalizat    .90315        .30036        .29355E-03    .10848E-03
   4  Prefactor     .94417        .20997        .20411E-03   -.21669E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 6.38269
  Index      = 3.45313
  Normalizat = 0.90315
  Prefactor  = 0.944166
 **********
 **   18 **HESSE 
 **********

 FCN=   4085.732     FROM HESSE     STATUS=OK            25 CALLS      321 TOTAL
                     EDM=   .63E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     6.3827        24.819        .63512E-05   -1.5203    
   2  Index         3.4531        2.0644        .25482E-03   -.31454    
   3  Normalizat    .90315        .29597        .11742E-04   -.96350    
   4  Prefactor     .94417        .20314        .40822E-04   -.94614    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.32208e-10
Minuit parameter uncertainties:
  1  24.8596
  2  2.13545
  3  0.296505
  4  0.203308
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/15657': 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) = 4085.73241366
delta logL = 0.221964622736

Extracting fit parameters...

4FGL J1351.0+0029
   Spectrum: PowerLaw
252    Prefactor:  6.383e+00  2.486e+01  1.000e-04  1.000e+04 ( 1.000e-13)
253        Index:  3.453e+00  2.135e+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:  9.442e-01  2.033e-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:  9.031e-01  2.965e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.38
Ra Dec: 207.757 0.487

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/15657/cmap_HighResolution_398476801_398736001_4FGL_J1351.0+0029_daily_bin614.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.30e-02', job_status='DONE', photon_flux_upper_limit='1.68e-07', time_completed='2021-09-08 15:33:56.040029', job_id='15657', GAL2='0.94', fit_tolerance='1e-08', EG2='0.90', EG='0.96', time_epoch_completed='1631140436.04', return_code2='0', ts='0.38', comment='SUCCESS', return_code='0', GAL='0.92', dlogl='2.22e-01', ts2='0.88', photon_index_error='0.00', photon_index='2.44' WHERE bin_id='614' AND source_name='4FGL J1351.0+0029' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  8 15:33:56 PDT 2021


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

Job <4FGL_J1351.0+0029_daily_bin614> was submitted from host <rhel6-64h> by user <kocevski> in cluster <slac> at Wed Sep  8 15:20:23 2021
Job was executed on host(s) <bullet0244>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep  8 15:21:33 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:21:33 2021
Terminated at Wed Sep  8 15:33:56 2021
Results reported at Wed Sep  8 15:33:56 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1351.0+0029_daily_bin614 207.757 0.4873 398476801 398736001 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 :                                   500.11 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             277.00 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   743 sec.
    Turnaround time :                            813 sec.

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

