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


Performing analysis on: 4FGL_J1351.0+0029_daily_bin144
RA = 207.757, Dec = 0.4873
tmin = 276652801, tmax = 276912001
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='11996', job_status='RUN', time_executed='2021-09-08 15:14:03.603623', time_epoch_executed='1631139243.6' WHERE source_name='4FGL J1351.0+0029' and cadence='daily' and bin_id='144'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/11996

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/11996/ft1_4FGL_J1351.0+0029_daily_bin144.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/11996/ft2_4FGL_J1351.0+0029_daily_bin144.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/11996/ft1_4FGL_J1351.0+0029_daily_bin144.fits outfile=/scratch/kocevski/11996/ft1_filteredMKT_4FGL_J1351.0+0029_daily_bin144.fits ra=207.757 dec=0.4873 rad=12.0 tmin=276652801.0 tmax=276912001.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.72
user 4.38
sys 0.25

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/11996/ft1_filtered_4FGL_J1351.0+0029_daily_bin144.fits evtable="EVENTS" scfile=/scratch/kocevski/11996/ft2_4FGL_J1351.0+0029_daily_bin144.fits sctable="SC_DATA" expcube=/scratch/kocevski/11996/ltcube_276652801_276912001_4FGL_J1351.0+0029_daily_bin144.fits outfile=/scratch/kocevski/11996/expmap_276652801_276912001_4FGL_J1351.0+0029_daily_bin144.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/11996/ltcube_276652801_276912001_4FGL_J1351.0+0029_daily_bin144.fits
.....................!
real 194.23
user 186.64
sys 5.25

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/11996/ft1_filtered_4FGL_J1351.0+0029_daily_bin144.fits scfile=/scratch/kocevski/11996/ft2_4FGL_J1351.0+0029_daily_bin144.fits outfile=/scratch/kocevski/11996/cmap_276652801_276912001_4FGL_J1351.0+0029_daily_bin144.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.62
user 0.39
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/11996/ft1_filtered_4FGL_J1351.0+0029_daily_bin144.fits scfile=/scratch/kocevski/11996/ft2_4FGL_J1351.0+0029_daily_bin144.fits outfile=/scratch/kocevski/11996/cmap_HighResolution_276652801_276912001_4FGL_J1351.0+0029_daily_bin144.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.58
user 0.41
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10036E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    .11011E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    1.3117       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10026E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    8.0244       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10113E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    .11026E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .13507E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    1.1751       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    18.923       1.0000         .10000E-03   10000.    
    12 'Prefactor '    21.475       1.0000         .10000E-03   10000.    
    13 'norm      '    .10004E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .17503E-01   1.0000         .10000E-03   10000.    
    15 'norm      '    1.4936       1.0000         .10000E-03   10000.    
    16 'norm      '    .10089E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    8.0088       1.0000         .10000E-03   10000.    
    18 'norm      '    .10273E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10349E-03   1.0000         .10000E-03   10000.    
    20 'Normalizat'    1.5300       1.0000         .10000E-01   10.000    
    21 'Prefactor '    .92770       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.
 MACHINE ACCURACY LIMITS FURTHER IMPROVEMENT.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   5237.060     FROM MIGRAD    STATUS=CONVERGED    481 CALLS     1922 TOTAL
                     EDM=   .95E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    15.173         .0000    ** at limit **
   2  norm          .10000E-03    12.920         .0000    ** at limit **
   3  Prefactor     1.3193        86.607         .0000        .14610E-03
   4  Prefactor     .10000E-03    2.9590         .0000    ** at limit **
   5  norm          8.0242        2.7463         .0000        .90789E-04
   6  Prefactor     .10000E-03    23.663         .0000    ** at limit **
   7  norm          .10000E-03    58.895         .0000    ** at limit **
   8  Prefactor     .10000E-03    3.2861         .0000    ** at limit **
   9  Prefactor     1.0619        29.150         .0000        .35914E-03
  10  Prefactor     .10000E-03    1.3881         .0000    ** at limit **
  11  norm          18.915        10.722         .0000        .29708E-04
  12  Prefactor     21.465        17.169         .0000        .79776E-03
  13  norm          .10000E-03    1.0817         .0000    ** at limit **
  14  Prefactor     .10003E-03    19.433         .0000    ** at limit **
  15  norm          1.4975        48.207         .0000        .30975E-02
  16  norm          .10000E-03    3.0441         .0000    ** at limit **
  17  Prefactor     8.0092        18.812         .0000        .89676E-04
  18  norm          .10000E-03    7.6444         .0000    ** at limit **
  19  Prefactor     .10000E-03    37.094         .0000    ** at limit **
  20  Normalizat    1.5300        .26478         .0000        .59106E-04
  21  Prefactor     .92750        .17864         .0000        .34943E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 1.31927
  Prefactor  = 0.0001
  norm       = 8.02421
  Prefactor  = 0.0001
  norm       = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 1.06185
  Prefactor  = 0.0001
  norm       = 18.915
  Prefactor  = 21.4654
  norm       = 0.0001
  Prefactor  = 0.000100031
  norm       = 1.49747
  norm       = 0.0001
  Prefactor  = 8.00919
  norm       = 0.0001
  Prefactor  = 0.0001
  Normalizat = 1.53003
  Prefactor  = 0.927505
 **********
 **   18 **HESSE 
 **********

 FCN=   5237.060     FROM HESSE     STATUS=OK           319 CALLS     2241 TOTAL
                     EDM=   .45E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    15.340        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .10000E-03    12.954        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     1.3193        88.148        .38489E-03   -1.5478    
   4  Prefactor     .10000E-03    2.9600        .12158E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          8.0242        2.7521        .66272E-04   -1.5141    
   6  Prefactor     .10000E-03    23.672        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .10000E-03    60.199        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    6.6101        .25212E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     1.0619        211.75        .69860E-02   -1.5502    
  10  Prefactor     .10000E-03    1.3896        .83267E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          18.915        10.722        .92072E-04   -1.4838    
  12  Prefactor     21.465        17.019        .86433E-04   -1.4781    
  13  norm          .10000E-03    1.0962        .73485E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10003E-03    143.03        .60828E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          1.4975        49.027        .17533E-02   -1.5463    
  16  norm          .10000E-03    3.0479        .12331E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     8.0092        18.808        .14168E-03   -1.5142    
  18  norm          .10000E-03    7.6454        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    37.102        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Normalizat    1.5300        .31873        .27861E-03   -.76938    
  21  Prefactor     .92750        .21641        .24172E-03   -.95187    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.50406e-09
