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


Performing analysis on: 4FGL_J1351.0+0029_daily_bin419
RA = 207.757, Dec = 0.4873
tmin = 347932801, tmax = 348192001
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='13584', job_status='RUN', time_executed='2021-09-08 15:18:49.588926', time_epoch_executed='1631139529.59' WHERE source_name='4FGL J1351.0+0029' and cadence='daily' and bin_id='419'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/13584

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/13584/ft1_4FGL_J1351.0+0029_daily_bin419.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/13584/ft2_4FGL_J1351.0+0029_daily_bin419.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/13584/ft1_4FGL_J1351.0+0029_daily_bin419.fits outfile=/scratch/kocevski/13584/ft1_filteredMKT_4FGL_J1351.0+0029_daily_bin419.fits ra=207.757 dec=0.4873 rad=12.0 tmin=347932801.0 tmax=348192001.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.52
user 3.27
sys 0.21

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/13584/ft1_filtered_4FGL_J1351.0+0029_daily_bin419.fits" evtable="EVENTS" scfile=/scratch/kocevski/13584/ft2_4FGL_J1351.0+0029_daily_bin419.fits sctable="SC_DATA" outfile=/scratch/kocevski/13584/ltcube_347932801_348192001_4FGL_J1351.0+0029_daily_bin419.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/13584/ft2_4FGL_J1351.0+0029_daily_bin419.fits
.....................!
real 14.62
user 14.15
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/13584/ft1_filtered_4FGL_J1351.0+0029_daily_bin419.fits evtable="EVENTS" scfile=/scratch/kocevski/13584/ft2_4FGL_J1351.0+0029_daily_bin419.fits sctable="SC_DATA" expcube=/scratch/kocevski/13584/ltcube_347932801_348192001_4FGL_J1351.0+0029_daily_bin419.fits outfile=/scratch/kocevski/13584/expmap_347932801_348192001_4FGL_J1351.0+0029_daily_bin419.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/13584/ltcube_347932801_348192001_4FGL_J1351.0+0029_daily_bin419.fits
.....................!
real 191.24
user 185.92
sys 4.69

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/13584/ft1_filtered_4FGL_J1351.0+0029_daily_bin419.fits scfile=/scratch/kocevski/13584/ft2_4FGL_J1351.0+0029_daily_bin419.fits outfile=/scratch/kocevski/13584/cmap_347932801_348192001_4FGL_J1351.0+0029_daily_bin419.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.15

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

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

This is gtbin version HEAD
real 0.56
user 0.39
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    10.716       1.0000         .10000E-03   10000.    
     2 'norm      '    3.3033       1.0000         .10000E-03   10000.    
     3 'Prefactor '    15.769       1.0000         .10000E-03   10000.    
     4 'Prefactor '    15.823       1.0000         .10000E-03   10000.    
     5 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    17.702       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10017E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10031E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    2.8085       1.0000         .10000E-03   10000.    
    12 'Prefactor '    3.7080       1.0000         .10000E-03   10000.    
    13 'norm      '    1.2185       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    9.0981       1.0000         .10000E-03   10000.    
    16 'norm      '    11.894       1.0000         .10000E-03   10000.    
    17 'Prefactor '    2.8909       1.0000         .10000E-03   10000.    
    18 'norm      '    .71882       1.0000         .10000E-03   10000.    
    19 'Prefactor '    124.22       1.0000         .10000E-03   10000.    
    20 'Normalizat'    1.1358       1.0000         .10000E-01   10.000    
    21 'Prefactor '    1.0335       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=   8961.688     FROM MIGRAD    STATUS=CONVERGED    768 CALLS     2564 TOTAL
                     EDM=   .10E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          10.715        7.9138        .12239E-03    .57963E-04
   2  norm          3.3035        8.8480        .22275E-03    .14291E-05
   3  Prefactor     15.757        17.662        .10086E-03    .15330E-04
   4  Prefactor     15.823        9.6727        .10069E-03    .49681E-05
   5  norm          .10000E-03    .49534        .10608E-02** at limit **
   6  Prefactor     .10000E-03    22.754        .18142E-02** at limit **
   7  norm          17.697        22.676        .95194E-04   -.95542E-06
   8  Prefactor     .10000E-03    1.0834        .95803E-03** at limit **
   9  Prefactor     .10000E-03    15.634        .18142E-02** at limit **
  10  Prefactor     .10000E-03    1.0135        .92944E-03** at limit **
  11  norm          2.8086        3.1826        .17508E-03    .25714E-04
  12  Prefactor     3.7080        11.220        .20972E-03   -.13010E-05
  13  norm          1.2188        1.5922        .13255E-03   -.21288E-03
  14  Prefactor     .10000E-03    15.185        .18142E-02** at limit **
  15  norm          9.0982        6.7899        .13288E-03    .10609E-04
  16  norm          11.894        6.8880        .11616E-03    .11060E-03
  17  Prefactor     2.8853        36.305        .23901E-03   -.20358E-04
  18  norm          .77525        10.203        .16095        .27376E-03
  19  Prefactor     124.21        81.475        .18057E-03   -.19895E-04
  20  Normalizat    1.1361        .21004        .28371E-03    .44914E-03
  21  Prefactor     1.0333        .14756        .21261E-03    .13860E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 10.7154
  norm       = 3.30354
  Prefactor  = 15.7573
  Prefactor  = 15.8226
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 17.6971
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 2.80859
  Prefactor  = 3.70795
  norm       = 1.21881
  Prefactor  = 0.0001
  norm       = 9.09817
  norm       = 11.8937
  Prefactor  = 2.88533
  norm       = 0.775254
  Prefactor  = 124.208
  Normalizat = 1.13609
  Prefactor  = 1.03329
 **********
 **   18 **HESSE 
 **********

 FCN=   8961.688     FROM HESSE     STATUS=OK           299 CALLS     2863 TOTAL
                     EDM=   .42E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          10.715        7.9137        .48956E-05   -1.5053    
   2  norm          3.3035        8.8479        .89100E-05   -1.5344    
   3  Prefactor     15.757        17.658        .40344E-05   -1.4914    
   4  Prefactor     15.823        9.6723        .40275E-05   -1.4912    
   5  norm          .10000E-03    .49576        .21215E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    22.754        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          17.697        22.672        .38077E-05   -1.4866    
   8  Prefactor     .10000E-03    1.0835        .19161E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    15.639        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    1.0136        .18589E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          2.8086        3.1826        .70032E-05   -1.5373    
  12  Prefactor     3.7080        11.218        .83888E-05   -1.5323    
  13  norm          1.2188        1.5921        .53018E-05   -1.5487    
  14  Prefactor     .10000E-03    15.187        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          9.0982        6.7899        .53150E-05   -1.5105    
  16  norm          11.894        6.8881        .46462E-05   -1.5018    
  17  Prefactor     2.8853        35.521        .95606E-05   -1.5368    
  18  norm          .77525        76.480        .56497E-02   -1.5532    
  19  Prefactor     124.21        81.414        .72228E-05   -1.3474    
  20  Normalizat    1.1361        .21036        .56741E-04   -.88601    
  21  Prefactor     1.0333        .14808        .85045E-05   -.91628    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.19777e-08
