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


Performing analysis on: 4FGL_J1351.0+0029_daily_bin423
RA = 207.757, Dec = 0.4873
tmin = 348969601, tmax = 349228801
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='13590', job_status='RUN', time_executed='2021-09-08 15:19:19.697239', time_epoch_executed='1631139559.7' WHERE source_name='4FGL J1351.0+0029' and cadence='daily' and bin_id='423'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/13590

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/13590/ft1_4FGL_J1351.0+0029_daily_bin423.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/13590/ft2_4FGL_J1351.0+0029_daily_bin423.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/13590/ft1_4FGL_J1351.0+0029_daily_bin423.fits outfile=/scratch/kocevski/13590/ft1_filteredMKT_4FGL_J1351.0+0029_daily_bin423.fits ra=207.757 dec=0.4873 rad=12.0 tmin=348969601.0 tmax=349228801.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.85
user 3.56
sys 0.22

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/13590/ft1_filtered_4FGL_J1351.0+0029_daily_bin423.fits" evtable="EVENTS" scfile=/scratch/kocevski/13590/ft2_4FGL_J1351.0+0029_daily_bin423.fits sctable="SC_DATA" outfile=/scratch/kocevski/13590/ltcube_348969601_349228801_4FGL_J1351.0+0029_daily_bin423.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/13590/ft2_4FGL_J1351.0+0029_daily_bin423.fits
.....................!
real 15.41
user 14.72
sys 0.37

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/13590/ft1_filtered_4FGL_J1351.0+0029_daily_bin423.fits evtable="EVENTS" scfile=/scratch/kocevski/13590/ft2_4FGL_J1351.0+0029_daily_bin423.fits sctable="SC_DATA" expcube=/scratch/kocevski/13590/ltcube_348969601_349228801_4FGL_J1351.0+0029_daily_bin423.fits outfile=/scratch/kocevski/13590/expmap_348969601_349228801_4FGL_J1351.0+0029_daily_bin423.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/13590/ltcube_348969601_349228801_4FGL_J1351.0+0029_daily_bin423.fits
.....................!
real 191.92
user 186.87
sys 4.58

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/13590/ft1_filtered_4FGL_J1351.0+0029_daily_bin423.fits scfile=/scratch/kocevski/13590/ft2_4FGL_J1351.0+0029_daily_bin423.fits outfile=/scratch/kocevski/13590/cmap_348969601_349228801_4FGL_J1351.0+0029_daily_bin423.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=160 nypix=160 binsz=0.25 coordsys="CEL" xref=207.757 yref=0.4873 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

