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


Performing analysis on: 4FGL_J1357.1+1921_daily_bin233
RA = 209.29, Dec = 19.3608
tmin = 299721601, tmax = 299980801
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='61117', job_status='RUN', time_executed='2021-09-08 17:49:41.596077', time_epoch_executed='1631148581.6' WHERE source_name='4FGL J1357.1+1921' and cadence='daily' and bin_id='233'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/61117

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/61117/ft1_4FGL_J1357.1+1921_daily_bin233.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/61117/ft2_4FGL_J1357.1+1921_daily_bin233.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/61117/ft1_4FGL_J1357.1+1921_daily_bin233.fits outfile=/scratch/kocevski/61117/ft1_filteredMKT_4FGL_J1357.1+1921_daily_bin233.fits ra=209.29 dec=19.3608 rad=12.0 tmin=299721601.0 tmax=299980801.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.36
user 3.14
sys 0.21

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/61117/ft1_filtered_4FGL_J1357.1+1921_daily_bin233.fits evtable="EVENTS" scfile=/scratch/kocevski/61117/ft2_4FGL_J1357.1+1921_daily_bin233.fits sctable="SC_DATA" expcube=/scratch/kocevski/61117/ltcube_299721601_299980801_4FGL_J1357.1+1921_daily_bin233.fits outfile=/scratch/kocevski/61117/expmap_299721601_299980801_4FGL_J1357.1+1921_daily_bin233.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/61117/ltcube_299721601_299980801_4FGL_J1357.1+1921_daily_bin233.fits
.....................!
real 189.71
user 184.94
sys 4.42

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/61117/ft1_filtered_4FGL_J1357.1+1921_daily_bin233.fits scfile=/scratch/kocevski/61117/ft2_4FGL_J1357.1+1921_daily_bin233.fits outfile=/scratch/kocevski/61117/cmap_299721601_299980801_4FGL_J1357.1+1921_daily_bin233.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.58
user 0.38
sys 0.13

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/61117/ft1_filtered_4FGL_J1357.1+1921_daily_bin233.fits scfile=/scratch/kocevski/61117/ft2_4FGL_J1357.1+1921_daily_bin233.fits outfile=/scratch/kocevski/61117/cmap_HighResolution_299721601_299980801_4FGL_J1357.1+1921_daily_bin233.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.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    12.834       1.0000         .10000E-03   10000.    
     2 'norm      '    20.063       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    3.9127       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .34142       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10348E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    43.274       1.0000         .10000E-03   10000.    
     8 'Prefactor '    7.9519       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    14.881       1.0000         .10000E-03   10000.    
    11 'Prefactor '    16.374       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10616E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    6.4763       1.0000         .10000E-03   10000.    
    14 'norm      '    6.2782       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10024E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .10033E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10025E-03   1.0000         .10000E-03   10000.    
    18 'Normalizat'    .87049       1.0000         .10000E-01   10.000    
    19 'Prefactor '    1.0423       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=   5744.291     FROM MIGRAD    STATUS=CONVERGED    391 CALLS     1859 TOTAL
                     EDM=   .31E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          12.834        14.083        .60798E-07    .55789E-05
   2  norm          20.058        8.6700        .23317E-07    .23718E-04
   3  Prefactor     .10000E-03    13.009        .11889E-06** at limit **
   4  norm          3.9168        9.0273        .37927E-06   -.55616E-04
   5  Prefactor     .23474        20.579        .19679E-05   -.21159E-03
   6  Prefactor     .10000E-03    9.4276       -.16437E-06** at limit **
   7  Prefactor     43.192        42.517       -.25455E-05   -.20129E-03
   8  Prefactor     7.9528        4.8514        .20177E-07   -.16103E-03
   9  Prefactor     .10000E-03    1.2887       -.73283E-07** at limit **
  10  Prefactor     14.884        11.855       -.38002E-06   -.16557E-03
  11  Prefactor     16.363        11.582        .87688E-06    .28366E-03
  12  Prefactor     .10000E-03    18.134       -.37685E-06** at limit **
  13  Prefactor     6.4751        6.8172        .26420E-05   -.89985E-04
  14  norm          6.2776        2.7484        .17273E-07   -.24137E-05
  15  Prefactor     .10000E-03    2.9142       -.19138E-06** at limit **
  16  norm          .10000E-03    1.4295        .44183E-07** at limit **
  17  Prefactor     .10000E-03    8.9277        .11598E-06** at limit **
  18  Normalizat    .87074        .19198       -.96002E-06   -.10135E-03
  19  Prefactor     1.0423        .16289        .62207E-07   -.99021E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 12.8336
  norm       = 20.0581
  Prefactor  = 0.0001
  norm       = 3.9168
  Prefactor  = 0.234742
  Prefactor  = 0.0001
  Prefactor  = 43.1922
  Prefactor  = 7.95284
  Prefactor  = 0.0001
  Prefactor  = 14.8845
  Prefactor  = 16.3628
  Prefactor  = 0.0001
  Prefactor  = 6.47514
  norm       = 6.27758
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Normalizat = 0.870742
  Prefactor  = 1.04228
 **********
 **   18 **HESSE 
 **********

 FCN=   5744.291     FROM HESSE     STATUS=OK           276 CALLS     2135 TOTAL
                     EDM=   .34E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          12.834        14.082        .11181E-03   -1.4991    
   2  norm          20.058        8.6305        .89419E-04   -1.4812    
   3  Prefactor     .10000E-03    13.024        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          3.9168        8.9755        .20396E-03   -1.5312    
   5  Prefactor     .23474        24.982        .92713E-01   -1.5611    
   6  Prefactor     .10000E-03    9.4398        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     43.192        43.751        .60942E-04   -1.4393    
   8  Prefactor     7.9528        4.8608        .12515E-03   -1.5144    
   9  Prefactor     .10000E-03    1.2913        .84011E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     14.884        11.907        .10383E-03   -1.4936    
  11  Prefactor     16.363        11.706        .98979E-04   -1.4899    
  12  Prefactor     .10000E-03    18.215        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     6.4751        6.9123        .78852E-03   -1.5199    
  14  norm          6.2776        2.7494        .80671E-04   -1.5207    
  15  Prefactor     .10000E-03    2.9472        .12647E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10000E-03    1.4664        .17687E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    8.9315        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Normalizat    .87074        .22769        .26316E-03   -.97496    
  19  Prefactor     1.0423        .19317        .21301E-03   -.91333    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.38265e-10