Minuit parameter uncertainties:
  1  3.71589e-05
  2  3.36522e-05
  3  21.6001
  4  2.43272e-06
  5  2.7521
  6  2.60918e-05
  7  0.000464933
  8  2.54513e-05
  9  30.0972
  10  1.2785e-06
  11  10.7229
  12  17.0224
  13  3.80902e-06
  14  0.00424269
  15  17.1514
  16  2.57879e-06
  17  18.8216
  18  2.08631e-05
  19  0.000217139
  20  0.319153
  21  0.216616
Done.

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

Extracting fit parameters...

4FGL J1351.0+0029
   Spectrum: PowerLaw
252    Prefactor:  1.062e+00  3.010e+01  1.000e-04  1.000e+04 ( 1.000e-13)
253        Index:  2.437e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
254        Scale:  9.999e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
511    Prefactor:  9.275e-01  2.166e-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.530e+00  3.192e-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: 1.36e-07 ph cm-2 s-1
Energy Flux Upper Limit: 1.06e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/11996/likelihoodResults_276652801_276912001_4FGL_J1351.0+0029_daily_bin144.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) = 5236.12147041
delta logL = 0.938804432841

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5235.95890031
delta logL = 1.10137453476

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10807E-01   1.0000         .10000E-03   10000.    
     2 'Index     '    6.7474       1.0000          .0000       10.000    
     3 'Normalizat'    1.3919       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .99274       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=   5235.959     FROM MIGRAD    STATUS=CONVERGED     52 CALLS      284 TOTAL
                     EDM=   .44E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10742E-01    .14476        .90770E-03    .23975E-01
   2  Index         6.7509        2.6814        .11809        .31372E-03
   3  Normalizat    1.3921        .68528E-01    .65355E-01    .70475E-03
   4  Prefactor     .99278        .48056E-01    .46176E-01    .85697E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.010742
  Index      = 6.75094
  Normalizat = 1.39213
  Prefactor  = 0.992776
 **********
 **   18 **HESSE 
 **********

 FCN=   5235.959     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      313 TOTAL
                     EDM=   .13E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10742E-01    .32722        .56175E-05   -1.5687    
   2  Index         6.7509        7.5366        .44992E-02    .35777    
   3  Normalizat    1.3921        .26057        .28910E-03   -.80856    
   4  Prefactor     .99278        .17995        .23450E-03   -.92971    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.30711e-09
Minuit parameter uncertainties:
  1  0.118023
  2  5.07933
  3  0.260821
  4  0.180057
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/11996': 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) = 5235.95889522
delta logL = 1.10137962548

Extracting fit parameters...

4FGL J1351.0+0029
   Spectrum: PowerLaw
252    Prefactor:  1.074e-02  1.180e-01  1.000e-04  1.000e+04 ( 1.000e-13)
253        Index:  6.751e+00  5.079e+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.928e-01  1.801e-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.392e+00  2.608e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.36
Ra Dec: 207.757 0.487
Photon Index (Free Index): 6.75 +/- 5.08
Photon Flux (Free Index): 1.07e-07 +/- 8.13e-08
Energy Flux (Free Index): 1.28e-05 +/- 1.06e-05

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/11996/cmap_HighResolution_276652801_276912001_4FGL_J1351.0+0029_daily_bin144.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.06e-02', comment='SUCCESS', energy_flux2='1.28e-05', dlogl='1.10e+00', photon_flux2='1.07e-07', job_status='DONE', time_completed='2021-09-08 15:23:13.016619', photon_index_error2='5.08', photon_index2='6.75', ts='0.00', fit_tolerance='1e-08', GAL='0.93', photon_index_error='0.00', photon_flux_upper_limit='1.36e-07', energy_flux_error2='1.06e-05', EG='1.53', time_epoch_completed='1631139793.02', return_code='0', job_id='11996', GAL2='0.99', EG2='1.39', return_code2='102', photon_flux_error2='8.13e-08', ts2='2.36', photon_index='2.44' WHERE bin_id='144' AND source_name='4FGL J1351.0+0029' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  8 15:23:13 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0250>
Subject: Job 11996: <4FGL_J1351.0+0029_daily_bin144> in cluster <slac> Done

Job <4FGL_J1351.0+0029_daily_bin144> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Wed Sep  8 15:10:28 2021
Job was executed on host(s) <bullet0250>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep  8 15:11:33 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Wed Sep  8 15:11:33 2021
Terminated at Wed Sep  8 15:23:13 2021
Results reported at Wed Sep  8 15:23:13 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1351.0+0029_daily_bin144 207.757 0.4873 276652801 276912001 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 :                                   537.42 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             312.83 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   700 sec.
    Turnaround time :                            765 sec.

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

