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


Performing analysis on: 4FGL_J1357.1+1921_daily_bin137
RA = 209.29, Dec = 19.3608
tmin = 274838401, tmax = 275097601
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='60959', job_status='RUN', time_executed='2021-09-08 17:48:47.152973', time_epoch_executed='1631148527.15' WHERE source_name='4FGL J1357.1+1921' and cadence='daily' and bin_id='137'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/60959

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/60959/ft1_4FGL_J1357.1+1921_daily_bin137.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/60959/ft2_4FGL_J1357.1+1921_daily_bin137.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/60959/ft1_4FGL_J1357.1+1921_daily_bin137.fits outfile=/scratch/kocevski/60959/ft1_filteredMKT_4FGL_J1357.1+1921_daily_bin137.fits ra=209.29 dec=19.3608 rad=12.0 tmin=274838401.0 tmax=275097601.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 4.27
user 4.02
sys 0.23

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/60959/ft2_4FGL_J1357.1+1921_daily_bin137.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/60959/ft2_4FGL_J1357.1+1921_daily_bin137.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/60959/ft1_filteredMKT_4FGL_J1357.1+1921_daily_bin137.fits evtable="EVENTS" outfile="/scratch/kocevski/60959/ft1_filtered_4FGL_J1357.1+1921_daily_bin137.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.52
user 0.35
sys 0.16

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/60959/ft1_filtered_4FGL_J1357.1+1921_daily_bin137.fits" evtable="EVENTS" scfile=/scratch/kocevski/60959/ft2_4FGL_J1357.1+1921_daily_bin137.fits sctable="SC_DATA" outfile=/scratch/kocevski/60959/ltcube_274838401_275097601_4FGL_J1357.1+1921_daily_bin137.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/60959/ft2_4FGL_J1357.1+1921_daily_bin137.fits
.....................!
real 12.99
user 12.65
sys 0.30

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/60959/ft1_filtered_4FGL_J1357.1+1921_daily_bin137.fits evtable="EVENTS" scfile=/scratch/kocevski/60959/ft2_4FGL_J1357.1+1921_daily_bin137.fits sctable="SC_DATA" expcube=/scratch/kocevski/60959/ltcube_274838401_275097601_4FGL_J1357.1+1921_daily_bin137.fits outfile=/scratch/kocevski/60959/expmap_274838401_275097601_4FGL_J1357.1+1921_daily_bin137.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/60959/ltcube_274838401_275097601_4FGL_J1357.1+1921_daily_bin137.fits
.....................!
real 191.26
user 185.44
sys 5.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 157 point sources and 0 extended sources

Setting source of interest to:
4FGL J1357.1+1921 @ 209.29 19.3608

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/60959/ft1_filtered_4FGL_J1357.1+1921_daily_bin137.fits scfile=/scratch/kocevski/60959/ft2_4FGL_J1357.1+1921_daily_bin137.fits outfile=/scratch/kocevski/60959/cmap_274838401_275097601_4FGL_J1357.1+1921_daily_bin137.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=209.29 yref=19.3608 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.52
user 0.36
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/60959/ft1_filtered_4FGL_J1357.1+1921_daily_bin137.fits scfile=/scratch/kocevski/60959/ft2_4FGL_J1357.1+1921_daily_bin137.fits outfile=/scratch/kocevski/60959/cmap_HighResolution_274838401_275097601_4FGL_J1357.1+1921_daily_bin137.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=209.29 yref=19.3608 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.14

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/60959/ft1_filtered_4FGL_J1357.1+1921_daily_bin137.fits evtable="EVENTS" scfile=/scratch/kocevski/60959/ft2_4FGL_J1357.1+1921_daily_bin137.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/60959/Model_4FGL_J1357.1+1921_daily_bin137.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/60959/ft1_filtered_4FGL_J1357.1+1921_daily_bin137.fits.....................!
real 52.87
user 51.54
sys 1.16

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/60959/ft1_filtered_4FGL_J1357.1+1921_daily_bin137.fits', '/scratch/kocevski/60959/ft2_4FGL_J1357.1+1921_daily_bin137.fits', expMap='/scratch/kocevski/60959/expmap_274838401_275097601_4FGL_J1357.1+1921_daily_bin137.fits', expCube='/scratch/kocevski/60959/ltcube_274838401_275097601_4FGL_J1357.1+1921_daily_bin137.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/60959/Model_4FGL_J1357.1+1921_daily_bin137.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1357.1+1921'

4FGL J1357.1+1921
   Spectrum: PowerLaw
