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


Performing analysis on: 4FGL_J1351.3+1115_daily_bin1655
RA = 207.843, Dec = 11.2502
tmin = 668304001, tmax = 668563201
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='189539', job_status='RUN', time_executed='2022-03-10 00:14:35.577301', time_epoch_executed='1646900075.58' WHERE source_name='4FGL J1351.3+1115' and cadence='daily' and bin_id='1655'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/189539

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/189539/ft1_4FGL_J1351.3+1115_daily_bin1655.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/189539/ft2_4FGL_J1351.3+1115_daily_bin1655.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/189539/ft1_4FGL_J1351.3+1115_daily_bin1655.fits outfile=/scratch/kocevski/189539/ft1_filteredMKT_4FGL_J1351.3+1115_daily_bin1655.fits ra=207.843 dec=11.2502 rad=12.0 tmin=668304001.0 tmax=668563201.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.86
user 3.42
sys 0.27

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/189539/ft2_4FGL_J1351.3+1115_daily_bin1655.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/189539/ft1_filteredMKT_4FGL_J1351.3+1115_daily_bin1655.fits evtable="EVENTS" outfile="/scratch/kocevski/189539/ft1_filtered_4FGL_J1351.3+1115_daily_bin1655.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.53
user 0.33
sys 0.15
Number of photons that survived the gtmktime cut: 590

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/189539/ft1_filtered_4FGL_J1351.3+1115_daily_bin1655.fits" evtable="EVENTS" scfile=/scratch/kocevski/189539/ft2_4FGL_J1351.3+1115_daily_bin1655.fits sctable="SC_DATA" outfile=/scratch/kocevski/189539/ltcube_668304001_668563201_4FGL_J1351.3+1115_daily_bin1655.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/189539/ft2_4FGL_J1351.3+1115_daily_bin1655.fits
.....................!
real 21.90
user 21.40
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/189539/ft1_filtered_4FGL_J1351.3+1115_daily_bin1655.fits evtable="EVENTS" scfile=/scratch/kocevski/189539/ft2_4FGL_J1351.3+1115_daily_bin1655.fits sctable="SC_DATA" expcube=/scratch/kocevski/189539/ltcube_668304001_668563201_4FGL_J1351.3+1115_daily_bin1655.fits outfile=/scratch/kocevski/189539/expmap_668304001_668563201_4FGL_J1351.3+1115_daily_bin1655.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/189539/ltcube_668304001_668563201_4FGL_J1351.3+1115_daily_bin1655.fits
.....................!
real 190.87
user 185.67
sys 4.81

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/189539/ft1_filtered_4FGL_J1351.3+1115_daily_bin1655.fits scfile=/scratch/kocevski/189539/ft2_4FGL_J1351.3+1115_daily_bin1655.fits outfile=/scratch/kocevski/189539/cmap_668304001_668563201_4FGL_J1351.3+1115_daily_bin1655.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.56
user 0.36
sys 0.17

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/189539/ft1_filtered_4FGL_J1351.3+1115_daily_bin1655.fits scfile=/scratch/kocevski/189539/ft2_4FGL_J1351.3+1115_daily_bin1655.fits outfile=/scratch/kocevski/189539/cmap_HighResolution_668304001_668563201_4FGL_J1351.3+1115_daily_bin1655.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.39
sys 0.15

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/189539/ft1_filtered_4FGL_J1351.3+1115_daily_bin1655.fits', '/scratch/kocevski/189539/ft2_4FGL_J1351.3+1115_daily_bin1655.fits', expMap='/scratch/kocevski/189539/expmap_668304001_668563201_4FGL_J1351.3+1115_daily_bin1655.fits', expCube='/scratch/kocevski/189539/ltcube_668304001_668563201_4FGL_J1351.3+1115_daily_bin1655.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/189539/Model_4FGL_J1351.3+1115_daily_bin1655.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/189539/ft1_filtered_4FGL_J1351.3+1115_daily_bin1655.fits
Spacecraft file(s): /scratch/kocevski/189539/ft2_4FGL_J1351.3+1115_daily_bin1655.fits
Exposure map: /scratch/kocevski/189539/expmap_668304001_668563201_4FGL_J1351.3+1115_daily_bin1655.fits
Exposure cube: /scratch/kocevski/189539/ltcube_668304001_668563201_4FGL_J1351.3+1115_daily_bin1655.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/189539/Model_4FGL_J1351.3+1115_daily_bin1655.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) = 6741.81580643

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .24791E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    3.9187       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10174E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10033E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    2.5268       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    92.779       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    5.3523       1.0000         .10000E-03   10000.    
    15 'Prefactor '    5.9241       1.0000         .10000E-03   10000.    
    16 'Normalizat'    .83357       1.0000         .10000E-01   10.000    
    17 'Prefactor '    1.0888       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.

 FCN=   6741.178     FROM MIGRAD    STATUS=CONVERGED    333 CALLS     1406 TOTAL
                     EDM=   .58E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    7.5673        .90712E-02** at limit **
   2  Prefactor     .10001E-03    131.46        .90712E-02** at limit **
   3  Prefactor     .10000E-03    15.775        .90712E-02** at limit **
   4  Prefactor     3.9193        4.2425        .50950E-02    .48952E-03
   5  Prefactor     .10000E-03    12.229        .90712E-02** at limit **
   6  Prefactor     .10000E-03    1.3172        .90712E-02** at limit **
   7  Prefactor     .10000E-03    22.387        .90712E-02** at limit **
   8  Prefactor     .10000E-03    12.681        .90712E-02** at limit **
   9  Prefactor     2.5311        14.646        .64244E-02    .35217E-03
  10  Prefactor     .10000E-03    9.9724        .90712E-02** at limit **
  11  Prefactor     92.784        33.679        .10431E-02   -.16517E-02
  12  Prefactor     .10000E-03    8.7184        .90712E-02** at limit **
  13  norm          .10000E-03    10.368        .90712E-02** at limit **
  14  Prefactor     5.3523        4.9227        .43428E-02   -.16852E-02
  15  Prefactor     5.9253        6.2135        .41246E-02    .26790E-03
  16  Normalizat    .83353        .17866        .65022E-01    .10995E-03
  17  Prefactor     1.0888        .13835        .38027E-01    .54026E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.000100013
  Prefactor  = 0.0001
  Prefactor  = 3.91934
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 2.53108
  Prefactor  = 0.000100001
  Prefactor  = 92.784
  Prefactor  = 0.0001
  norm       = 0.000100001
  Prefactor  = 5.35228
  Prefactor  = 5.92526
  Normalizat = 0.833525
  Prefactor  = 1.08876
 **********
 **   18 **HESSE 
 **********

 FCN=   6741.178     FROM HESSE     STATUS=OK           215 CALLS     1621 TOTAL
                     EDM=   .41E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    7.6490        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10001E-03    133.60        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    15.780        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     3.9193        4.2344        .16616E-03   -1.5312    
   5  Prefactor     .10000E-03    12.261        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    1.3253        .92015E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    23.001        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    12.815        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     2.5311        14.595        .25697E-03   -1.5390    
  10  Prefactor     .10000E-03    10.002        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     92.784        33.676        .41722E-04   -1.3778    
  12  Prefactor     .10000E-03    8.7509        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .10000E-03    10.402        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     5.3523        4.9199        .83398E-03   -1.5245    
  15  Prefactor     5.9253        6.2002        .16498E-03   -1.5221    
  16  Normalizat    .83353        .21070        .28764E-03   -.98837    
  17  Prefactor     1.0888        .16377        .19837E-03   -.89826    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.1474e-09
