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


Performing analysis on: 4FGL_J1357.1+1921_daily_bin908
RA = 209.29, Dec = 19.3608
tmin = 474681601, tmax = 474940801
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='64398', job_status='RUN', time_executed='2021-09-08 17:58:38.403540', time_epoch_executed='1631149118.4' WHERE source_name='4FGL J1357.1+1921' and cadence='daily' and bin_id='908'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/64398

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

Retrieving the FT1 file...

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

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

Retrieving 48 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/64398/ft1_4FGL_J1357.1+1921_daily_bin908.fits


Retrieving the FT1 file...

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

Retrieving 48 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/64398/ft2_4FGL_J1357.1+1921_daily_bin908.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/64398/ft1_4FGL_J1357.1+1921_daily_bin908.fits outfile=/scratch/kocevski/64398/ft1_filteredMKT_4FGL_J1357.1+1921_daily_bin908.fits ra=209.29 dec=19.3608 rad=12.0 tmin=474681601.0 tmax=474940801.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.61
user 3.41
sys 0.18

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/64398/ft2_4FGL_J1357.1+1921_daily_bin908.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/64398/ft1_filteredMKT_4FGL_J1357.1+1921_daily_bin908.fits evtable="EVENTS" outfile="/scratch/kocevski/64398/ft1_filtered_4FGL_J1357.1+1921_daily_bin908.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.49
user 0.34
sys 0.14

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/64398/ft1_filtered_4FGL_J1357.1+1921_daily_bin908.fits" evtable="EVENTS" scfile=/scratch/kocevski/64398/ft2_4FGL_J1357.1+1921_daily_bin908.fits sctable="SC_DATA" outfile=/scratch/kocevski/64398/ltcube_474681601_474940801_4FGL_J1357.1+1921_daily_bin908.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/64398/ft2_4FGL_J1357.1+1921_daily_bin908.fits
.....................!
real 11.61
user 11.27
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/64398/ft1_filtered_4FGL_J1357.1+1921_daily_bin908.fits evtable="EVENTS" scfile=/scratch/kocevski/64398/ft2_4FGL_J1357.1+1921_daily_bin908.fits sctable="SC_DATA" expcube=/scratch/kocevski/64398/ltcube_474681601_474940801_4FGL_J1357.1+1921_daily_bin908.fits outfile=/scratch/kocevski/64398/expmap_474681601_474940801_4FGL_J1357.1+1921_daily_bin908.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/64398/ltcube_474681601_474940801_4FGL_J1357.1+1921_daily_bin908.fits
.....................!
real 191.00
user 185.89
sys 4.76

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/64398/ft1_filtered_4FGL_J1357.1+1921_daily_bin908.fits scfile=/scratch/kocevski/64398/ft2_4FGL_J1357.1+1921_daily_bin908.fits outfile=/scratch/kocevski/64398/cmap_474681601_474940801_4FGL_J1357.1+1921_daily_bin908.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.54
user 0.38
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/64398/ft1_filtered_4FGL_J1357.1+1921_daily_bin908.fits scfile=/scratch/kocevski/64398/ft2_4FGL_J1357.1+1921_daily_bin908.fits outfile=/scratch/kocevski/64398/cmap_HighResolution_474681601_474940801_4FGL_J1357.1+1921_daily_bin908.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.55
user 0.39
sys 0.14

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/64398/ft1_filtered_4FGL_J1357.1+1921_daily_bin908.fits', '/scratch/kocevski/64398/ft2_4FGL_J1357.1+1921_daily_bin908.fits', expMap='/scratch/kocevski/64398/expmap_474681601_474940801_4FGL_J1357.1+1921_daily_bin908.fits', expCube='/scratch/kocevski/64398/ltcube_474681601_474940801_4FGL_J1357.1+1921_daily_bin908.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/64398/Model_4FGL_J1357.1+1921_daily_bin908.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/64398/ft1_filtered_4FGL_J1357.1+1921_daily_bin908.fits
Spacecraft file(s): /scratch/kocevski/64398/ft2_4FGL_J1357.1+1921_daily_bin908.fits
Exposure map: /scratch/kocevski/64398/expmap_474681601_474940801_4FGL_J1357.1+1921_daily_bin908.fits
Exposure cube: /scratch/kocevski/64398/ltcube_474681601_474940801_4FGL_J1357.1+1921_daily_bin908.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/64398/Model_4FGL_J1357.1+1921_daily_bin908.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) = 5976.37736175

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    .10076E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    32.420       1.0000         .10000E-03   10000.    
     4 'norm      '    5.9192       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    12.611       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    6.4592       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .20309E-01   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10014E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .11359E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    4.4210       1.0000         .10000E-03   10000.    
    14 'norm      '    3.3103       1.0000         .10000E-03   10000.    
    15 'Prefactor '    4.6296       1.0000         .10000E-03   10000.    
    16 'norm      '    .10012E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    18 'Normalizat'    1.0278       1.0000         .10000E-01   10.000    
    19 'Prefactor '    1.0215       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=   5976.293     FROM MIGRAD    STATUS=CONVERGED    413 CALLS     1637 TOTAL
                     EDM=   .21E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    6.5427        .30055E-06** at limit **
   2  norm          .10000E-03    3.6417       -.36669E-06** at limit **
   3  Prefactor     32.426        27.015        .92724E-05   -.32429E-05
   4  norm          5.9225        5.9339        .49068E-05   -.52891E-04
   5  Prefactor     .10000E-03    5.7115        .55693E-06** at limit **
   6  Prefactor     12.617        13.260       -.11646E-05   -.49964E-05
   7  Prefactor     .10000E-03    40.898        .18308E-05** at limit **
   8  Prefactor     6.4611        3.8108        .12686E-07   -.26019E-04
   9  Prefactor     .10000E-03    1.4609       -.22699E-07** at limit **
  10  Prefactor     .33651        8.4151       -.41204E-06   -.10796E-03
  11  Prefactor     .10000E-03    5.7993       -.99224E-06** at limit **
  12  Prefactor     .10000E-03    72.515        .60576E-04** at limit **
  13  Prefactor     4.4223        5.8330        .28617E-05   -.42564E-03
  14  norm          3.3114        2.1588        .43708E-07   -.22571E-04
  15  Prefactor     4.6377        6.7836       -.24457E-05   -.37982E-03
  16  norm          .10000E-03    1.0144        .75335E-07** at limit **
  17  Prefactor     .10000E-03    67.077       -.55197E-04** at limit **
  18  Normalizat    1.0274        .18350       -.89580E-06   -.10318E-03
  19  Prefactor     1.0213        .15874       -.40372E-06   -.13525E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 32.4263
  norm       = 5.9225
  Prefactor  = 0.0001
  Prefactor  = 12.6167
  Prefactor  = 0.0001
  Prefactor  = 6.46106
  Prefactor  = 0.0001
  Prefactor  = 0.33651
  Prefactor  = 0.0001
  Prefactor  = 0.000100003
  Prefactor  = 4.4223
  norm       = 3.31141
  Prefactor  = 4.6377
  norm       = 0.0001
  Prefactor  = 0.000100003
  Normalizat = 1.02744
  Prefactor  = 1.02126
 **********
 **   18 **HESSE 
 **********

 FCN=   5976.293     FROM HESSE     STATUS=OK           268 CALLS     1905 TOTAL
                     EDM=   .54E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    6.5459        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .10000E-03    3.6771        .14394E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     32.426        27.037        .70374E-04   -1.4568    
   4  norm          5.9225        5.9351        .16505E-03   -1.5221    
   5  Prefactor     .10000E-03    5.7146        .18044E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     12.617        13.268        .11280E-03   -1.4997    
   7  Prefactor     .10000E-03    41.153        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     6.4611        3.8150        .11251E-03   -1.5200    
   9  Prefactor     .10000E-03    1.4673        .91242E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .33651        81.012        .42756E-02   -1.5592    
  11  Prefactor     .10000E-03    5.8392        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    73.350        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     4.4223        5.7930        .19153E-03   -1.5287    
  14  norm          3.3114        2.1592        .89040E-04   -1.5344    
  15  Prefactor     4.6377        6.7683        .18706E-03   -1.5277    
  16  norm          .10000E-03    1.0283        .76003E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    67.528        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Normalizat    1.0274        .21717        .24747E-03   -.92117    
  19  Prefactor     1.0213        .18841        .21613E-03   -.92024    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.35212e-10
