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


Performing analysis on: 4FGL_J1351.0+0029_daily_bin276
RA = 207.757, Dec = 0.4873
tmin = 310867201, tmax = 311126401
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='12187', job_status='RUN', time_executed='2021-09-08 15:16:01.654498', time_epoch_executed='1631139361.65' WHERE source_name='4FGL J1351.0+0029' and cadence='daily' and bin_id='276'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/12187

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/12187/ft1_4FGL_J1351.0+0029_daily_bin276.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/12187/ft2_4FGL_J1351.0+0029_daily_bin276.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/12187/ft1_4FGL_J1351.0+0029_daily_bin276.fits outfile=/scratch/kocevski/12187/ft1_filteredMKT_4FGL_J1351.0+0029_daily_bin276.fits ra=207.757 dec=0.4873 rad=12.0 tmin=310867201.0 tmax=311126401.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.55
user 3.32
sys 0.22

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/12187/ft1_filtered_4FGL_J1351.0+0029_daily_bin276.fits" evtable="EVENTS" scfile=/scratch/kocevski/12187/ft2_4FGL_J1351.0+0029_daily_bin276.fits sctable="SC_DATA" outfile=/scratch/kocevski/12187/ltcube_310867201_311126401_4FGL_J1351.0+0029_daily_bin276.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/12187/ft2_4FGL_J1351.0+0029_daily_bin276.fits
.....................!
real 14.38
user 13.99
sys 0.36

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/12187/ft1_filtered_4FGL_J1351.0+0029_daily_bin276.fits evtable="EVENTS" scfile=/scratch/kocevski/12187/ft2_4FGL_J1351.0+0029_daily_bin276.fits sctable="SC_DATA" expcube=/scratch/kocevski/12187/ltcube_310867201_311126401_4FGL_J1351.0+0029_daily_bin276.fits outfile=/scratch/kocevski/12187/expmap_310867201_311126401_4FGL_J1351.0+0029_daily_bin276.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/12187/ltcube_310867201_311126401_4FGL_J1351.0+0029_daily_bin276.fits
.....................!
real 191.01
user 186.04
sys 4.57

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/12187/ft1_filtered_4FGL_J1351.0+0029_daily_bin276.fits scfile=/scratch/kocevski/12187/ft2_4FGL_J1351.0+0029_daily_bin276.fits outfile=/scratch/kocevski/12187/cmap_310867201_311126401_4FGL_J1351.0+0029_daily_bin276.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.38
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/12187/ft1_filtered_4FGL_J1351.0+0029_daily_bin276.fits scfile=/scratch/kocevski/12187/ft2_4FGL_J1351.0+0029_daily_bin276.fits outfile=/scratch/kocevski/12187/cmap_HighResolution_310867201_311126401_4FGL_J1351.0+0029_daily_bin276.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=500 nypix=500 binsz=0.1 coordsys="CEL" xref=207.757 yref=0.4873 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