267    Prefactor:  2.782e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-12)
268        Index:  2.758e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
269        Scale:  4.625e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/60959/ft1_filtered_4FGL_J1357.1+1921_daily_bin137.fits
Spacecraft file(s): /scratch/kocevski/60959/ft2_4FGL_J1357.1+1921_daily_bin137.fits
Exposure map: /scratch/kocevski/60959/expmap_274838401_275097601_4FGL_J1357.1+1921_daily_bin137.fits
Exposure cube: /scratch/kocevski/60959/ltcube_274838401_275097601_4FGL_J1357.1+1921_daily_bin137.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/60959/Model_4FGL_J1357.1+1921_daily_bin137.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) = 6826.33665906

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    13.053       1.0000         .10000E-03   10000.    
     2 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    .10004E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    24.627       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .69959       1.0000         .10000E-03   10000.    
    10 'Prefactor '    8.8913       1.0000         .10000E-03   10000.    
    11 'Prefactor '    9.8227       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10334E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    14.268       1.0000         .10000E-03   10000.    
    15 'Prefactor '    8.8134       1.0000         .10000E-03   10000.    
    16 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    23.688       1.0000         .10000E-03   10000.    
    18 'Normalizat'    1.0289       1.0000         .10000E-01   10.000    
    19 'Prefactor '    1.0078       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5090E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   6826.336     FROM MIGRAD    STATUS=CONVERGED    382 CALLS     1849 TOTAL
                     EDM=   .50E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          13.053        14.512       -.41871E-07   -.14586E-05
   2  norm          .10000E-03    2.1333       -.24171E-07** at limit **
   3  Prefactor     .10000E-03    26.403        .28611E-04** at limit **
   4  norm          .10000E-03    4.8680       -.13362E-06** at limit **
   5  Prefactor     .10000E-03    15.139        .28085E-05** at limit **
   6  Prefactor     24.628        22.321        .10017E-05   -.19740E-04
   7  Prefactor     .10000E-03    21.603       -.21864E-04** at limit **
   8  Prefactor     .10000E-03    3.1573        .19629E-08** at limit **
   9  Prefactor     .70012        .47590        .50354E-07   -.15931E-02
  10  Prefactor     8.8902        11.917        .36346E-06    .21650E-04
  11  Prefactor     9.8240        14.353       -.21023E-07    .45046E-05
  12  Prefactor     .10000E-03    47.178       -.13371E-04** at limit **
  13  Prefactor     .10000E-03    4.5593        .38180E-07** at limit **
  14  norm          14.268        3.6948       -.34059E-06   -.24630E-05
  15  Prefactor     8.8108        7.3386        .88055E-06    .60918E-04
  16  norm          .10000E-03    .75821       -.10482E-08** at limit **
  17  Prefactor     23.691        32.074        .25038E-05    .28712E-05
  18  Normalizat    1.0288        .18436       -.68022E-06    .18499E-04
  19  Prefactor     1.0078        .14965        .78630E-07    .45384E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 13.0534
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 24.6281
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.700124
  Prefactor  = 8.89023
  Prefactor  = 9.82404
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 14.268
  Prefactor  = 8.81084
  norm       = 0.0001
  Prefactor  = 23.6905
  Normalizat = 1.02883
  Prefactor  = 1.00779
 **********
 **   18 **HESSE 
 **********

 FCN=   6826.336     FROM HESSE     STATUS=OK           268 CALLS     2117 TOTAL
                     EDM=   .55E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          13.053        14.511        .11087E-03   -1.4985    
   2  norm          .10000E-03    2.1428        .11783E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    26.474        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          .10000E-03    4.9194        .17797E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    15.171        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     24.628        22.378        .80721E-04   -1.4715    
   7  Prefactor     .10000E-03    21.646        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    3.2384        .28663E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .70012        5.8889        .18772E-02   -1.5541    
  10  Prefactor     8.8902        11.949        .13442E-03   -1.5112    
  11  Prefactor     9.8240        14.412        .12786E-03   -1.5081    
  12  Prefactor     .10000E-03    47.539        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    4.5924        .17210E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          14.268        3.6972        .78315E-04   -1.4952    
  15  Prefactor     8.8108        7.3403        .13502E-03   -1.5114    
  16  norm          .10000E-03    .76238        .70234E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     23.691        32.069        .82301E-04   -1.4734    
  18  Normalizat    1.0288        .21571        .26483E-03   -.92071    
  19  Prefactor     1.0078        .17568        .22393E-03   -.92470    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.52858e-09
Minuit parameter uncertainties:
  1  14.515
  2  9.89934e-07
  3  0.000133041
  4  3.47146e-06
  5  1.07975e-05
  6  22.386
  7  2.52335e-06
  8  1.05019e-06
  9  4.06125
  10  11.9518
  11  14.4171
  12  4.56519e-05
  13  1.15197e-05
  14  3.6973
  15  7.34102
  16  1.0696e-06
  17  32.0918
  18  0.215893
  19  0.175783
