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


Performing analysis on: 4FGL_J1351.0+0029_daily_bin983
RA = 207.757, Dec = 0.4873
tmin = 494121601, tmax = 494380801
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='17321', job_status='RUN', time_executed='2021-09-08 15:29:49.763379', time_epoch_executed='1631140189.76' WHERE source_name='4FGL J1351.0+0029' and cadence='daily' and bin_id='983'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/17321

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/17321/ft1_4FGL_J1351.0+0029_daily_bin983.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/17321/ft2_4FGL_J1351.0+0029_daily_bin983.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/17321/ft1_4FGL_J1351.0+0029_daily_bin983.fits outfile=/scratch/kocevski/17321/ft1_filteredMKT_4FGL_J1351.0+0029_daily_bin983.fits ra=207.757 dec=0.4873 rad=12.0 tmin=494121601.0 tmax=494380801.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.75
user 3.52
sys 0.21

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/17321/ft2_4FGL_J1351.0+0029_daily_bin983.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/17321/ft1_filteredMKT_4FGL_J1351.0+0029_daily_bin983.fits evtable="EVENTS" outfile="/scratch/kocevski/17321/ft1_filtered_4FGL_J1351.0+0029_daily_bin983.fits" apply_filter=yes overwrite=yes header_obstimes=yes tstart=0.0 tstop=0.0 gtifile="default" chatter=3 clobber=yes debug=no gui=no mode="ql"

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

