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


Performing analysis on: 4FGL_J1357.1+1921_daily_bin197
RA = 209.29, Dec = 19.3608
tmin = 290390401, tmax = 290649601
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='61054', job_status='RUN', time_executed='2021-09-08 17:49:23.291511', time_epoch_executed='1631148563.29' WHERE source_name='4FGL J1357.1+1921' and cadence='daily' and bin_id='197'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/61054

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/61054/ft1_4FGL_J1357.1+1921_daily_bin197.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/61054/ft2_4FGL_J1357.1+1921_daily_bin197.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/61054/ft1_4FGL_J1357.1+1921_daily_bin197.fits outfile=/scratch/kocevski/61054/ft1_filteredMKT_4FGL_J1357.1+1921_daily_bin197.fits ra=209.29 dec=19.3608 rad=12.0 tmin=290390401.0 tmax=290649601.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.46
user 3.22
sys 0.22

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/61054/ft1_filtered_4FGL_J1357.1+1921_daily_bin197.fits" evtable="EVENTS" scfile=/scratch/kocevski/61054/ft2_4FGL_J1357.1+1921_daily_bin197.fits sctable="SC_DATA" outfile=/scratch/kocevski/61054/ltcube_290390401_290649601_4FGL_J1357.1+1921_daily_bin197.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/61054/ft2_4FGL_J1357.1+1921_daily_bin197.fits
.....................!
real 11.91
user 11.55
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/61054/ft1_filtered_4FGL_J1357.1+1921_daily_bin197.fits evtable="EVENTS" scfile=/scratch/kocevski/61054/ft2_4FGL_J1357.1+1921_daily_bin197.fits sctable="SC_DATA" expcube=/scratch/kocevski/61054/ltcube_290390401_290649601_4FGL_J1357.1+1921_daily_bin197.fits outfile=/scratch/kocevski/61054/expmap_290390401_290649601_4FGL_J1357.1+1921_daily_bin197.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/61054/ltcube_290390401_290649601_4FGL_J1357.1+1921_daily_bin197.fits
.....................!
real 189.76
user 184.27
sys 5.13

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/61054/ft1_filtered_4FGL_J1357.1+1921_daily_bin197.fits scfile=/scratch/kocevski/61054/ft2_4FGL_J1357.1+1921_daily_bin197.fits outfile=/scratch/kocevski/61054/cmap_290390401_290649601_4FGL_J1357.1+1921_daily_bin197.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.53
user 0.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/61054/ft1_filtered_4FGL_J1357.1+1921_daily_bin197.fits scfile=/scratch/kocevski/61054/ft2_4FGL_J1357.1+1921_daily_bin197.fits outfile=/scratch/kocevski/61054/cmap_HighResolution_290390401_290649601_4FGL_J1357.1+1921_daily_bin197.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.37
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    31.662       1.0000         .10000E-03   10000.    
     2 'norm      '    .10014E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    7.6144       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .86970E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    32.938       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    2.3793       1.0000         .10000E-03   10000.    
    10 'Prefactor '    18.505       1.0000         .10000E-03   10000.    
    11 'Prefactor '    12.705       1.0000         .10000E-03   10000.    
    12 'Prefactor '    42.354       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .80455       1.0000         .10000E-03   10000.    
    14 'norm      '    8.6393       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10014E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    18 'Normalizat'    .92092       1.0000         .10000E-01   10.000    
    19 'Prefactor '    .99330       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=   5570.091     FROM MIGRAD    STATUS=CONVERGED    372 CALLS     1582 TOTAL
                     EDM=   .25E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          31.663        19.502       -.27235E-07    .11263E-04
   2  norm          .10000E-03    2.3552       -.13004E-06** at limit **
   3  Prefactor     .10000E-03    8.8536        .69245E-07** at limit **
   4  norm          7.6155        6.6201        .12225E-05   -.32953E-03
   5  Prefactor     .10000E-03    5.3351        .29882E-08** at limit **
   6  Prefactor     .10000E-03    72.367        .76121E-06** at limit **
   7  Prefactor     32.948        31.292        .13779E-05    .21403E-03
   8  Prefactor     .10000E-03    1.3103        .13194E-07** at limit **
   9  Prefactor     2.3802        3.8633        .26281E-06   -.53307E-04
  10  Prefactor     18.505        13.128        .32437E-07   -.15761E-04
  11  Prefactor     12.703        11.905        .23777E-06    .46623E-04
  12  Prefactor     42.341        26.220       -.15165E-05   -.40283E-03
  13  Prefactor     .81044        7.2471        .28449E-05   -.16408E-03
  14  norm          8.6393        3.3606        .27982E-07    .88467E-05
  15  Prefactor     .10000E-03    2.1935       -.84858E-07** at limit **
  16  norm          .10000E-03    .67552        .24414E-08** at limit **
  17  Prefactor     .10000E-03    9.3334       -.60910E-07** at limit **
  18  Normalizat    .92107        .17664       -.25807E-06   -.57277E-04
  19  Prefactor     .99320        .15597       -.28868E-06   -.60802E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 31.6634
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 7.61552
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 32.948
  Prefactor  = 0.0001
  Prefactor  = 2.38017
  Prefactor  = 18.5054
  Prefactor  = 12.703
  Prefactor  = 42.3405
  Prefactor  = 0.810444
  norm       = 8.63933
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Normalizat = 0.921067
  Prefactor  = 0.993202
 **********
 **   18 **HESSE 
 **********

 FCN=   5570.091     FROM HESSE     STATUS=OK           266 CALLS     1848 TOTAL
                     EDM=   .55E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          31.663        19.506        .71209E-04   -1.4582    
   2  norm          .10000E-03    2.3729        .11190E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    8.8556        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          7.6155        6.7176        .72665E-03   -1.5156    
   5  Prefactor     .10000E-03    5.3365        .16836E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    75.087        .41703E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     32.948        32.075        .69820E-04   -1.4559    
   8  Prefactor     .10000E-03    1.3156        .83421E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     2.3802        3.8528        .18068E-03   -1.5399    
  10  Prefactor     18.505        13.129        .93106E-04   -1.4847    
  11  Prefactor     12.703        11.932        .11238E-03   -1.4995    
  12  Prefactor     42.341        27.399        .61598E-04   -1.4406    
  13  Prefactor     .81044        7.5210        .38666E-03   -1.5528    
  14  norm          8.6393        3.3612        .82461E-04   -1.5120    
  15  Prefactor     .10000E-03    2.2141        .10793E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10000E-03    .67891        .59896E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    9.3387        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Normalizat    .92107        .20648        .25103E-03   -.95724    
  19  Prefactor     .99320        .18245        .21470E-03   -.92956    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.48859e-10