This is gtbin version HEAD
real 0.55
user 0.38
sys 0.17

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    12.403       1.0000         .10000E-03   10000.    
     2 'norm      '    .10602E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    1.0662       1.0000         .10000E-03   10000.    
     4 'Prefactor '    17.044       1.0000         .10000E-03   10000.    
     5 'norm      '    7.6856       1.0000         .10000E-03   10000.    
     6 'Prefactor '    115.78       1.0000         .10000E-03   10000.    
     7 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    5.5605       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10081E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .53852       1.0000         .10000E-03   10000.    
    11 'norm      '    3.7740       1.0000         .10000E-03   10000.    
    12 'Prefactor '    7.3004       1.0000         .10000E-03   10000.    
    13 'norm      '    7.9365       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    14.575       1.0000         .10000E-03   10000.    
    16 'norm      '    .10004E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    5.6853       1.0000         .10000E-03   10000.    
    18 'norm      '    .10968E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    133.22       1.0000         .10000E-03   10000.    
    20 'Normalizat'    1.2339       1.0000         .10000E-01   10.000    
    21 'Prefactor '    .90752       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=   7926.005     FROM MIGRAD    STATUS=CONVERGED    431 CALLS     2212 TOTAL
                     EDM=   .30E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          12.403        10.484        .88307E-07    .25185E-04
   2  norm          .10000E-03    16.888       -.12663E-05** at limit **
   3  Prefactor     1.0570        9.4054       -.45438E-06    .12528E-03
   4  Prefactor     17.045        9.7020        .43262E-07    .25628E-05
   5  norm          7.6858        1.8063        .28799E-07    .89712E-04
   6  Prefactor     115.79        77.094       -.29870E-06   -.60264E-06
   7  norm          .10000E-03    6.9059        .41655E-07** at limit **
   8  Prefactor     5.5609        3.9274       -.37359E-07    .18358E-05
   9  Prefactor     .10000E-03    12.794       -.43928E-07** at limit **
  10  Prefactor     .53720        3.6006       -.25324E-06    .20340E-04
  11  norm          3.7738        3.8449        .28167E-07    .12052E-05
  12  Prefactor     7.3023        10.872        .10737E-06    .23079E-05
  13  norm          7.9366        2.6979        .25753E-07    .52948E-05
  14  Prefactor     .10000E-03    6.7557       -.26649E-07** at limit **
  15  norm          14.575        10.640        .31343E-07    .59655E-06
  16  norm          .10000E-03    1.9868       -.39729E-07** at limit **
  17  Prefactor     5.6872        20.232        .12621E-06   -.12701E-05
  18  norm          .10000E-03    19.776        .94732E-06** at limit **
  19  Prefactor     133.06        96.447        .78783E-05    .10096E-04
  20  Normalizat    1.2337        .19959       -.29666E-06    .50000E-04
  21  Prefactor     .90765        .13397       -.81124E-07    .34976E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 12.4029
  norm       = 0.0001
  Prefactor  = 1.05703
  Prefactor  = 17.0449
  norm       = 7.68583
  Prefactor  = 115.79
  norm       = 0.0001
  Prefactor  = 5.56088
  Prefactor  = 0.0001
  Prefactor  = 0.537202
  norm       = 3.77384
  Prefactor  = 7.30235
  norm       = 7.93657
  Prefactor  = 0.0001
  norm       = 14.5752
  norm       = 0.0001
  Prefactor  = 5.68717
  norm       = 0.0001
  Prefactor  = 133.064
  Normalizat = 1.23374
  Prefactor  = 0.907654
 **********
 **   18 **HESSE 
 **********

 FCN=   7926.005     FROM HESSE     STATUS=OK           327 CALLS     2539 TOTAL
                     EDM=   .61E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          12.403        10.475        .11374E-03   -1.5003    
   2  norm          .10000E-03    17.490        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     1.0570        47.531        .51198E-02   -1.5502    
   4  Prefactor     17.045        9.7043        .97012E-04   -1.4882    
   5  norm          7.6858        1.8105        .55262E-04   -1.5153    
   6  Prefactor     115.79        77.140        .18696E-03   -1.3552    
   7  norm          .10000E-03    6.9064        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     5.5609        3.9314        .14206E-03   -1.5236    
   9  Prefactor     .10000E-03    12.867        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .53720        3.6105        .16539E-02   -1.5561    
  11  norm          3.7738        3.8423        .17136E-03   -1.5319    
  12  Prefactor     7.3023        10.883        .14845E-03   -1.5167    
  13  norm          7.9366        2.6988        .81554E-04   -1.5144    
  14  Prefactor     .10000E-03    6.7644        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          14.575        10.644        .10491E-03   -1.4944    
  16  norm          .10000E-03    1.9911        .12254E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     5.6872        20.238        .16847E-03   -1.5231    
  18  norm          .10000E-03    19.837        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     133.06        96.648        .17444E-03   -1.3396    
  20  Normalizat    1.2337        .23577        .29153E-03   -.85567    
  21  Prefactor     .90765        .15814        .23148E-03   -.95874    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.08473e-10
