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


Performing analysis on: 4FGL_J1351.0+0029_daily_bin858
RA = 207.757, Dec = 0.4873
tmin = 461721601, tmax = 461980801
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='17124', job_status='RUN', time_executed='2021-09-08 15:29:43.880667', time_epoch_executed='1631140183.88' WHERE source_name='4FGL J1351.0+0029' and cadence='daily' and bin_id='858'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/17124

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/17124/ft1_4FGL_J1351.0+0029_daily_bin858.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/17124/ft2_4FGL_J1351.0+0029_daily_bin858.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/17124/ft1_4FGL_J1351.0+0029_daily_bin858.fits outfile=/scratch/kocevski/17124/ft1_filteredMKT_4FGL_J1351.0+0029_daily_bin858.fits ra=207.757 dec=0.4873 rad=12.0 tmin=461721601.0 tmax=461980801.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 4.12
user 3.87
sys 0.23

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/17124/ft1_filtered_4FGL_J1351.0+0029_daily_bin858.fits evtable="EVENTS" scfile=/scratch/kocevski/17124/ft2_4FGL_J1351.0+0029_daily_bin858.fits sctable="SC_DATA" expcube=/scratch/kocevski/17124/ltcube_461721601_461980801_4FGL_J1351.0+0029_daily_bin858.fits outfile=/scratch/kocevski/17124/expmap_461721601_461980801_4FGL_J1351.0+0029_daily_bin858.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/17124/ltcube_461721601_461980801_4FGL_J1351.0+0029_daily_bin858.fits
.....................!
real 191.44
user 185.87
sys 5.11

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/17124/ft1_filtered_4FGL_J1351.0+0029_daily_bin858.fits scfile=/scratch/kocevski/17124/ft2_4FGL_J1351.0+0029_daily_bin858.fits outfile=/scratch/kocevski/17124/cmap_461721601_461980801_4FGL_J1351.0+0029_daily_bin858.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.63
user 0.38
sys 0.16

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

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .73750E-01   1.0000         .10000E-03   10000.    
     2 'norm      '    13.042       1.0000         .10000E-03   10000.    
     3 'Prefactor '    22.193       1.0000         .10000E-03   10000.    
     4 'Prefactor '    5.8983       1.0000         .10000E-03   10000.    
     5 'norm      '    1.3872       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .23709E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    3.9147       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .11082E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .25883E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    3.3538       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10086E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    2.2936       1.0000         .10000E-03   10000.    
    14 'Prefactor '    3.1421       1.0000         .10000E-03   10000.    
    15 'norm      '    17.337       1.0000         .10000E-03   10000.    
    16 'norm      '    9.0773       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .13843E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    .11659E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .55495       1.0000         .10000E-03   10000.    
    20 'Normalizat'    1.4094       1.0000         .10000E-01   10.000    
    21 'Prefactor '    .85963       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=   6145.931     FROM MIGRAD    STATUS=CONVERGED     98 CALLS     1882 TOTAL
                     EDM=   .28E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10015E-03    428.79        .88877E-05** at limit **
   2  norm          13.053        2.3490        .12847E-06   -.18080E-05
   3  Prefactor     22.214        5.8218       -.24480E-06    .25578E-02
   4  Prefactor     5.9050        3.7603       -.23664E-06    .53992E-04
   5  norm          1.3870        1.6274       -.98412E-07   -.31096E-04
   6  Prefactor     .10006E-03    63.480       -.32412E-05** at limit **
   7  norm          3.8926        4.6248        .46336E-06   -.12906E-02
   8  Prefactor     .10000E-03    1.3912       -.46051E-07** at limit **
   9  Prefactor     .10000E-03    5.9648        .49435E-06** at limit **
  10  Prefactor     .10003E-03    19.121        .17142E-05** at limit **
  11  norm          3.3502        1.6144        .16160E-06    .18135E-03
  12  Prefactor     .10000E-03    8.8758       -.48883E-05** at limit **
  13  norm          2.2909        3.0206       -.33859E-06   -.77378E-04
  14  Prefactor     3.1078        4.8826        .74274E-06   -.13490E-02
  15  norm          17.351        13.055        .51982E-06    .45772E-02
  16  norm          9.0719        1.0745       -.41893E-07    .95278E-03
  17  Prefactor     .10000E-03    15.647        .41337E-05** at limit **
  18  norm          .10000E-03    10.881        .11737E-05** at limit **
  19  Prefactor     .51848        12.863       -.42107E-07    .10930E-02
  20  Normalizat    1.4097        .26265       -.12975E-05   -.32163E-04
  21  Prefactor     .85968        .18047        .31688E-06   -.29918E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.000100153
  norm       = 13.0533
  Prefactor  = 22.2144
  Prefactor  = 5.90501
  norm       = 1.38699
  Prefactor  = 0.000100055
  norm       = 3.89259
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100027
  norm       = 3.35016
  Prefactor  = 0.0001
  norm       = 2.29094
  Prefactor  = 3.10779
  norm       = 17.3508
  norm       = 9.0719
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.518485
  Normalizat = 1.40969
  Prefactor  = 0.859677
 **********
 **   18 **HESSE 
 **********

 FCN=   6145.931     FROM HESSE     STATUS=OK           379 CALLS     2261 TOTAL
                     EDM=   .13E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10015E-03    7.1861        .93853E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          13.053        15.189        .27729E-02   -1.4985    
   3  Prefactor     22.214        20.390        .21256E-02   -1.4765    
   4  Prefactor     5.9050        9.1923        .41338E-02   -1.5222    
   5  norm          1.3870        1.6573        .92292E-02   -1.5472    
   6  Prefactor     .10006E-03    63.858        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          3.8926        31.419        .50977E-02   -1.5313    
   8  Prefactor     .10000E-03    1.3850        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    5.9661        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10003E-03    2.9872        .73510E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          3.3502        9.3209        .55247E-02   -1.5342    
  12  Prefactor     .10000E-03    8.8448        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          2.2909        3.0963        .67755E-02   -1.5405    
  14  Prefactor     3.1078        57.616        .57172E-02   -1.5355    
  15  norm          17.351        14.219        .24048E-02   -1.4875    
  16  norm          9.0719        6.5786        .33257E-02   -1.5105    
  17  Prefactor     .10000E-03    15.601        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          .10000E-03    10.886        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .51848        66.003        .20088       -1.5564    
  20  Normalizat    1.4097        .22382        .61157E-01   -.80349    
  21  Prefactor     .85968        .15168        .44488E-01   -.97565    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.33894e-07
