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


Performing analysis on: 4FGL_J1351.3+1115_daily_bin1236
RA = 207.843, Dec = 11.2502
tmin = 559699201, tmax = 559958401
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='25320', job_status='RUN', time_executed='2021-09-08 15:54:09.998798', time_epoch_executed='1631141650.0' WHERE source_name='4FGL J1351.3+1115' and cadence='daily' and bin_id='1236'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/25320

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/25320/ft1_4FGL_J1351.3+1115_daily_bin1236.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/25320/ft2_4FGL_J1351.3+1115_daily_bin1236.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/25320/ft1_4FGL_J1351.3+1115_daily_bin1236.fits outfile=/scratch/kocevski/25320/ft1_filteredMKT_4FGL_J1351.3+1115_daily_bin1236.fits ra=207.843 dec=11.2502 rad=12.0 tmin=559699201.0 tmax=559958401.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.66
user 3.41
sys 0.22

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/25320/ft2_4FGL_J1351.3+1115_daily_bin1236.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/25320/ft2_4FGL_J1351.3+1115_daily_bin1236.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/25320/ft1_filteredMKT_4FGL_J1351.3+1115_daily_bin1236.fits evtable="EVENTS" outfile="/scratch/kocevski/25320/ft1_filtered_4FGL_J1351.3+1115_daily_bin1236.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.58
user 0.36
sys 0.16

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/25320/ft1_filtered_4FGL_J1351.3+1115_daily_bin1236.fits" evtable="EVENTS" scfile=/scratch/kocevski/25320/ft2_4FGL_J1351.3+1115_daily_bin1236.fits sctable="SC_DATA" outfile=/scratch/kocevski/25320/ltcube_559699201_559958401_4FGL_J1351.3+1115_daily_bin1236.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/25320/ft2_4FGL_J1351.3+1115_daily_bin1236.fits
.....................!
real 13.45
user 13.06
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/25320/ft1_filtered_4FGL_J1351.3+1115_daily_bin1236.fits evtable="EVENTS" scfile=/scratch/kocevski/25320/ft2_4FGL_J1351.3+1115_daily_bin1236.fits sctable="SC_DATA" expcube=/scratch/kocevski/25320/ltcube_559699201_559958401_4FGL_J1351.3+1115_daily_bin1236.fits outfile=/scratch/kocevski/25320/expmap_559699201_559958401_4FGL_J1351.3+1115_daily_bin1236.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/25320/ltcube_559699201_559958401_4FGL_J1351.3+1115_daily_bin1236.fits
.....................!
real 190.80
user 185.28
sys 4.98

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 150 point sources and 0 extended sources

Setting source of interest to:
4FGL J1351.3+1115 @ 207.843 11.2502

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/25320/ft1_filtered_4FGL_J1351.3+1115_daily_bin1236.fits scfile=/scratch/kocevski/25320/ft2_4FGL_J1351.3+1115_daily_bin1236.fits outfile=/scratch/kocevski/25320/cmap_559699201_559958401_4FGL_J1351.3+1115_daily_bin1236.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.843 yref=11.2502 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.38
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/25320/ft1_filtered_4FGL_J1351.3+1115_daily_bin1236.fits scfile=/scratch/kocevski/25320/ft2_4FGL_J1351.3+1115_daily_bin1236.fits outfile=/scratch/kocevski/25320/cmap_HighResolution_559699201_559958401_4FGL_J1351.3+1115_daily_bin1236.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.843 yref=11.2502 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.38
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/25320/ft1_filtered_4FGL_J1351.3+1115_daily_bin1236.fits evtable="EVENTS" scfile=/scratch/kocevski/25320/ft2_4FGL_J1351.3+1115_daily_bin1236.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/25320/Model_4FGL_J1351.3+1115_daily_bin1236.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/25320/ft1_filtered_4FGL_J1351.3+1115_daily_bin1236.fits.....................!
real 49.34
user 48.05
sys 1.09

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/25320/ft1_filtered_4FGL_J1351.3+1115_daily_bin1236.fits', '/scratch/kocevski/25320/ft2_4FGL_J1351.3+1115_daily_bin1236.fits', expMap='/scratch/kocevski/25320/expmap_559699201_559958401_4FGL_J1351.3+1115_daily_bin1236.fits', expCube='/scratch/kocevski/25320/ltcube_559699201_559958401_4FGL_J1351.3+1115_daily_bin1236.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/25320/Model_4FGL_J1351.3+1115_daily_bin1236.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1351.3+1115'

4FGL J1351.3+1115
   Spectrum: PowerLaw