This is gtbin version HEAD
real 0.56
user 0.40
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/13590/ft1_filtered_4FGL_J1351.0+0029_daily_bin423.fits scfile=/scratch/kocevski/13590/ft2_4FGL_J1351.0+0029_daily_bin423.fits outfile=/scratch/kocevski/13590/cmap_HighResolution_348969601_349228801_4FGL_J1351.0+0029_daily_bin423.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.57
user 0.41
sys 0.14

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .87819       1.0000         .10000E-03   10000.    
     2 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    4.7381       1.0000         .10000E-03   10000.    
     4 'Prefactor '    3.2133       1.0000         .10000E-03   10000.    
     5 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    30.151       1.0000         .10000E-03   10000.    
     7 'norm      '    6.3799       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    39.987       1.0000         .10000E-03   10000.    
    10 'Prefactor '    2.3203       1.0000         .10000E-03   10000.    
    11 'norm      '    19.942       1.0000         .10000E-03   10000.    
    12 'Prefactor '    1.2882       1.0000         .10000E-03   10000.    
    13 'norm      '    3.0646       1.0000         .10000E-03   10000.    
    14 'Prefactor '    19.040       1.0000         .10000E-03   10000.    
    15 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    15.629       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    .10053E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10028E-03   1.0000         .10000E-03   10000.    
    20 'Normalizat'    1.7235       1.0000         .10000E-01   10.000    
    21 'Prefactor '    .74296       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.
 MACHINE ACCURACY LIMITS FURTHER IMPROVEMENT.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   8123.220     FROM MIGRAD    STATUS=CONVERGED    446 CALLS     1946 TOTAL
                     EDM=   .33E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .87709        9.2391         .0000       -.19093E-02
   2  norm          .10000E-03    5.0621         .0000    ** at limit **
   3  Prefactor     4.7371        10.969         .0000        .20324E-03
   4  Prefactor     3.2098        12.514         .0000       -.19614E-03
   5  norm          .10000E-03    .56486         .0000    ** at limit **
   6  Prefactor     30.151        44.105         .0000        .54458E-04
   7  norm          6.3779        24.765         .0000        .97883E-04
   8  Prefactor     .10000E-03    2.3661         .0000    ** at limit **
   9  Prefactor     40.001        22.669         .0000        .11290E-02
  10  Prefactor     2.3203        2.3540         .0000       -.42123E-03
  11  norm          19.942        8.4256         .0000        .18805E-02
  12  Prefactor     1.2699        29.200         .0000        .76477E-02
  13  norm          3.0644        2.4325         .0000        .22074E-03
  14  Prefactor     19.053        20.989         .0000        .16263E-02
  15  norm          .10000E-03    4.0146         .0000    ** at limit **
  16  norm          15.629        8.5935         .0000        .15658E-02
  17  Prefactor     .10000E-03    22.410         .0000    ** at limit **
  18  norm          .10000E-03    28.316         .0000    ** at limit **
  19  Prefactor     .10006E-03    120.41         .0000    ** at limit **
  20  Normalizat    1.7236        .20338         .0000        .18846E-04
  21  Prefactor     .74295        .13912         .0000        .33739E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.877086
  norm       = 0.0001
  Prefactor  = 4.73711
  Prefactor  = 3.20981
  norm       = 0.0001
  Prefactor  = 30.1509
  norm       = 6.3779
  Prefactor  = 0.0001
  Prefactor  = 40.0014
  Prefactor  = 2.32027
  norm       = 19.942
  Prefactor  = 1.26994
  norm       = 3.06439
  Prefactor  = 19.0526
  norm       = 0.0001
  norm       = 15.6295
  Prefactor  = 0.000100002
  norm       = 0.0001
  Prefactor  = 0.000100058
  Normalizat = 1.72361
  Prefactor  = 0.742952
 **********
 **   18 **HESSE 
 **********

 FCN=   8123.220     FROM HESSE     STATUS=OK           313 CALLS     2259 TOTAL
                     EDM=   .58E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .87709        9.5040        .50913E-03   -1.5521    
   2  norm          .10000E-03    5.0658        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     4.7371        10.959        .18485E-03   -1.5273    
   4  Prefactor     3.2098        12.504        .22601E-03   -1.5350    
   5  norm          .10000E-03    .93838        .13071E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     30.151        44.101        .72967E-04   -1.4609    
   7  norm          6.3779        24.788        .15891E-03   -1.5203    
   8  Prefactor     .10000E-03    2.4067        .13529E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     40.001        22.529        .63388E-04   -1.4442    
  10  Prefactor     2.3203        2.3638        .13583E-03   -1.5403    
  11  norm          19.942        8.4233        .89690E-04   -1.4815    
  12  Prefactor     1.2699        28.960        .19519E-02   -1.5483    
  13  norm          3.0644        2.4230        .11902E-03   -1.5358    
  14  Prefactor     19.053        20.875        .91789E-04   -1.4835    
  15  norm          .10000E-03    4.0231        .17636E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          15.629        8.5873        .10131E-03   -1.4917    
  17  Prefactor     .10000E-03    22.683        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          .10000E-03    28.729        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10006E-03    120.69        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Normalizat    1.7236        .24027        .26222E-03   -.71675    
  21  Prefactor     .74295        .16396        .25909E-03   -1.0187    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.8189e-08
Minuit parameter uncertainties:
  1  5.7752
  2  8.20706e-05
  3  10.9633
  4  12.5143
  5  1.81151e-06
  6  44.1484
  7  24.8284
  8  3.33764e-06
  9  22.5342
  10  2.36392
  11  8.42378
  12  12.1349
  13  2.42311
  14  20.8827
  15  1.31951e-05
  16  8.588
  17  0.000444945
  18  0.000226411
  19  0.00529569
  20  0.240431
  21  0.164068