Minuit parameter uncertainties:
  1  14.0854
  2  8.63103
  3  2.4534e-05
  4  8.97857
  5  4.84428
  6  2.36267e-05
  7  43.7832
  8  4.86101
  9  9.96242e-07
  10  11.9092
  11  11.708
  12  6.32078e-05
  13  6.91315
  14  2.74947
  15  1.89791e-05
  16  5.10819e-07
  17  1.00859e-05
  18  0.227944
  19  0.193294
Done.

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

Extracting fit parameters...

4FGL J1357.1+1921
   Spectrum: PowerLaw
267    Prefactor:  1.636e+01  1.171e+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.042e+00  1.933e-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.707e-01  2.279e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 2.75
Ra Dec: 209.290 19.361
Photon Index (Fixed Index): 2.76 +/- 0.00
Photon Flux (Fixed Index): 6.36e-08 +/- 4.55e-08
Energy Flux (Fixed Index): 1.47e-05 +/- 1.05e-05

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

Saving results to:
/scratch/kocevski/61117/likelihoodResults_299721601_299980801_4FGL_J1357.1+1921_daily_bin233.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) = 5744.28774264
delta logL = 0.00331449696932

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5744.28624977
delta logL = 0.00480736792815

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    17.081       1.0000         .10000E-03   10000.    
     2 'Index     '    2.6897       1.0000          .0000       10.000    
     3 'Normalizat'    .87346       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0402       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=   5744.286     FROM MIGRAD    STATUS=CONVERGED     80 CALLS      229 TOTAL
                     EDM=   .12E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     17.081        14.307        .96909E-04    .33904E-03
   2  Index         2.6897        .69569        .80448E-02    .74535E-04
   3  Normalizat    .87348        .21515        .26278E-03    .67360E-04
   4  Prefactor     1.0402        .18843        .21319E-03    .75031E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 17.0812
  Index      = 2.68966
  Normalizat = 0.873484
  Prefactor  = 1.04023
 **********
 **   18 **HESSE 
 **********

 FCN=   5744.286     FROM HESSE     STATUS=OK            25 CALLS      254 TOTAL
                     EDM=   .12E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     17.081        13.949        .38764E-05   -1.4881    
   2  Index         2.6897        .67815        .32179E-03   -.48033    
   3  Normalizat    .87348        .21531        .10511E-04   -.97398    
   4  Prefactor     1.0402        .18852        .85276E-05   -.91400    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.16808e-10
Minuit parameter uncertainties:
  1  13.9519
  2  0.680819
  3  0.215522
  4  0.188638
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/61117': 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) = 5744.28624977
delta logL = 0.00480737367525

Extracting fit parameters...

4FGL J1357.1+1921
   Spectrum: PowerLaw
267    Prefactor:  1.708e+01  1.395e+01  1.000e-04  1.000e+04 ( 1.000e-12)
268        Index:  2.690e+00  6.808e-01  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.886e-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.735e-01  2.155e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.74
Ra Dec: 209.290 19.361
Photon Index (Free Index): 2.69 +/- 0.68
Photon Flux (Free Index): 6.23e-08 +/- 4.68e-08
Energy Flux (Free Index): 1.51e-05 +/- 1.17e-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/61117/cmap_HighResolution_299721601_299980801_4FGL_J1357.1+1921_daily_bin233.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.23e-02', comment='SUCCESS', photon_flux='6.36e-08', energy_flux2='1.51e-05', photon_flux_error='4.55e-08', dlogl='4.81e-03', energy_flux='1.47e-05', photon_flux2='6.23e-08', job_status='DONE', time_completed='2021-09-08 17:58:48.555770', photon_index_error2='0.68', photon_index2='2.69', ts='2.75', fit_tolerance='1e-08', GAL='1.04', photon_index_error='0.00', photon_flux_upper_limit='1.56e-07', energy_flux_error2='1.17e-05', EG='0.87', time_epoch_completed='1631149128.56', return_code='0', job_id='61117', GAL2='1.04', EG2='0.87', return_code2='0', energy_flux_error='1.05e-05', photon_flux_error2='4.68e-08', ts2='2.74', photon_index='2.76' WHERE bin_id='233' AND source_name='4FGL J1357.1+1921' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  8 17:58:48 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0101>
Subject: Job 61117: <4FGL_J1357.1+1921_daily_bin233> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1357.1+1921_daily_bin233 209.29 19.3608 299721601 299980801 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 :                                   526.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             211.60 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   789 sec.
    Turnaround time :                            791 sec.

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