Minuit parameter uncertainties:
  1  19.5099
  2  9.3113e-06
  3  8.52122e-06
  4  6.7183
  5  4.6935e-07
  6  0.000196331
  7  32.0915
  8  3.67157e-07
  9  3.85322
  10  13.1306
  11  11.9345
  12  27.4067
  13  4.93826
  14  3.36129
  15  2.93926e-06
  16  1.1888e-07
  17  8.72141e-06
  18  0.206661
  19  0.182559
Done.

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

Extracting fit parameters...

4FGL J1357.1+1921
   Spectrum: PowerLaw
267    Prefactor:  1.270e+01  1.193e+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:  9.932e-01  1.826e-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.211e-01  2.067e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.60
Ra Dec: 209.290 19.361
Photon Index (Fixed Index): 2.76 +/- 0.00
Photon Flux (Fixed Index): 4.94e-08 +/- 4.63e-08
Energy Flux (Fixed Index): 1.14e-05 +/- 1.07e-05

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

Saving results to:
/scratch/kocevski/61054/likelihoodResults_290390401_290649601_4FGL_J1357.1+1921_daily_bin197.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) = 5569.43396525
delta logL = 0.656572325816

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5569.35766198
delta logL = 0.732875599019

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .17897E-01   1.0000         .10000E-03   10000.    
     2 'Index     '    8.2433       1.0000          .0000       10.000    
     3 'Normalizat'    .86379       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0405       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=   5569.358     FROM MIGRAD    STATUS=CONVERGED     58 CALLS      377 TOTAL
                     EDM=   .21E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .17248E-01    .20981        .14951E-02    .37321E-02
   2  Index         8.2685        7.7749        .20514        .67015E-04
   3  Normalizat    .86393        .50410E-01    .44437E-01    .10925E-04
   4  Prefactor     1.0404        .44866E-01    .40504E-01    .49328E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0172481
  Index      = 8.26849
  Normalizat = 0.863926
  Prefactor  = 1.0404
 **********
 **   18 **HESSE 
 **********

 FCN=   5569.358     FROM HESSE     STATUS=NOT POSDEF    35 CALLS      412 TOTAL
                     EDM=   .84E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .17248E-01    .42671        .67250E-04   -1.5682    
   2  Index         8.2685        8.8564        .87082E-02    .71246    
   3  Normalizat    .86393        .16255        .25806E-03   -.97740    
   4  Prefactor     1.0404        .14182        .21038E-03   -.91395    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 8.41971e-08
Minuit parameter uncertainties:
  1  0.171083
  2  6.83834
  3  0.162644
  4  0.141874
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/61054': 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) = 5569.35765668
delta logL = 0.732880902056

Extracting fit parameters...

4FGL J1357.1+1921
   Spectrum: PowerLaw
267    Prefactor:  1.725e-02  1.711e-01  1.000e-04  1.000e+04 ( 1.000e-12)
268        Index:  8.268e+00  6.838e+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.040e+00  1.419e-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:  8.639e-01  1.626e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 3.21
Ra Dec: 209.290 19.361
Photon Index (Free Index): 8.27 +/- 6.84
Photon Flux (Free Index): 7.65e-08 +/- 5.73e-08
Energy Flux (Free Index): 8.83e-06 +/- 7.35e-06

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/61054/cmap_HighResolution_290390401_290649601_4FGL_J1357.1+1921_daily_bin197.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.15e-02', comment='SUCCESS', photon_flux='4.94e-08', energy_flux2='8.83e-06', photon_flux_error='4.63e-08', dlogl='7.33e-01', energy_flux='1.14e-05', photon_flux2='7.65e-08', job_status='DONE', time_completed='2021-09-08 17:58:19.266279', photon_index_error2='6.84', photon_index2='8.27', ts='1.60', fit_tolerance='1e-08', GAL='0.99', photon_index_error='0.00', photon_flux_upper_limit='1.46e-07', energy_flux_error2='7.35e-06', EG='0.92', time_epoch_completed='1631149099.27', return_code='0', job_id='61054', GAL2='1.04', EG2='0.86', return_code2='102', energy_flux_error='1.07e-05', photon_flux_error2='5.73e-08', ts2='3.21', photon_index='2.76' WHERE bin_id='197' AND source_name='4FGL J1357.1+1921' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  8 17:58:19 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0186>
Subject: Job 61054: <4FGL_J1357.1+1921_daily_bin197> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1357.1+1921_daily_bin197 209.29 19.3608 290390401 290649601 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 :                                   506.26 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             200.72 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   763 sec.
    Turnaround time :                            766 sec.

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

