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


Performing analysis on: 4FGL_J1351.0+0029_daily_bin210
RA = 207.757, Dec = 0.4873
tmin = 293760001, tmax = 294019201
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='12092', job_status='RUN', time_executed='2021-09-08 15:15:20.015240', time_epoch_executed='1631139320.02' WHERE source_name='4FGL J1351.0+0029' and cadence='daily' and bin_id='210'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/12092

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/12092/ft1_4FGL_J1351.0+0029_daily_bin210.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/12092/ft2_4FGL_J1351.0+0029_daily_bin210.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/12092/ft1_4FGL_J1351.0+0029_daily_bin210.fits outfile=/scratch/kocevski/12092/ft1_filteredMKT_4FGL_J1351.0+0029_daily_bin210.fits ra=207.757 dec=0.4873 rad=12.0 tmin=293760001.0 tmax=294019201.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.58
user 3.33
sys 0.20

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/12092/ft1_filtered_4FGL_J1351.0+0029_daily_bin210.fits" evtable="EVENTS" scfile=/scratch/kocevski/12092/ft2_4FGL_J1351.0+0029_daily_bin210.fits sctable="SC_DATA" outfile=/scratch/kocevski/12092/ltcube_293760001_294019201_4FGL_J1351.0+0029_daily_bin210.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/12092/ft2_4FGL_J1351.0+0029_daily_bin210.fits
.....................!
real 18.15
user 17.77
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/12092/ft1_filtered_4FGL_J1351.0+0029_daily_bin210.fits evtable="EVENTS" scfile=/scratch/kocevski/12092/ft2_4FGL_J1351.0+0029_daily_bin210.fits sctable="SC_DATA" expcube=/scratch/kocevski/12092/ltcube_293760001_294019201_4FGL_J1351.0+0029_daily_bin210.fits outfile=/scratch/kocevski/12092/expmap_293760001_294019201_4FGL_J1351.0+0029_daily_bin210.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/12092/ltcube_293760001_294019201_4FGL_J1351.0+0029_daily_bin210.fits
.....................!
real 191.99
user 186.52
sys 4.93

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/12092/ft1_filtered_4FGL_J1351.0+0029_daily_bin210.fits scfile=/scratch/kocevski/12092/ft2_4FGL_J1351.0+0029_daily_bin210.fits outfile=/scratch/kocevski/12092/cmap_293760001_294019201_4FGL_J1351.0+0029_daily_bin210.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.56
user 0.38
sys 0.16

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

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    4.3576       1.0000         .10000E-03   10000.    
     2 'norm      '    19.586       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10053E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    3.7881       1.0000         .10000E-03   10000.    
     6 'Prefactor '    34.340       1.0000         .10000E-03   10000.    
     7 'norm      '    .11792E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    2.1626       1.0000         .10000E-03   10000.    
     9 'Prefactor '    6.8431       1.0000         .10000E-03   10000.    
    10 'Prefactor '    3.9306       1.0000         .10000E-03   10000.    
    11 'norm      '    1.1376       1.0000         .10000E-03   10000.    
    12 'Prefactor '    8.9671       1.0000         .10000E-03   10000.    
    13 'norm      '    7.0428       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10066E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    21.254       1.0000         .10000E-03   10000.    
    16 'norm      '    3.1223       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10555E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    29.661       1.0000         .10000E-03   10000.    
    20 'Normalizat'    1.0790       1.0000         .10000E-01   10.000    
    21 'Prefactor '    1.0742       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=   7018.871     FROM MIGRAD    STATUS=CONVERGED    455 CALLS     2236 TOTAL
                     EDM=   .94E-11  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          4.3554        9.5422        .43010E-06    .17839E-05
   2  norm          19.585        14.508       -.34765E-08   -.74210E-06
   3  Prefactor     .10000E-03    10.189        .18524E-06** at limit **
   4  Prefactor     .10000E-03    5.1945        .93507E-07** at limit **
   5  norm          3.7880        1.5984        .23265E-07   -.40282E-04
   6  Prefactor     34.333        58.249       -.12070E-06   -.48342E-05
   7  norm          .10000E-03    34.544        .21713E-06** at limit **
   8  Prefactor     2.1628        2.8590        .10576E-06   -.42604E-06
   9  Prefactor     6.7474        25.595        .35121E-06    .55126E-06
  10  Prefactor     3.9304        5.2554        .30361E-06   -.33079E-04
  11  norm          1.1372        5.2498        .27446E-05   -.14760E-04
  12  Prefactor     8.9805        13.823        .17769E-06   -.59691E-05
  13  norm          7.0433        3.1786       -.22037E-07   -.69025E-04
  14  Prefactor     .10000E-03    11.279        .18869E-07** at limit **
  15  norm          21.254        11.927       -.51822E-08   -.21496E-05
  16  norm          3.1191        8.0561        .56756E-06   -.26374E-06
  17  Prefactor     .10000E-03    53.707        .80147E-08** at limit **
  18  norm          .10000E-03    8.1513       -.68592E-07** at limit **
  19  Prefactor     29.558        70.492       -.47391E-06   -.26787E-04
  20  Normalizat    1.0790        .21224       -.80683E-06   -.19326E-04
  21  Prefactor     1.0742        .14647        .10373E-06   -.73749E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 4.3554
  norm       = 19.5853
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 3.78803
  Prefactor  = 34.3326
  norm       = 0.0001
  Prefactor  = 2.1628
  Prefactor  = 6.74742
  Prefactor  = 3.93035
  norm       = 1.13721
  Prefactor  = 8.98054
  norm       = 7.04333
  Prefactor  = 0.0001
  norm       = 21.2537
  norm       = 3.11914
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 29.5585
  Normalizat = 1.07903
  Prefactor  = 1.0742
 **********
 **   18 **HESSE 
 **********

 FCN=   7018.871     FROM HESSE     STATUS=OK           323 CALLS     2559 TOTAL
                     EDM=   .21E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          4.3554        9.5350        .19295E-03   -1.5291    
   2  norm          19.585        14.509        .90502E-04   -1.4823    
   3  Prefactor     .10000E-03    10.234        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    5.2173        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          3.7880        1.5968        .65822E-04   -1.5319    
   6  Prefactor     34.333        58.249        .68383E-04   -1.4535    
   7  norm          .10000E-03    35.488        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     2.1628        2.8456        .15714E-03   -1.5414    
   9  Prefactor     6.7474        25.534        .15337E-03   -1.5188    
  10  Prefactor     3.9304        5.2485        .20348E-03   -1.5311    
  11  norm          1.1372        5.2705        .37216E-03   -1.5495    
  12  Prefactor     8.9805        13.768        .13385E-03   -1.5109    
  13  norm          7.0433        3.1733        .95006E-04   -1.5177    
  14  Prefactor     .10000E-03    11.303        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          21.254        11.930        .86882E-04   -1.4786    
  16  norm          3.1191        8.0466        .22945E-03   -1.5355    
  17  Prefactor     .10000E-03    54.985        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          .10000E-03    8.1546        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     29.558        70.567        .73566E-04   -1.4620    
  20  Normalizat    1.0790        .24781        .30930E-03   -.90428    
  21  Prefactor     1.0742        .17171        .21728E-03   -.90296    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.09198e-11
