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


Performing analysis on: 4FGL_J1351.0+0029_daily_bin183
RA = 207.757, Dec = 0.4873
tmin = 286761601, tmax = 287020801
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='12053', job_status='RUN', time_executed='2021-09-08 15:14:45.988067', time_epoch_executed='1631139285.99' WHERE source_name='4FGL J1351.0+0029' and cadence='daily' and bin_id='183'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/12053

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/12053/ft1_4FGL_J1351.0+0029_daily_bin183.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/12053/ft2_4FGL_J1351.0+0029_daily_bin183.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/12053/ft1_4FGL_J1351.0+0029_daily_bin183.fits outfile=/scratch/kocevski/12053/ft1_filteredMKT_4FGL_J1351.0+0029_daily_bin183.fits ra=207.757 dec=0.4873 rad=12.0 tmin=286761601.0 tmax=287020801.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.80
user 3.51
sys 0.24

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/12053/ft2_4FGL_J1351.0+0029_daily_bin183.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/12053/ft1_filteredMKT_4FGL_J1351.0+0029_daily_bin183.fits evtable="EVENTS" outfile="/scratch/kocevski/12053/ft1_filtered_4FGL_J1351.0+0029_daily_bin183.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.54
user 0.35
sys 0.18

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/12053/ft1_filtered_4FGL_J1351.0+0029_daily_bin183.fits evtable="EVENTS" scfile=/scratch/kocevski/12053/ft2_4FGL_J1351.0+0029_daily_bin183.fits sctable="SC_DATA" expcube=/scratch/kocevski/12053/ltcube_286761601_287020801_4FGL_J1351.0+0029_daily_bin183.fits outfile=/scratch/kocevski/12053/expmap_286761601_287020801_4FGL_J1351.0+0029_daily_bin183.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/12053/ltcube_286761601_287020801_4FGL_J1351.0+0029_daily_bin183.fits
.....................!
real 194.48
user 187.73
sys 5.79

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/12053/ft1_filtered_4FGL_J1351.0+0029_daily_bin183.fits scfile=/scratch/kocevski/12053/ft2_4FGL_J1351.0+0029_daily_bin183.fits outfile=/scratch/kocevski/12053/cmap_286761601_287020801_4FGL_J1351.0+0029_daily_bin183.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.58
user 0.39
sys 0.16

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

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    10.941       1.0000         .10000E-03   10000.    
     2 'norm      '    13.388       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10544E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    9.0289       1.0000         .10000E-03   10000.    
     5 'norm      '    17.131       1.0000         .10000E-03   10000.    
     6 'Prefactor '    40.020       1.0000         .10000E-03   10000.    
     7 'norm      '    .10004E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    4.6186       1.0000         .10000E-03   10000.    
     9 'Prefactor '    64.542       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    3.2020       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .20460E-01   1.0000         .10000E-03   10000.    
    13 'norm      '    3.2981       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10080E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    14.916       1.0000         .10000E-03   10000.    
    16 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'Normalizat'    1.4487       1.0000         .10000E-01   10.000    
    21 'Prefactor '    .77177       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=   6410.224     FROM MIGRAD    STATUS=CONVERGED    440 CALLS     2166 TOTAL
                     EDM=   .14E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          10.940        12.908       -.54975E-06   -.15199E-03
   2  norm          13.388        13.432       -.55280E-07    .28089E-05
   3  Prefactor     .10000E-03    61.539        .40832E-04** at limit **
   4  Prefactor     9.0326        12.684       -.10542E-05   -.60709E-04
   5  norm          17.131        3.1625       -.29848E-07   -.51342E-03
   6  Prefactor     40.030        58.030        .11220E-04    .13325E-05
   7  norm          .10000E-03    36.692       -.10641E-04** at limit **
   8  Prefactor     4.6187        3.8832       -.16637E-06   -.21729E-03
   9  Prefactor     64.500        30.372       -.16924E-04   -.19791E-03
  10  Prefactor     .10000E-03    1.4557       -.35686E-07** at limit **
  11  norm          3.2024        4.5094       -.12248E-05   -.13861E-03
  12  Prefactor     .10117E-03    10.461        .20877E-05** at limit **
  13  norm          3.2987        2.5207       -.12583E-06   -.18602E-03
  14  Prefactor     .10000E-03    31.593        .11003E-04** at limit **
  15  norm          14.918        15.458       -.43490E-06   -.23305E-04
  16  norm          .10000E-03    3.9500       -.16414E-07** at limit **
  17  Prefactor     .10000E-03    5.8257        .43174E-07** at limit **
  18  norm          .10000E-03    5.9045       -.11550E-06** at limit **
  19  Prefactor     .10000E-03    36.557       -.10887E-04** at limit **
  20  Normalizat    1.4484        .23893        .25517E-05   -.52662E-03
  21  Prefactor     .77181        .15763        .59338E-06   -.35809E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 10.94
  norm       = 13.388
  Prefactor  = 0.000100001
  Prefactor  = 9.03259
  norm       = 17.1314
  Prefactor  = 40.0298
  norm       = 0.0001
  Prefactor  = 4.61868
  Prefactor  = 64.4997
  Prefactor  = 0.0001
  norm       = 3.20236
  Prefactor  = 0.000101165
  norm       = 3.29868
  Prefactor  = 0.0001
  norm       = 14.9181
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Normalizat = 1.4484
  Prefactor  = 0.771811
 **********
 **   18 **HESSE 
 **********

 FCN=   6410.224     FROM HESSE     STATUS=OK           315 CALLS     2481 TOTAL
                     EDM=   .15E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          10.940        12.904        .12112E-03   -1.5046    
   2  norm          13.388        13.432        .10947E-03   -1.4976    
   3  Prefactor     .10000E-03    61.747        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     9.0326        12.716        .13339E-03   -1.5107    
   5  norm          17.131        3.1682        .57686E-04   -1.4880    
   6  Prefactor     40.030        58.077        .63362E-04   -1.4442    
   7  norm          .10000E-03    36.744        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     4.6187        3.8856        .13899E-03   -1.5278    
   9  Prefactor     64.500        30.377        .49952E-04   -1.4100    
  10  Prefactor     .10000E-03    1.4579        .94332E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          3.2024        4.5025        .19648E-03   -1.5350    
  12  Prefactor     .10117E-03    76.464        .49365E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          3.2987        2.5158        .10701E-03   -1.5345    
  14  Prefactor     .10000E-03    31.943        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          14.918        15.479        .10371E-03   -1.4935    
  16  norm          .10000E-03    3.9626        .15538E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    5.8273        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          .10000E-03    5.9052        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    36.564        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Normalizat    1.4484        .28678        .28846E-03   -.79239    
  21  Prefactor     .77181        .18866        .25576E-03   -1.0078    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.51232e-08