Minuit parameter uncertainties:
  1  1.11761e-05
  2  0.00259837
  3  0.000170532
  4  4.2347
  5  0.000201144
  6  5.07468e-06
  7  0.000116241
  8  0.000274
  9  12.1602
  10  0.000240889
  11  33.6834
  12  5.82797e-05
  13  0.000176642
  14  4.92022
  15  6.20088
  16  0.210907
  17  0.163849
Done.

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

Extracting fit parameters...

4FGL J1351.3+1115
   Spectrum: PowerLaw
263    Prefactor:  1.000e-04  5.075e-06  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.089e+00  1.638e-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:  8.335e-01  2.109e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/189539/likelihoodResults_668304001_668563201_4FGL_J1351.3+1115_daily_bin1655.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) = 6741.18170573
delta logL = -0.00354000407788

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6741.17816586
delta logL = -1.34770743898e-07

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     '    1.8722       1.0000          .0000       10.000    
     3 'Normalizat'    .83337       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0889       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.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   6741.178     FROM MIGRAD    STATUS=FAILED        87 CALLS      236 TOTAL
                     EDM=   .36E-06    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10144E-03    53.750        .92545E-03** at limit **
   2  Index         1.7693        6.0914        .50000        .46732E-04
   3  Normalizat    .83352        .28664E-01    .28764E-03   -.15533E-04
   4  Prefactor     1.0888        .22399E-01    .19837E-03   -.18225E-04
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   6741.178     FROM SIMPLEX   STATUS=PROGRESS     132 CALLS      368 TOTAL
                     EDM=   .72E-05    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10017E-03    53.750        .16987E-03** at limit **
   2  Index         1.7686        6.0914        .25712E-03    .46732E-04
   3  Normalizat    .83351        .28664E-01    .76382E-05   -.15533E-04
   4  Prefactor     1.0888        .22399E-01    .39030E-05   -.18225E-04
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   6741.178     FROM MIGRAD    STATUS=CONVERGED     81 CALLS      449 TOTAL
                     EDM=   .38E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    1.5359        .37018E-04** at limit **
   2  Index         1.5527        5.2195        .50000        .31423E-07
   3  Normalizat    .83352        .20842        .23011E-05   -.12944E-03
   4  Prefactor     1.0888        .16326        .15870E-05   -.91697E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 1.55275
  Normalizat = 0.833523
  Prefactor  = 1.08877
 **********
 **   18 **HESSE 
 **********

 FCN=   6741.178     FROM HESSE     STATUS=OK            29 CALLS      478 TOTAL
                     EDM=   .36E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    1.4460        .74036E-05   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         1.5527        5.7613        .50000       -.76073    
   3  Normalizat    .83352        .19731        .46022E-06   -.98837    
   4  Prefactor     1.0888        .15516        .31739E-06   -.89826    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.59983e-11