Minuit parameter uncertainties:
  1  10.477
  2  5.16178e-06
  3  14.1876
  4  9.70515
  5  1.81048
  6  77.2066
  7  9.3374e-08
  8  3.93158
  9  4.82036e-07
  10  2.78535
  11  3.84253
  12  10.8861
  13  2.69886
  14  7.91801e-07
  15  10.6452
  16  1.75319e-07
  17  20.2624
  18  4.54727e-06
  19  96.7627
  20  0.235974
  21  0.15822
Done.

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

Extracting fit parameters...

4FGL J1351.0+0029
   Spectrum: PowerLaw
252    Prefactor:  1.000e-04  4.820e-07  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.077e-01  1.582e-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.234e+00  2.360e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 207.757 0.487
Photon Flux Upper Limit: 7.08e-08 ph cm-2 s-1
Energy Flux Upper Limit: 5.48e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/12187/likelihoodResults_310867201_311126401_4FGL_J1351.0+0029_daily_bin276.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): 102
logL (Free Index) = 7926.00583445
delta logL = -0.000370351889615

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 7926.00546418
delta logL = -8.2926817413e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10039E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.4434       1.0000          .0000       10.000    
     3 'Normalizat'    1.2337       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .90771       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=   7926.002     FROM MIGRAD    STATUS=CONVERGED    193 CALLS      348 TOTAL
                     EDM=   .47E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .50108E-01    2.7278        .18142E-01   -.20947E-02
   2  Index         4.5864        1.0723        .50000       -.26111E-05
   3  Normalizat    1.2268        .13278E-01    .29153E-03    .26594E-03
   4  Prefactor     .91048        .92436E-02    .23148E-03    .29442E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0501076
  Index      = 4.58638
  Normalizat = 1.22677
  Prefactor  = 0.910481
 **********
 **   18 **HESSE 
 **********

 FCN=   7926.002     FROM HESSE     STATUS=OK            31 CALLS      379 TOTAL
                     EDM=   .57E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .50108E-01    1.9242        .10695E-02   -1.5753    
   2  Index         4.5864        7.0545        .70220E-02   -.82818E-01
   3  Normalizat    1.2268        .23953        .58305E-04   -.85779    
   4  Prefactor     .91048        .16061        .46295E-04   -.95776    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.7081e-08
Minuit parameter uncertainties:
  1  0.620417
  2  5.21918
  3  0.23975
  4  0.160696
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/12187': 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) = 7926.00161561
delta logL = 0.00384848528847

Extracting fit parameters...

4FGL J1351.0+0029
   Spectrum: PowerLaw
252    Prefactor:  5.011e-02  6.204e-01  1.000e-04  1.000e+04 ( 1.000e-13)
253        Index:  4.586e+00  5.219e+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.105e-01  1.607e-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.227e+00  2.397e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 207.757 0.487

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/12187/cmap_HighResolution_310867201_311126401_4FGL_J1351.0+0029_daily_bin276.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.48e-03', job_status='DONE', photon_flux_upper_limit='7.08e-08', time_completed='2021-09-08 15:27:10.259222', job_id='12187', GAL2='0.91', fit_tolerance='1e-08', EG2='1.23', EG='1.23', time_epoch_completed='1631140030.26', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.91', dlogl='3.85e-03', ts2='0.01', photon_index_error='0.00', photon_index='2.44' WHERE bin_id='276' AND source_name='4FGL J1351.0+0029' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  8 15:27:10 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0104>
Subject: Job 12187: <4FGL_J1351.0+0029_daily_bin276> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1351.0+0029_daily_bin276 207.757 0.4873 310867201 311126401 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 :                                   657.56 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             292.04 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   904 sec.
    Turnaround time :                            989 sec.

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