Minuit parameter uncertainties:
  1  12.9076
  2  13.4352
  3  0.00051642
  4  12.7198
  5  3.16823
  6  58.1589
  7  7.54047e-05
  8  3.88584
  9  30.3839
  10  4.24584e-06
  11  4.50301
  12  0.018901
  13  2.51591
  14  3.81284e-05
  15  15.4829
  16  4.62858e-06
  17  2.65919e-06
  18  2.04755e-06
  19  1.3692e-05
  20  0.287097
  21  0.188816
Done.

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

Extracting fit parameters...

4FGL J1351.0+0029
   Spectrum: PowerLaw
252    Prefactor:  6.450e+01  3.038e+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:  7.718e-01  1.888e-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.448e+00  2.871e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 12.51
Ra Dec: 207.757 0.487
Photon Index (Fixed Index): 2.44 +/- 0.00
Photon Flux (Fixed Index): 1.23e-07 +/- 5.78e-08
Energy Flux (Fixed Index): 3.84e-05 +/- 1.81e-05

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) = 6409.8288794
delta logL = 0.395369088362

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6409.82820605
delta logL = 0.396042435122

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    82.768       1.0000         .10000E-03   10000.    
     2 'Index     '    2.0741       1.0000          .0000       10.000    
     3 'Normalizat'    1.4901       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .75226       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=   6409.828     FROM MIGRAD    STATUS=CONVERGED     89 CALLS      304 TOTAL
                     EDM=   .38E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     82.775        42.369        .44151E-04    .10300E-04
   2  Index         2.0740        .39515        .59853E-02    .20176E-03
   3  Normalizat    1.4902        .27990        .28520E-03    .24037E-04
   4  Prefactor     .75216        .18656        .25873E-03   -.18235E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 82.7745
  Index      = 2.07404
  Normalizat = 1.4902
  Prefactor  = 0.75216
 **********
 **   18 **HESSE 
 **********

 FCN=   6409.828     FROM HESSE     STATUS=OK            25 CALLS      329 TOTAL
                     EDM=   .10E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     82.775        42.103        .88302E-05   -1.3886    
   2  Index         2.0740        .39248        .11971E-02   -.62512    
   3  Normalizat    1.4902        .28011        .11408E-04   -.78054    
   4  Prefactor     .75216        .18672        .10349E-04   -1.0152    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.0057e-11
Minuit parameter uncertainties:
  1  42.1177
  2  0.3931
  3  0.280402
  4  0.186875
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/12053': 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) = 6409.82820588
delta logL = 0.396042602214

Extracting fit parameters...

4FGL J1351.0+0029
   Spectrum: PowerLaw
252    Prefactor:  8.277e+01  4.212e+01  1.000e-04  1.000e+04 ( 1.000e-13)
253        Index:  2.074e+00  3.931e-01  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:  7.522e-01  1.869e-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.490e+00  2.804e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 13.23
Ra Dec: 207.757 0.487
Photon Index (Free Index): 2.07 +/- 0.39
Photon Flux (Free Index): 9.14e-08 +/- 5.94e-08
Energy Flux (Free Index): 5.31e-05 +/- 3.57e-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/12053/cmap_HighResolution_286761601_287020801_4FGL_J1351.0+0029_daily_bin183.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='1.23e-07', energy_flux2='5.31e-05', photon_flux_error='5.78e-08', dlogl='3.96e-01', energy_flux='3.84e-05', photon_flux2='9.14e-08', job_status='DONE', time_completed='2021-09-08 15:24:01.438382', photon_index_error2='0.39', photon_index2='2.07', ts='12.51', fit_tolerance='1e-08', GAL='0.77', photon_index_error='0.00', energy_flux_error2='3.57e-05', EG='1.45', time_epoch_completed='1631139841.44', return_code='0', job_id='12053', GAL2='0.75', EG2='1.49', return_code2='0', energy_flux_error='1.81e-05', photon_flux_error2='5.94e-08', ts2='13.23', photon_index='2.44' WHERE bin_id='183' AND source_name='4FGL J1351.0+0029' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  8 15:24:01 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0262>
Subject: Job 12053: <4FGL_J1351.0+0029_daily_bin183> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1351.0+0029_daily_bin183 207.757 0.4873 286761601 287020801 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 :                                   545.00 sec.
    Max Memory :                                 1141 MB
    Average Memory :                             296.16 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   736 sec.
    Turnaround time :                            810 sec.

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