Minuit parameter uncertainties:
  1  3.70693e-06
  2  93.5579
  3  0.197479
  4  0.155225
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/189539': 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) = 6741.17816266
delta logL = 3.06265064864e-06

Extracting fit parameters...

4FGL J1351.3+1115
   Spectrum: PowerLaw
263    Prefactor:  1.000e-04  3.707e-06  1.000e-04  1.000e+04 ( 1.000e-13)
264        Index:  1.553e+00  9.356e+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.089e+00  1.552e-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:  8.335e-01  1.975e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 207.843 11.250

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/189539/cmap_HighResolution_668304001_668563201_4FGL_J1351.3+1115_daily_bin1655.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.60e-03', job_status='DONE', photon_flux_upper_limit='3.50e-08', time_completed='2022-03-10 00:24:03.461306', job_id='189539', GAL2='1.09', fit_tolerance='1e-08', EG2='0.83', EG='0.83', time_epoch_completed='1646900643.46', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.09', dlogl='3.06e-06', ts2='-0.00', photon_index_error='0.00', photon_index='1.88' WHERE bin_id='1655' AND source_name='4FGL J1351.3+1115' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Mar 10 00:24:03 PST 2022

SUCCESS', return_code='0', GAL='1.09', dlogl='3.06e-06', ts2='-0.00', photon_index_error='0.00', photon_index='1.88' WHERE bin_id='1655' AND source_name='4FGL J1351.3+1115' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Mar 10 00:23:05 PST 2022


------------------------------------------------------------
Sender: LSF System <scs@bullet0181>
Subject: Job 189537: <4FGL_J1351.3+1115_daily_bin1655> in cluster <slac> Done

Job <4FGL_J1351.3+1115_daily_bin1655> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Thu Mar 10 00:08:06 2022
Job was executed on host(s) <bullet0181>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Mar 10 00:08:45 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Thu Mar 10 00:08:45 2022
Terminated at Thu Mar 10 00:23:06 2022
Results reported at Thu Mar 10 00:23:06 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1351.3+1115_daily_bin1655 207.843 11.2502 668304001 668563201 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 :                                   519.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             253.33 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   860 sec.
    Turnaround time :                            900 sec.

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


------------------------------------------------------------
Sender: LSF System <lsf@bullet0008>
Subject: Job 189539: <4FGL_J1351.3+1115_daily_bin1655> in cluster <slac> Done

Job <4FGL_J1351.3+1115_daily_bin1655> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Thu Mar 10 00:08:06 2022
Job was executed on host(s) <bullet0008>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Mar 10 00:08:45 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Thu Mar 10 00:08:45 2022
Terminated at Thu Mar 10 00:24:03 2022
Results reported at Thu Mar 10 00:24:03 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1351.3+1115_daily_bin1655 207.843 11.2502 668304001 668563201 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 :                                   553.32 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             225.66 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              7
    Max Threads :                                21
    Run time :                                   918 sec.
    Turnaround time :                            957 sec.

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

