/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 97 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 = 7404
number of fields = 22
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J1351.0+0029_daily_bin60
RA = 207.757, Dec = 0.4873
tmin = 254880001, tmax = 255139201
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='11869', job_status='RUN', time_executed='2021-09-08 15:12:30.444391', time_epoch_executed='1631139150.44' WHERE source_name='4FGL J1351.0+0029' and cadence='daily' and bin_id='60'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/11869

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/11869/ft1_4FGL_J1351.0+0029_daily_bin60.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/11869/ft2_4FGL_J1351.0+0029_daily_bin60.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/11869/ft1_4FGL_J1351.0+0029_daily_bin60.fits outfile=/scratch/kocevski/11869/ft1_filteredMKT_4FGL_J1351.0+0029_daily_bin60.fits ra=207.757 dec=0.4873 rad=12.0 tmin=254880001.0 tmax=255139201.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 1.50
user 1.28
sys 0.16

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/11869/ft1_filtered_4FGL_J1351.0+0029_daily_bin60.fits" evtable="EVENTS" scfile=/scratch/kocevski/11869/ft2_4FGL_J1351.0+0029_daily_bin60.fits sctable="SC_DATA" outfile=/scratch/kocevski/11869/ltcube_254880001_255139201_4FGL_J1351.0+0029_daily_bin60.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/11869/ft2_4FGL_J1351.0+0029_daily_bin60.fits
.....................!
real 16.33
user 15.89
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/11869/ft1_filtered_4FGL_J1351.0+0029_daily_bin60.fits evtable="EVENTS" scfile=/scratch/kocevski/11869/ft2_4FGL_J1351.0+0029_daily_bin60.fits sctable="SC_DATA" expcube=/scratch/kocevski/11869/ltcube_254880001_255139201_4FGL_J1351.0+0029_daily_bin60.fits outfile=/scratch/kocevski/11869/expmap_254880001_255139201_4FGL_J1351.0+0029_daily_bin60.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/11869/ltcube_254880001_255139201_4FGL_J1351.0+0029_daily_bin60.fits
.....................!
real 192.18
user 186.45
sys 4.33

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/11869/ft1_filtered_4FGL_J1351.0+0029_daily_bin60.fits scfile=/scratch/kocevski/11869/ft2_4FGL_J1351.0+0029_daily_bin60.fits outfile=/scratch/kocevski/11869/cmap_254880001_255139201_4FGL_J1351.0+0029_daily_bin60.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.54
user 0.38
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/11869/ft1_filtered_4FGL_J1351.0+0029_daily_bin60.fits scfile=/scratch/kocevski/11869/ft2_4FGL_J1351.0+0029_daily_bin60.fits outfile=/scratch/kocevski/11869/cmap_HighResolution_254880001_255139201_4FGL_J1351.0+0029_daily_bin60.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.55
user 0.39
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    3.2027       1.0000         .10000E-03   10000.    
     2 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    8.5004       1.0000         .10000E-03   10000.    
     5 'norm      '    5.6468       1.0000         .10000E-03   10000.    
     6 'Prefactor '    20.513       1.0000         .10000E-03   10000.    
     7 'norm      '    .10020E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    3.9018       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10033E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    16.396       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .12093E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .97556       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .13414       1.0000         .10000E-03   10000.    
    15 'norm      '    2.9597       1.0000         .10000E-03   10000.    
    16 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10031E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    6.6835       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .16232E-03   1.0000         .10000E-03   10000.    
    20 'Normalizat'    1.3727       1.0000         .10000E-01   10.000    
    21 'Prefactor '    .81131       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=   9496.090     FROM MIGRAD    STATUS=CONVERGED    466 CALLS     2242 TOTAL
                     EDM=   .85E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          3.2032        6.1101        .56599E-02   -.46902E-03
   2  norm          .10000E-03    3.0002        .90712E-02** at limit **
   3  Prefactor     .10000E-03    4.5354        .90712E-02** at limit **
   4  Prefactor     8.4982        8.0217        .34373E-02    .42039E-03
   5  norm          5.6469        1.5288        .42262E-02    .18231E-03
   6  Prefactor     20.614        49.890        .22108E-02   -.65728E-03
   7  norm          .10000E-03    7.5271        .90712E-02** at limit **
   8  Prefactor     3.9013        3.4362        .51064E-02    .57395E-03
   9  Prefactor     .10000E-03    12.604        .90712E-02** at limit **
  10  Prefactor     .10000E-03    1.1119        .90712E-02** at limit **
  11  norm          16.395        6.6180        .24728E-02   -.22833E-02
  12  Prefactor     .10000E-03    5.8080        .90712E-02** at limit **
  13  norm          .97603        1.6986        .34147E-01    .14597E-02
  14  Prefactor     .91042E-01    11.117        .11204        .98864E-05
  15  norm          2.9590        6.8476        .59010E-02   -.51053E-03
  16  norm          .10000E-03    3.0557        .90712E-02** at limit **
  17  Prefactor     .10000E-03    14.717        .90712E-02** at limit **
  18  norm          6.6926        9.9278        .38804E-02   -.27188E-03
  19  Prefactor     .10000E-03    46.391        .90712E-02** at limit **
  20  Normalizat    1.3727        .17376        .59189E-01   -.33991E-04
  21  Prefactor     .81125        .11898        .43864E-01   -.25572E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 3.20318
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 8.49824
  norm       = 5.64689
  Prefactor  = 20.6138
  norm       = 0.0001
  Prefactor  = 3.90134
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 16.3946
  Prefactor  = 0.0001
  norm       = 0.976034
  Prefactor  = 0.0910423
  norm       = 2.95897
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 6.69256
  Prefactor  = 0.0001
  Normalizat = 1.37267
  Prefactor  = 0.811251
 **********
 **   18 **HESSE 
 **********

 FCN=   9496.090     FROM HESSE     STATUS=OK           325 CALLS     2567 TOTAL
                     EDM=   .89E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          3.2032        6.0942        .22640E-03   -1.5350    
   2  norm          .10000E-03    3.0009        .16484E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    4.5423        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     8.4982        8.0236        .13749E-03   -1.5125    
   5  norm          5.6469        1.5313        .59761E-04   -1.5233    
   6  Prefactor     20.614        49.888        .88434E-04   -1.4800    
   7  norm          .10000E-03    7.5313        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     3.9013        3.4415        .16068E-03   -1.5313    
   9  Prefactor     .10000E-03    12.670        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    1.1169        .10034E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          16.395        6.6113        .98914E-04   -1.4898    
  12  Prefactor     .10000E-03    5.8519        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .97603        1.5445        .15904E-02   -1.5510    
  14  Prefactor     .91042E-01    15.130        .91542E-01   -1.5648    
  15  norm          2.9590        6.8358        .23604E-03   -1.5364    
  16  norm          .10000E-03    3.0812        .16630E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    14.780        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          6.6926        9.9223        .15521E-03   -1.5191    
  19  Prefactor     .10000E-03    46.480        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Normalizat    1.3727        .21064        .26176E-03   -.81422    
  21  Prefactor     .81125        .14394        .22969E-03   -.99315    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.92394e-09