This is gtmktime version HEAD
Applying GTI filter:
IN_SAA!=T && LIVETIME>0 && gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nogrb.gti',(START+STOP)/2) && (angsep(RA_SUN,DEC_SUN,RA_ZENITH,DEC_ZENITH)>115 || gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nosolarflares.gti',(START+STOP)/2))
real 0.51
user 0.35
sys 0.15

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/17321/ft1_filtered_4FGL_J1351.0+0029_daily_bin983.fits evtable="EVENTS" scfile=/scratch/kocevski/17321/ft2_4FGL_J1351.0+0029_daily_bin983.fits sctable="SC_DATA" expcube=/scratch/kocevski/17321/ltcube_494121601_494380801_4FGL_J1351.0+0029_daily_bin983.fits outfile=/scratch/kocevski/17321/expmap_494121601_494380801_4FGL_J1351.0+0029_daily_bin983.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/17321/ltcube_494121601_494380801_4FGL_J1351.0+0029_daily_bin983.fits
.....................!
real 192.42
user 187.16
sys 4.59

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/17321/ft1_filtered_4FGL_J1351.0+0029_daily_bin983.fits scfile=/scratch/kocevski/17321/ft2_4FGL_J1351.0+0029_daily_bin983.fits outfile=/scratch/kocevski/17321/cmap_494121601_494380801_4FGL_J1351.0+0029_daily_bin983.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.41
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/17321/ft1_filtered_4FGL_J1351.0+0029_daily_bin983.fits scfile=/scratch/kocevski/17321/ft2_4FGL_J1351.0+0029_daily_bin983.fits outfile=/scratch/kocevski/17321/cmap_HighResolution_494121601_494380801_4FGL_J1351.0+0029_daily_bin983.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.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    2.9127       1.0000         .10000E-03   10000.    
     2 'norm      '    .10014E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10152E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    1.1039       1.0000         .10000E-03   10000.    
     6 'Prefactor '    60.205       1.0000         .10000E-03   10000.    
     7 'norm      '    .10149E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10111E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .53211       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    .10036E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10037E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .10061E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10026E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    14.147       1.0000         .10000E-03   10000.    
    16 'norm      '    .10060E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    3.5835       1.0000         .10000E-03   10000.    
    18 'norm      '    .81060       1.0000         .10000E-03   10000.    
    19 'Prefactor '    71.636       1.0000         .10000E-03   10000.    
    20 'Normalizat'    1.2934       1.0000         .10000E-01   10.000    
    21 'Prefactor '    .96663       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=   6922.177     FROM MIGRAD    STATUS=CONVERGED    781 CALLS     2486 TOTAL
                     EDM=   .58E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          2.9112        5.7621        .11903E-02   -.22675E-04
   2  norm          .10000E-03    4.1952        .16640E-02** at limit **
   3  Prefactor     .10000E-03    12.925        .18142E-02** at limit **
   4  Prefactor     .10000E-03    4.9968        .18128E-02** at limit **
   5  norm          1.1036        1.2158        .22566E-03    .93708E-04
   6  Prefactor     60.179        54.226        .25855E-03    .12840E-04
   7  norm          .10000E-03    15.797        .18142E-02** at limit **
   8  Prefactor     .10000E-03    2.5467        .12870E-02** at limit **
   9  Prefactor     .43806        25.935        .10002        .47714E-03
  10  Prefactor     .10000E-03    1.0218        .82109E-03** at limit **
  11  norm          .10000E-03    2.9768        .13966E-02** at limit **
  12  Prefactor     .10000E-03    4.3681        .16961E-02** at limit **
  13  norm          .10000E-03    1.2023        .17570E-03** at limit **
  14  Prefactor     .10000E-03    8.5204        .18142E-02** at limit **
  15  norm          14.145        12.365        .10649E-03    .73663E-05
  16  norm          .10000E-03    6.9456        .18142E-02** at limit **
  17  Prefactor     3.6026        25.791        .21347E-03   -.44096E-04
  18  norm          .74349        206.16        .77559E-02    .19362E-03
  19  Prefactor     71.543        73.173        .23716E-03    .63757E-05
  20  Normalizat    1.2936        .24660        .27512E-03    .58388E-04
  21  Prefactor     .96671        .16892        .21643E-03   -.43125E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 2.9112
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 1.10356
  Prefactor  = 60.1789
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.438058
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 14.1448
  norm       = 0.0001
  Prefactor  = 3.60263
  norm       = 0.743485
  Prefactor  = 71.5433
  Normalizat = 1.29363
  Prefactor  = 0.966709
 **********
 **   18 **HESSE 
 **********

 FCN=   6922.177     FROM HESSE     STATUS=OK           311 CALLS     2797 TOTAL
                     EDM=   .44E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          2.9112        5.7610        .47612E-04   -1.5367    
   2  norm          .10000E-03    4.1952        .33279E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    12.928        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    4.9976        .36256E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          1.1036        1.2156        .90263E-05   -1.5498    
   6  Prefactor     60.179        54.223        .10342E-04   -1.4155    
   7  norm          .10000E-03    15.797        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    2.5474        .25739E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .43806        24.174        .10455       -1.5576    
  10  Prefactor     .10000E-03    1.0218        .16422E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .10000E-03    2.9773        .27931E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    4.3684        .33923E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .10000E-03    1.2024        .35141E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    8.5210        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          14.145        12.364        .42596E-05   -1.4956    
  16  norm          .10000E-03    6.9510        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     3.6026        25.474        .85389E-05   -1.5328    
  18  norm          .74349        208.86        .31024E-03   -1.5536    
  19  Prefactor     71.543        73.134        .94863E-05   -1.4014    
  20  Normalizat    1.2936        .24664        .11005E-04   -.83757    
  21  Prefactor     .96671        .16861        .86573E-05   -.93848    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.39444e-09
Minuit parameter uncertainties:
  1  5.76213
  2  7.07812e-07
  3  1.11405e-05
  4  6.17233e-07
  5  1.21559
  6  54.268
  7  4.76104e-07
  8  7.87351e-07
  9  6.51033
  10  9.35227e-07
  11  3.9214e-06
  12  6.1316e-06
  13  3.81472e-06
  14  1.43859e-05
  15  12.3665
  16  1.77339e-05
  17  19.1708
  18  25.0096
  19  73.2258
  20  0.246864
  21  0.168702
Done.

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

Extracting fit parameters...

4FGL J1351.0+0029
   Spectrum: PowerLaw