263    Prefactor:  1.085e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-13)
264        Index:  1.884e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
265        Scale:  2.645e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/25320/ft1_filtered_4FGL_J1351.3+1115_daily_bin1236.fits
Spacecraft file(s): /scratch/kocevski/25320/ft2_4FGL_J1351.3+1115_daily_bin1236.fits
Exposure map: /scratch/kocevski/25320/expmap_559699201_559958401_4FGL_J1351.3+1115_daily_bin1236.fits
Exposure cube: /scratch/kocevski/25320/ltcube_559699201_559958401_4FGL_J1351.3+1115_daily_bin1236.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/25320/Model_4FGL_J1351.3+1115_daily_bin1236.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) = 6386.33779599

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    8.1874       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10113E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    1.5373       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    2.1030       1.0000         .10000E-03   10000.    
     7 'Prefactor '    4.4553       1.0000         .10000E-03   10000.    
     8 'Prefactor '    7.9327       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    31.687       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10044E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    21.527       1.0000         .10000E-03   10000.    
    14 'Prefactor '    5.5675       1.0000         .10000E-03   10000.    
    15 'Prefactor '    2.0548       1.0000         .10000E-03   10000.    
    16 'Normalizat'    1.0920       1.0000         .10000E-01   10.000    
    17 'Prefactor '    1.1806       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .4920E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   6386.328     FROM MIGRAD    STATUS=CONVERGED    332 CALLS     1583 TOTAL
                     EDM=   .15E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     8.1872        13.034        .12154E-06   -.29502E-05
   2  Prefactor     .10000E-03    16.242       -.13989E-04** at limit **
   3  Prefactor     .10000E-03    71.716       -.98179E-05** at limit **
   4  Prefactor     1.5370        4.2315        .84464E-08   -.15298E-03
   5  Prefactor     .10000E-03    13.920        .18333E-04** at limit **
   6  Prefactor     2.1029        2.6177        .53349E-08    .16854E-04
   7  Prefactor     4.4544        15.004       -.35159E-07   -.32236E-03
   8  Prefactor     7.9336        11.049        .17144E-06   -.37109E-03
   9  Prefactor     .10000E-03    9.5936        .89760E-06** at limit **
  10  Prefactor     .10000E-03    11.854       -.76096E-05** at limit **
  11  Prefactor     31.692        40.136        .37945E-05    .16593E-04
  12  Prefactor     .10000E-03    36.817        .84953E-05** at limit **
  13  norm          21.528        21.615        .16774E-06   -.12711E-04
  14  Prefactor     5.5692        5.8896       -.68985E-06   -.42480E-04
  15  Prefactor     2.0535        2.5203        .99560E-06   -.32532E-02
  16  Normalizat    1.0919        .22203       -.80729E-06   -.46903E-04
  17  Prefactor     1.1807        .16431       -.96320E-07   -.18371E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 8.18717
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 1.53697
  Prefactor  = 0.000100001
  Prefactor  = 2.10289
  Prefactor  = 4.45444
  Prefactor  = 7.93362
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 31.6915
  Prefactor  = 0.0001
  norm       = 21.5276
  Prefactor  = 5.56923
  Prefactor  = 2.05355
  Normalizat = 1.09193
  Prefactor  = 1.18068
 **********
 **   18 **HESSE 
 **********

 FCN=   6386.328     FROM HESSE     STATUS=OK           227 CALLS     1810 TOTAL
                     EDM=   .20E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     8.1872        13.040        .14011E-03   -1.5136    
   2  Prefactor     .10000E-03    16.265        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    71.991        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     1.5370        4.2046        .26209E-03   -1.5460    
   5  Prefactor     .10000E-03    13.960        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     2.1029        2.6100        .14035E-03   -1.5418    
   7  Prefactor     4.4544        15.240        .95385E-03   -1.5286    
   8  Prefactor     7.9336        11.161        .71181E-03   -1.5145    
   9  Prefactor     .10000E-03    9.6101        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    11.866        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     31.692        40.311        .71181E-04   -1.4581    
  12  Prefactor     .10000E-03    36.978        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          21.528        21.618        .86328E-04   -1.4780    
  14  Prefactor     5.5692        5.9476        .17026E-03   -1.5236    
  15  Prefactor     2.0535        6.0646        .14417E-02   -1.5421    
  16  Normalizat    1.0919        .26433        .14836E-02   -.90011    
  17  Prefactor     1.1807        .19485        .22004E-03   -.86928    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.97095e-08
Minuit parameter uncertainties:
  1  13.0448
  2  0.000149991
  3  0.000168764
  4  4.20539
  5  0.000194736
  6  2.61019
  7  15.2529
  8  11.1637
  9  9.35687e-06
  10  7.28534e-05
  11  40.3457
  12  0.000127621
  13  21.6261
  14  5.94822
  15  6.06642
  16  0.26465
  17  0.194971
Done.

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

Extracting fit parameters...

4FGL J1351.3+1115
   Spectrum: PowerLaw