Minuit parameter uncertainties:
  1  7.37896e-06
  2  6.26988e-05
  3  27.0468
  4  5.93571
  5  1.73101e-06
  6  13.2713
  7  1.23335e-05
  8  3.81511
  9  1.01619e-06
  10  10.4553
  11  8.59599e-06
  12  0.000977855
  13  5.79378
  14  2.15927
  15  6.76938
  16  6.17922e-06
  17  0.000968943
  18  0.21736
  19  0.188535
Done.

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

Extracting fit parameters...

4FGL J1357.1+1921
   Spectrum: PowerLaw
267    Prefactor:  1.000e-04  8.596e-06  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.021e+00  1.885e-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.027e+00  2.174e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 209.290 19.361
Photon Flux Upper Limit: 7.43e-08 ph cm-2 s-1
Energy Flux Upper Limit: 5.87e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/64398/likelihoodResults_474681601_474940801_4FGL_J1357.1+1921_daily_bin908.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) = 5976.29384115
delta logL = -0.000816516914711

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5976.29302471
delta logL = -7.98791006673e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10059E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.7630       1.0000          .0000       10.000    
     3 'Normalizat'    1.0274       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0213       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.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   5976.293     FROM MIGRAD    STATUS=CONVERGED     87 CALLS      236 TOTAL
                     EDM=   .15E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10048E-03    308.36        .18142E-02** at limit **
   2  Index         2.8239        8.1083        .50000       -.66715E-05
   3  Normalizat    1.0274        .34111E-01    .24747E-03    .55816E-04
   4  Prefactor     1.0213        .29860E-01    .21613E-03    .50918E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100477
  Index      = 2.82394
  Normalizat = 1.02744
  Prefactor  = 1.02126
 **********
 **   18 **HESSE 
 **********

 FCN=   5976.293     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      265 TOTAL
                     EDM=   .71E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10048E-03    1112.8        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.8239        7.6489        .50000       -.45027    
   3  Normalizat    1.0274        .96079E-01    .98990E-05   -.92117    
   4  Prefactor     1.0213        .84084E-01    .86452E-05   -.92024    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 7.09204e-08