Minuit parameter uncertainties:
  1  6.0954
  2  6.27184e-07
  3  1.57925e-07
  4  8.02456
  5  1.53136
  6  49.9893
  7  1.36538e-06
  8  3.44171
  9  1.11749e-05
  10  1.10234e-06
  11  6.61157
  12  1.02526e-06
  13  1.54455
  14  2.3466
  15  6.83765
  16  4.76674e-07
  17  3.21112e-05
  18  9.92469
  19  1.02019e-05
  20  0.210773
  21  0.144005
Done.

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

Extracting fit parameters...

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

GAL_V02
   Spectrum: PowerLaw
511    Prefactor:  8.113e-01  1.440e-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.373e+00  2.108e-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: 6.58e-08 ph cm-2 s-1
Energy Flux Upper Limit: 5.09e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/11869/likelihoodResults_254880001_255139201_4FGL_J1351.0+0029_daily_bin60.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) = 9496.0905196
delta logL = -0.000376147752831

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 9496.09014347
delta logL = -1.33477442432e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.4359       1.0000          .0000       10.000    
     3 'Normalizat'    1.3726       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .81127       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=   9496.090     FROM MIGRAD    STATUS=CONVERGED     54 CALLS      209 TOTAL
                     EDM=   .12E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    16.945        .90712E-02** at limit **
   2  Index         2.4350        6.8486        .50000        .63342E-06
   3  Normalizat    1.3727        .48946E-02    .59189E-01    .57580E-04
   4  Prefactor     .81125        .34200E-02    .43864E-01    .65835E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 2.43503
  Normalizat = 1.37267
  Prefactor  = 0.811251
 **********
 **   18 **HESSE 
 **********

 FCN=   9496.090     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      242 TOTAL
                     EDM=   .12E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    175.86        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.4350        8.5482        .50000       -.53867    
   3  Normalizat    1.3727        .15958E-01    .26176E-03   -.81422    
   4  Prefactor     .81125        .11152E-01    .22969E-03   -.99315    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.2448e-08
Minuit parameter uncertainties:
  1  5.66732e-05
  2  771.121
  3  0.0159578
  4  0.0111519
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/11869': 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) = 9496.09014346
delta logL = 2.51020537689e-10

Extracting fit parameters...

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

GAL_V02
   Spectrum: PowerLaw
511    Prefactor:  8.113e-01  1.115e-02  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.373e+00  1.596e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 207.757 0.487

Creating a high resolution counts map...
INFO: Auto-setting vmin to -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/11869/cmap_HighResolution_254880001_255139201_4FGL_J1351.0+0029_daily_bin60.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.09e-03', job_status='DONE', photon_flux_upper_limit='6.58e-08', time_completed='2021-09-08 15:24:29.909321', job_id='11869', GAL2='0.81', fit_tolerance='1e-08', EG2='1.37', EG='1.37', time_epoch_completed='1631139869.91', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.81', dlogl='2.51e-10', ts2='-0.00', photon_index_error='0.00', photon_index='2.44' WHERE bin_id='60' AND source_name='4FGL J1351.0+0029' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  8 15:24:29 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0109>
Subject: Job 11869: <4FGL_J1351.0+0029_daily_bin60> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1351.0+0029_daily_bin60 207.757 0.4873 254880001 255139201 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 :                                   712.25 sec.
    Max Memory :                                 1255 MB
    Average Memory :                             333.82 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   827 sec.
    Turnaround time :                            851 sec.

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