Done.

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

Extracting fit parameters...

4FGL J1357.1+1921
   Spectrum: PowerLaw
267    Prefactor:  9.824e+00  1.442e+01  1.000e-04  1.000e+04 ( 1.000e-12)
268        Index:  2.758e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
269        Scale:  4.625e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
506    Prefactor:  1.008e+00  1.758e-01  0.000e+00  1.000e+01 ( 1.000e+00)
507        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
508        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
505   Normalization:  1.029e+00  2.159e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.56
Ra Dec: 209.290 19.361
Photon Flux Upper Limit: 1.52e-07 ph cm-2 s-1
Energy Flux Upper Limit: 1.20e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/60959/likelihoodResults_274838401_275097601_4FGL_J1357.1+1921_daily_bin137.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) = 6825.53791816
delta logL = 0.79774055645

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6825.49998529
delta logL = 0.835673429279

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    3.5201       1.0000         .10000E-03   10000.    
     2 'Index     '    4.6129       1.0000          .0000       10.000    
     3 'Normalizat'    .93839       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0571       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5090E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   6825.500     FROM MIGRAD    STATUS=CONVERGED     52 CALLS      257 TOTAL
                     EDM=   .13E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     3.5036        40.024        .53867E-02    .14980E-02
   2  Index         4.6160        3.6902        .18940        .23152E-03
   3  Normalizat    .93851        .52623E-01    .45390E-01   -.66938E-04
   4  Prefactor     1.0570        .44254E-01    .39511E-01   -.33079E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 3.50358
  Index      = 4.61605
  Normalizat = 0.93851
  Prefactor  = 1.05702
 **********
 **   18 **HESSE 
 **********

 FCN=   6825.500     FROM HESSE     STATUS=NOT POSDEF    31 CALLS      288 TOTAL
                     EDM=   .13E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     3.5036        77.176        .10115E-03   -1.5334    
   2  Index         4.6160        7.3058        .66548E-02   -.76866E-01
   3  Normalizat    .93851        .20505        .27567E-03   -.95120    
   4  Prefactor     1.0570        .17189        .21916E-03   -.90852    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.32581e-09
Minuit parameter uncertainties:
  1  32.9351
  2  7.23847
  3  0.205217
  4  0.171976
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/60959': 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) = 6825.49998303
delta logL = 0.83567568708

Extracting fit parameters...

4FGL J1357.1+1921
   Spectrum: PowerLaw
267    Prefactor:  3.504e+00  3.294e+01  1.000e-04  1.000e+04 ( 1.000e-12)
268        Index:  4.616e+00  7.238e+00  0.000e+00  1.000e+01 (-1.000e+00)
269        Scale:  4.625e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
506    Prefactor:  1.057e+00  1.720e-01  0.000e+00  1.000e+01 ( 1.000e+00)
507        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
508        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
505   Normalization:  9.385e-01  2.052e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.46
Ra Dec: 209.290 19.361
Photon Index (Free Index): 4.62 +/- 7.24
Photon Flux (Free Index): 1.14e-07 +/- 8.87e-08
Energy Flux (Free Index): 1.58e-05 +/- 2.01e-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/60959/cmap_HighResolution_274838401_275097601_4FGL_J1357.1+1921_daily_bin137.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.20e-02', comment='SUCCESS', energy_flux2='1.58e-05', dlogl='8.36e-01', photon_flux2='1.14e-07', job_status='DONE', time_completed='2021-09-08 17:58:49.308690', photon_index_error2='7.24', photon_index2='4.62', ts='0.56', fit_tolerance='1e-08', GAL='1.01', photon_index_error='0.00', photon_flux_upper_limit='1.52e-07', energy_flux_error2='2.01e-05', EG='1.03', time_epoch_completed='1631149129.31', return_code='0', job_id='60959', GAL2='1.06', EG2='0.94', return_code2='102', photon_flux_error2='8.87e-08', ts2='2.46', photon_index='2.76' WHERE bin_id='137' AND source_name='4FGL J1357.1+1921' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  8 17:58:49 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0082>
Subject: Job 60959: <4FGL_J1357.1+1921_daily_bin137> in cluster <slac> Done

Job <4FGL_J1357.1+1921_daily_bin137> was submitted from host <rhel6-64m> by user <kocevski> in cluster <slac> at Wed Sep  8 17:45:25 2021
Job was executed on host(s) <bullet0082>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep  8 17:45: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 17:45:27 2021
Terminated at Wed Sep  8 17:58:52 2021
Results reported at Wed Sep  8 17:58:52 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1357.1+1921_daily_bin137 209.29 19.3608 274838401 275097601 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1357.1+1921 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   555.17 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             276.50 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   802 sec.
    Turnaround time :                            807 sec.

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