Minuit parameter uncertainties:
  1  0.0469757
  2  2766.83
  3  0.0960947
  4  0.0840946
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/64398': 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) = 5976.29302456
delta logL = 7.19865056453e-08

Extracting fit parameters...

4FGL J1357.1+1921
   Spectrum: PowerLaw
267    Prefactor:  1.005e-04  4.698e-02  1.000e-04  1.000e+04 ( 1.000e-12)
268        Index:  2.824e+00  2.767e+03  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.021e+00  8.409e-02  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.027e+00  9.609e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 209.290 19.361

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/64398/cmap_HighResolution_474681601_474940801_4FGL_J1357.1+1921_daily_bin908.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.87e-03', job_status='DONE', photon_flux_upper_limit='7.43e-08', time_completed='2021-09-08 18:07:19.048657', job_id='64398', GAL2='1.02', fit_tolerance='1e-08', EG2='1.03', EG='1.03', time_epoch_completed='1631149639.05', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.02', dlogl='7.20e-08', ts2='-0.00', photon_index_error='0.00', photon_index='2.76' WHERE bin_id='908' AND source_name='4FGL J1357.1+1921' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  8 18:07:19 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0114>
Subject: Job 64398: <4FGL_J1357.1+1921_daily_bin908> in cluster <slac> Done

Job <4FGL_J1357.1+1921_daily_bin908> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Wed Sep  8 17:55:28 2021
Job was executed on host(s) <bullet0114>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep  8 17:55:30 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:55:30 2021
Terminated at Wed Sep  8 18:07:19 2021
Results reported at Wed Sep  8 18:07:19 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1357.1+1921_daily_bin908 209.29 19.3608 474681601 474940801 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 :                                   514.40 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             232.17 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   709 sec.
    Turnaround time :                            711 sec.

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