252    Prefactor:  4.381e-01  6.510e+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

GAL_V02
   Spectrum: PowerLaw
511    Prefactor:  9.667e-01  1.687e-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.294e+00  2.469e-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.06e-07 ph cm-2 s-1
Energy Flux Upper Limit: 8.20e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/17321/likelihoodResults_494121601_494380801_4FGL_J1351.0+0029_daily_bin983.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) = 6921.6649754
delta logL = 0.51203469314

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6921.6575642
delta logL = 0.519445899106

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .95243       1.0000         .10000E-03   10000.    
     2 'Index     '    4.3459       1.0000          .0000       10.000    
     3 'Normalizat'    1.2157       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .99894       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=   6921.658     FROM MIGRAD    STATUS=CONVERGED     57 CALLS      238 TOTAL
                     EDM=   .56E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .95586        17.920        .12996E-01    .11692E-02
   2  Index         4.3459        3.1391        .11699        .17814E-03
   3  Normalizat    1.2154        .45926E-01    .63877E-01    .12204E-04
   4  Prefactor     .99905        .31890E-01    .46254E-01    .97866E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.955857
  Index      = 4.34592
  Normalizat = 1.21539
  Prefactor  = 0.999049
 **********
 **   18 **HESSE 
 **********

 FCN=   6921.658     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      271 TOTAL
                     EDM=   .15E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .95586        50.588        .82882E-04   -1.5512    
   2  Index         4.3459        7.1720        .67101E-02   -.13119    
   3  Normalizat    1.2154        .20228        .28256E-03   -.86129    
   4  Prefactor     .99905        .13844        .21328E-03   -.92761    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.52739e-09
Minuit parameter uncertainties:
  1  13.9193
  2  7.27645
  3  0.202406
  4  0.138485
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/17321': 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) = 6921.6575586
delta logL = 0.519451493913

Extracting fit parameters...

4FGL J1351.0+0029
   Spectrum: PowerLaw
252    Prefactor:  9.559e-01  1.392e+01  1.000e-04  1.000e+04 ( 1.000e-13)
253        Index:  4.346e+00  7.276e+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.990e-01  1.385e-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.215e+00  2.024e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.13
Ra Dec: 207.757 0.487
Photon Index (Free Index): 4.35 +/- 7.28
Photon Flux (Free Index): 6.36e-08 +/- 6.57e-08
Energy Flux (Free Index): 9.05e-06 +/- 1.22e-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/17321/cmap_HighResolution_494121601_494380801_4FGL_J1351.0+0029_daily_bin983.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='8.20e-03', comment='SUCCESS', energy_flux2='9.05e-06', dlogl='5.19e-01', photon_flux2='6.36e-08', job_status='DONE', time_completed='2021-09-08 15:40:21.809629', photon_index_error2='7.28', photon_index2='4.35', ts='0.00', fit_tolerance='1e-08', GAL='0.97', photon_index_error='0.00', photon_flux_upper_limit='1.06e-07', energy_flux_error2='1.22e-05', EG='1.29', time_epoch_completed='1631140821.81', return_code='0', job_id='17321', GAL2='1.00', EG2='1.22', return_code2='102', photon_flux_error2='6.57e-08', ts2='1.13', photon_index='2.44' WHERE bin_id='983' AND source_name='4FGL J1351.0+0029' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  8 15:40:21 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0144>
Subject: Job 17321: <4FGL_J1351.0+0029_daily_bin983> in cluster <slac> Done

Job <4FGL_J1351.0+0029_daily_bin983> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Wed Sep  8 15:25:44 2021
Job was executed on host(s) <bullet0144>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep  8 15:26:47 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:26:47 2021
Terminated at Wed Sep  8 15:40:22 2021
Results reported at Wed Sep  8 15:40:22 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1351.0+0029_daily_bin983 207.757 0.4873 494121601 494380801 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 :                                   625.43 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             302.40 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   818 sec.
    Turnaround time :                            878 sec.

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