Minuit parameter uncertainties:
  1  7.91445
  2  8.85144
  3  17.6642
  4  9.67324
  5  6.99487e-06
  6  1.53204e-05
  7  22.6826
  8  2.35539e-06
  9  9.13264e-05
  10  7.69228e-07
  11  3.1828
  12  11.2245
  13  1.5922
  14  6.82417e-05
  15  6.79048
  16  6.88852
  17  20.2619
  18  15.4195
  19  81.4875
  20  0.21052
  21  0.148137
Done.

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

Extracting fit parameters...

4FGL J1351.0+0029
   Spectrum: PowerLaw
252    Prefactor:  1.000e-04  9.133e-05  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:  1.033e+00  1.481e-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.136e+00  2.105e-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: 6.88e-08 ph cm-2 s-1
Energy Flux Upper Limit: 5.33e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/13584/likelihoodResults_347932801_348192001_4FGL_J1351.0+0029_daily_bin419.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) = 8961.68815393
delta logL = -0.000304823526676

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 8961.68784908
delta logL = 1.90648279386e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10070E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.4170       1.0000          .0000       10.000    
     3 'Normalizat'    1.1361       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0333       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=   8961.688     FROM MIGRAD    STATUS=CONVERGED     94 CALLS      248 TOTAL
                     EDM=   .16E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10249E-03    8.8802        .18142E-01** at limit **
   2  Index         2.3245        5.4181        .50000        .82467E-05
   3  Normalizat    1.1361        .31776E-02    .28370E-03    .36225E-04
   4  Prefactor     1.0333        .22963E-02    .21261E-03    .54541E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000102487
  Index      = 2.32451
  Normalizat = 1.13609
  Prefactor  = 1.03329
 **********
 **   18 **HESSE 
 **********

 FCN=   8961.688     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      277 TOTAL
                     EDM=   .16E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10249E-03    672.59        .72569E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.3245        7.6315        .50000       -.56462    
   3  Normalizat    1.1361        .28802E-01    .11348E-04   -.88602    
   4  Prefactor     1.0333        .20813E-01    .85045E-05   -.91628    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.61076e-08
Minuit parameter uncertainties:
  1  0.0827469
  2  1216.15
  3  0.0288027
  4  0.0208135
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/13584': 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): 102
logL (Free Index) = 8961.68784892
delta logL = 1.81138602784e-07

Extracting fit parameters...

4FGL J1351.0+0029
   Spectrum: PowerLaw
252    Prefactor:  1.025e-04  8.275e-02  1.000e-04  1.000e+04 ( 1.000e-13)
253        Index:  2.325e+00  1.216e+03  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.033e+00  2.081e-02  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.136e+00  2.880e-02  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/13584/cmap_HighResolution_347932801_348192001_4FGL_J1351.0+0029_daily_bin419.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.33e-03', job_status='DONE', photon_flux_upper_limit='6.88e-08', time_completed='2021-09-08 15:30:57.575059', job_id='13584', GAL2='1.03', fit_tolerance='1e-08', EG2='1.14', EG='1.14', time_epoch_completed='1631140257.58', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.03', dlogl='1.81e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.44' WHERE bin_id='419' AND source_name='4FGL J1351.0+0029' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  8 15:30:57 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0146>
Subject: Job 13584: <4FGL_J1351.0+0029_daily_bin419> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1351.0+0029_daily_bin419 207.757 0.4873 347932801 348192001 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 :                                   721.60 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             271.81 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              7
    Max Threads :                                21
    Run time :                                   933 sec.
    Turnaround time :                            935 sec.

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