263    Prefactor:  2.103e+00  2.610e+00  1.000e-04  1.000e+04 ( 1.000e-13)
264        Index:  1.884e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
265        Scale:  2.645e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
489    Prefactor:  1.181e+00  1.950e-01  0.000e+00  1.000e+01 ( 1.000e+00)
490        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
491        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
488   Normalization:  1.092e+00  2.647e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.59
Ra Dec: 207.843 11.250
Photon Index (Fixed Index): 1.88 +/- 0.00
Photon Flux (Fixed Index): 1.14e-08 +/- 1.41e-08
Energy Flux (Fixed Index): 1.07e-05 +/- 1.32e-05

TS (Fixed Index): 1.59
Ra Dec: 207.843 11.250
Photon Flux Upper Limit: 6.05e-08 ph cm-2 s-1
Energy Flux Upper Limit: 4.49e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/25320/likelihoodResults_559699201_559958401_4FGL_J1351.3+1115_daily_bin1236.txt

Performing a free index iterative likelihood fit...

Freezing all point sources, except source of interest...

Done.

Freeing candidate source...
Done.

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6386.189211
delta logL = 0.138730319828

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6386.18251236
delta logL = 0.145428958805

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    2.6276       1.0000         .10000E-03   10000.    
     2 'Index     '    1.4547       1.0000          .0000       10.000    
     3 'Normalizat'    1.0971       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1789       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .4920E+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=   6386.183     FROM MIGRAD    STATUS=CONVERGED     85 CALLS      268 TOTAL
                     EDM=   .12E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     2.6276        3.1533        .15172E-03   -.30767E-03
   2  Index         1.4548        .73223        .12992E-01   -.45089E-04
   3  Normalizat    1.0971        .25151        .29610E-03    .35362E-04
   4  Prefactor     1.1789        .19420        .22016E-03    .49883E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 2.62762
  Index      = 1.45475
  Normalizat = 1.09708
  Prefactor  = 1.17893
 **********
 **   18 **HESSE 
 **********

 FCN=   6386.183     FROM HESSE     STATUS=OK            23 CALLS      291 TOTAL
                     EDM=   .13E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     2.6276        3.1510        .60689E-05   -1.5384    
   2  Index         1.4548        .73189        .51966E-03   -.78815    
   3  Normalizat    1.0971        .25179        .11844E-04   -.89846    
   4  Prefactor     1.1789        .19442        .88064E-05   -.86982    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.29551e-10
Minuit parameter uncertainties:
  1  3.15118
  2  0.737247
  3  0.252068
  4  0.194537
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/25320': 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) = 6386.18251233
delta logL = 0.145428987955

Extracting fit parameters...

4FGL J1351.3+1115
   Spectrum: PowerLaw
263    Prefactor:  2.628e+00  3.151e+00  1.000e-04  1.000e+04 ( 1.000e-13)
264        Index:  1.455e+00  7.372e-01  0.000e+00  1.000e+01 (-1.000e+00)
265        Scale:  2.645e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
489    Prefactor:  1.179e+00  1.945e-01  0.000e+00  1.000e+01 ( 1.000e+00)
490        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
491        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
488   Normalization:  1.097e+00  2.521e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.89
Ra Dec: 207.843 11.250
Photon Index (Free Index): 1.45 +/- 0.74
Photon Flux (Free Index): 6.48e-09 +/- 1.02e-08
Energy Flux (Free Index): 2.39e-05 +/- 4.49e-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/25320/cmap_HighResolution_559699201_559958401_4FGL_J1351.3+1115_daily_bin1236.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.49e-03', comment='SUCCESS', photon_flux='1.14e-08', energy_flux2='2.39e-05', photon_flux_error='1.41e-08', dlogl='1.45e-01', energy_flux='1.07e-05', photon_flux2='6.48e-09', job_status='DONE', time_completed='2021-09-08 16:04:02.202264', photon_index_error2='0.74', photon_index2='1.45', ts='1.59', fit_tolerance='1e-08', GAL='1.18', photon_index_error='0.00', photon_flux_upper_limit='6.05e-08', energy_flux_error2='4.49e-05', EG='1.09', time_epoch_completed='1631142242.2', return_code='0', job_id='25320', GAL2='1.18', EG2='1.10', return_code2='0', energy_flux_error='1.32e-05', photon_flux_error2='1.02e-08', ts2='1.89', photon_index='1.88' WHERE bin_id='1236' AND source_name='4FGL J1351.3+1115' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  8 16:04:02 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0064>
Subject: Job 25320: <4FGL_J1351.3+1115_daily_bin1236> in cluster <slac> Done

Job <4FGL_J1351.3+1115_daily_bin1236> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Wed Sep  8 15:50:37 2021
Job was executed on host(s) <bullet0064>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep  8 15:51: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:51:45 2021
Terminated at Wed Sep  8 16:04:02 2021
Results reported at Wed Sep  8 16:04:02 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1351.3+1115_daily_bin1236 207.843 11.2502 559699201 559958401 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1351.3+1115 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   501.24 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             268.70 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   738 sec.
    Turnaround time :                            805 sec.

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