Minuit parameter uncertainties:
  1  0.00209689
  2  15.1938
  3  20.396
  4  9.19453
  5  1.6574
  6  0.00375243
  7  22.1335
  8  1.40876e-07
  9  4.78466e-06
  10  0.000568364
  11  9.32492
  12  6.10542e-05
  13  3.0965
  14  26.792
  15  14.2221
  16  6.57914
  17  3.92911e-05
  18  1.29203e-05
  19  11.712
  20  0.223977
  21  0.151752
Done.

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

Extracting fit parameters...

4FGL J1351.0+0029
   Spectrum: PowerLaw
252    Prefactor:  1.000e-04  4.785e-06  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.597e-01  1.518e-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.410e+00  2.240e-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: 5.97e-08 ph cm-2 s-1
Energy Flux Upper Limit: 4.62e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/17124/likelihoodResults_461721601_461980801_4FGL_J1351.0+0029_daily_bin858.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) = 6145.9321795
delta logL = -0.000793367116785

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6145.93138611
delta logL = 2.01252987608e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10037E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.4218       1.0000          .0000       10.000    
     3 'Normalizat'    1.4098       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .85964       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=   6145.931     FROM MIGRAD    STATUS=CONVERGED     95 CALLS      232 TOTAL
                     EDM=   .23E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    241.03        .18142E-01** at limit **
   2  Index         1.8544        5.9192        .95281E-01    .33051E-07
   3  Normalizat    1.4097        .32621E-01    .27048E-03    .19965E-04
   4  Prefactor     .85968        .22346E-01    .22915E-03    .24657E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 1.8544
  Normalizat = 1.40969
  Prefactor  = 0.859677
 **********
 **   18 **HESSE 
 **********

 FCN=   6145.931     FROM HESSE     STATUS=OK            23 CALLS      255 TOTAL
                     EDM=   .77E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    7.3869        .20745E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         1.8544        7.9044        .38112E-02   -.68042    
   3  Normalizat    1.4097        .26029        .10819E-04   -.80349    
   4  Prefactor     .85968        .17835        .91660E-05   -.97565    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.72938e-12
Minuit parameter uncertainties:
  1  1.68122e-06
  2  304.787
  3  0.26053
  4  0.178474
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/17124': 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) = 6145.93138456
delta logL = 1.56785063155e-06

Extracting fit parameters...

4FGL J1351.0+0029
   Spectrum: PowerLaw
252    Prefactor:  1.000e-04  1.681e-06  1.000e-04  1.000e+04 ( 1.000e-13)
253        Index:  1.854e+00  3.048e+02  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:  8.597e-01  1.785e-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.410e+00  2.605e-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  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/17124/cmap_HighResolution_461721601_461980801_4FGL_J1351.0+0029_daily_bin858.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.62e-03', job_status='DONE', photon_flux_upper_limit='5.97e-08', time_completed='2021-09-08 15:39:11.927415', job_id='17124', GAL2='0.86', fit_tolerance='1e-08', EG2='1.41', EG='1.41', time_epoch_completed='1631140751.93', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.86', dlogl='1.57e-06', ts2='-0.00', photon_index_error='0.00', photon_index='2.44' WHERE bin_id='858' AND source_name='4FGL J1351.0+0029' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  8 15:39:11 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0281>
Subject: Job 17124: <4FGL_J1351.0+0029_daily_bin858> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1351.0+0029_daily_bin858 207.757 0.4873 461721601 461980801 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 :                                   562.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             272.96 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   797 sec.
    Turnaround time :                            824 sec.

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