Done.

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

Extracting fit parameters...

4FGL J1351.0+0029
   Spectrum: PowerLaw
252    Prefactor:  4.000e+01  2.253e+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.430e-01  1.641e-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.724e+00  2.404e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 5.52
Ra Dec: 207.757 0.487
Photon Index (Fixed Index): 2.44 +/- 0.00
Photon Flux (Fixed Index): 7.62e-08 +/- 4.29e-08
Energy Flux (Fixed Index): 2.38e-05 +/- 1.34e-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) = 8123.20909423
delta logL = 0.0113382004893

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 8123.20231683
delta logL = 0.0181156008593

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    43.185       1.0000         .10000E-03   10000.    
     2 'Index     '    2.3530       1.0000          .0000       10.000    
     3 'Normalizat'    1.7288       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .74059       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=   8123.202     FROM MIGRAD    STATUS=CONVERGED     90 CALLS      245 TOTAL
                     EDM=   .16E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     43.190        29.380        .61005E-04    .26463E-04
   2  Index         2.3531        .44617        .61225E-02    .38255E-03
   3  Normalizat    1.7287        .23682        .26191E-03   -.56966E-04
   4  Prefactor     .74054        .16162        .25946E-03   -.65987E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 43.1901
  Index      = 2.35309
  Normalizat = 1.72874
  Prefactor  = 0.740539
 **********
 **   18 **HESSE 
 **********

 FCN=   8123.202     FROM HESSE     STATUS=OK            25 CALLS      270 TOTAL
                     EDM=   .12E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     43.190        28.698        .24402E-05   -1.4393    
   2  Index         2.3531        .43569        .12245E-02   -.55787    
   3  Normalizat    1.7287        .23695        .52383E-04   -.71538    
   4  Prefactor     .74054        .16172        .10379E-04   -1.0196    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.19335e-11
Minuit parameter uncertainties:
  1  28.7077
  2  0.436457
  3  0.237107
  4  0.161824
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/13590': 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) = 8123.20231641
delta logL = 0.0181160183001

Extracting fit parameters...

4FGL J1351.0+0029
   Spectrum: PowerLaw
252    Prefactor:  4.319e+01  2.871e+01  1.000e-04  1.000e+04 ( 1.000e-13)
253        Index:  2.353e+00  4.365e-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.405e-01  1.618e-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.729e+00  2.371e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 5.54
Ra Dec: 207.757 0.487
Photon Index (Free Index): 2.35 +/- 0.44
Photon Flux (Free Index): 7.20e-08 +/- 4.57e-08
Energy Flux (Free Index): 2.52e-05 +/- 1.60e-05

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/13590/cmap_HighResolution_348969601_349228801_4FGL_J1351.0+0029_daily_bin423.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='7.62e-08', energy_flux2='2.52e-05', photon_flux_error='4.29e-08', dlogl='1.81e-02', energy_flux='2.38e-05', photon_flux2='7.20e-08', job_status='DONE', time_completed='2021-09-08 15:29:08.387358', photon_index_error2='0.44', photon_index2='2.35', ts='5.52', fit_tolerance='1e-08', GAL='0.74', photon_index_error='0.00', energy_flux_error2='1.60e-05', EG='1.72', time_epoch_completed='1631140148.39', return_code='0', job_id='13590', GAL2='0.74', EG2='1.73', return_code2='0', energy_flux_error='1.34e-05', photon_flux_error2='4.57e-08', ts2='5.54', photon_index='2.44' WHERE bin_id='423' AND source_name='4FGL J1351.0+0029' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  8 15:29:08 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0249>
Subject: Job 13590: <4FGL_J1351.0+0029_daily_bin423> in cluster <slac> Done

Job <4FGL_J1351.0+0029_daily_bin423> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Wed Sep  8 15:15:23 2021
Job was executed on host(s) <bullet0249>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep  8 15:15:27 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:15:27 2021
Terminated at Wed Sep  8 15:29:09 2021
Results reported at Wed Sep  8 15:29:09 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1351.0+0029_daily_bin423 207.757 0.4873 348969601 349228801 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 :                                   583.03 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             272.35 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   821 sec.
    Turnaround time :                            826 sec.

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