Minuit parameter uncertainties:
  1  9.53829
  2  14.5113
  3  3.54744e-06
  4  2.13661e-06
  5  1.59681
  6  58.3455
  7  1.26113e-06
  8  2.84578
  9  25.5756
  10  5.24911
  11  4.89687
  12  13.7731
  13  3.1734
  14  3.23736e-06
  15  11.931
  16  8.04938
  17  4.31094e-05
  18  1.60885e-06
  19  70.7677
  20  0.248079
  21  0.171796
Done.

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

Extracting fit parameters...

4FGL J1351.0+0029
   Spectrum: PowerLaw
252    Prefactor:  6.747e+00  2.558e+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:  1.074e+00  1.718e-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.079e+00  2.481e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.08
Ra Dec: 207.757 0.487
Photon Flux Upper Limit: 1.19e-07 ph cm-2 s-1
Energy Flux Upper Limit: 9.22e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/12092/likelihoodResults_293760001_294019201_4FGL_J1351.0+0029_daily_bin210.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) = 7017.6704376
delta logL = 1.20090340567

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 7017.66571049
delta logL = 1.20563050775

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .73801       1.0000         .10000E-03   10000.    
     2 'Index     '    4.7884       1.0000          .0000       10.000    
     3 'Normalizat'    .95111       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1299       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.

 FCN=   7017.666     FROM MIGRAD    STATUS=CONVERGED     55 CALLS      278 TOTAL
                     EDM=   .41E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .73761        6.3122        .10450E-01    .12229E-02
   2  Index         4.7887        2.2021        .11968        .17859E-03
   3  Normalizat    .95110        .50038E-01    .73844E-01    .19933E-04
   4  Prefactor     1.1299        .35192E-01    .36547E-01    .49029E-06
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.737614
  Index      = 4.78872
  Normalizat = 0.951105
  Prefactor  = 1.1299
 **********
 **   18 **HESSE 
 **********

 FCN=   7017.666     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      311 TOTAL
                     EDM=   .68E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .73761        16.137        .47364E-04   -1.5536    
   2  Index         4.7887        3.9958        .43016E-02   -.42269E-01
   3  Normalizat    .95110        .22284        .32676E-03   -.94687    
   4  Prefactor     1.1299        .15320        .21240E-03   -.88517    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 6.81252e-10
Minuit parameter uncertainties:
  1  6.9018
  2  4.63136
  3  0.223057
  4  0.15326
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/12092': 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) = 7017.66571047
delta logL = 1.20563053021

Extracting fit parameters...

4FGL J1351.0+0029
   Spectrum: PowerLaw
252    Prefactor:  7.376e-01  6.902e+00  1.000e-04  1.000e+04 ( 1.000e-13)
253        Index:  4.789e+00  4.631e+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:  1.130e+00  1.533e-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.511e-01  2.231e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.75
Ra Dec: 207.757 0.487
Photon Index (Free Index): 4.79 +/- 4.63
Photon Flux (Free Index): 1.20e-07 +/- 8.30e-08
Energy Flux (Free Index): 1.63e-05 +/- 1.24e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to -2.500e-04 [aplpy.core]
INFO: Auto-setting vmax to  2.775e-03 [aplpy.core]
Saving /scratch/kocevski/12092/cmap_HighResolution_293760001_294019201_4FGL_J1351.0+0029_daily_bin210.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='9.22e-03', comment='SUCCESS', energy_flux2='1.63e-05', dlogl='1.21e+00', photon_flux2='1.20e-07', job_status='DONE', time_completed='2021-09-08 15:25:39.093131', photon_index_error2='4.63', photon_index2='4.79', ts='0.08', fit_tolerance='1e-08', GAL='1.07', photon_index_error='0.00', photon_flux_upper_limit='1.19e-07', energy_flux_error2='1.24e-05', EG='1.08', time_epoch_completed='1631139939.09', return_code='0', job_id='12092', GAL2='1.13', EG2='0.95', return_code2='102', photon_flux_error2='8.30e-08', ts2='2.75', photon_index='2.44' WHERE bin_id='210' AND source_name='4FGL J1351.0+0029' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  8 15:25:39 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0089>
Subject: Job 12092: <4FGL_J1351.0+0029_daily_bin210> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1351.0+0029_daily_bin210 207.757 0.4873 293760001 294019201 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 :                                   612.11 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             263.31 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   827 sec.
    Turnaround time :                            905 sec.

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

