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


Performing analysis on: 4FGL_J1357.1+1921_daily_bin506
RA = 209.29, Dec = 19.3608
tmin = 370483201, tmax = 370742401
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='61542', job_status='RUN', time_executed='2021-09-08 17:48:38.521217', time_epoch_executed='1631148518.52' WHERE source_name='4FGL J1357.1+1921' and cadence='daily' and bin_id='506'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/61542

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/61542/ft1_4FGL_J1357.1+1921_daily_bin506.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/61542/ft2_4FGL_J1357.1+1921_daily_bin506.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/61542/ft1_4FGL_J1357.1+1921_daily_bin506.fits outfile=/scratch/kocevski/61542/ft1_filteredMKT_4FGL_J1357.1+1921_daily_bin506.fits ra=209.29 dec=19.3608 rad=12.0 tmin=370483201.0 tmax=370742401.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 20.01
user 19.56
sys 0.41

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/61542/ft2_4FGL_J1357.1+1921_daily_bin506.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/61542/ft1_filteredMKT_4FGL_J1357.1+1921_daily_bin506.fits evtable="EVENTS" outfile="/scratch/kocevski/61542/ft1_filtered_4FGL_J1357.1+1921_daily_bin506.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.51
user 0.32
sys 0.17

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/61542/ft1_filtered_4FGL_J1357.1+1921_daily_bin506.fits" evtable="EVENTS" scfile=/scratch/kocevski/61542/ft2_4FGL_J1357.1+1921_daily_bin506.fits sctable="SC_DATA" outfile=/scratch/kocevski/61542/ltcube_370483201_370742401_4FGL_J1357.1+1921_daily_bin506.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/61542/ft2_4FGL_J1357.1+1921_daily_bin506.fits
.....................!
real 10.71
user 10.14
sys 0.55

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/61542/ft1_filtered_4FGL_J1357.1+1921_daily_bin506.fits evtable="EVENTS" scfile=/scratch/kocevski/61542/ft2_4FGL_J1357.1+1921_daily_bin506.fits sctable="SC_DATA" expcube=/scratch/kocevski/61542/ltcube_370483201_370742401_4FGL_J1357.1+1921_daily_bin506.fits outfile=/scratch/kocevski/61542/expmap_370483201_370742401_4FGL_J1357.1+1921_daily_bin506.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/61542/ltcube_370483201_370742401_4FGL_J1357.1+1921_daily_bin506.fits
.....................!
real 191.27
user 185.08
sys 5.84

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/61542/ft1_filtered_4FGL_J1357.1+1921_daily_bin506.fits scfile=/scratch/kocevski/61542/ft2_4FGL_J1357.1+1921_daily_bin506.fits outfile=/scratch/kocevski/61542/cmap_370483201_370742401_4FGL_J1357.1+1921_daily_bin506.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/61542/ft1_filtered_4FGL_J1357.1+1921_daily_bin506.fits scfile=/scratch/kocevski/61542/ft2_4FGL_J1357.1+1921_daily_bin506.fits outfile=/scratch/kocevski/61542/cmap_HighResolution_370483201_370742401_4FGL_J1357.1+1921_daily_bin506.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/61542/ft1_filtered_4FGL_J1357.1+1921_daily_bin506.fits evtable="EVENTS" scfile=/scratch/kocevski/61542/ft2_4FGL_J1357.1+1921_daily_bin506.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/61542/Model_4FGL_J1357.1+1921_daily_bin506.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/61542/ft1_filtered_4FGL_J1357.1+1921_daily_bin506.fits...........................!
real 17.70
user 16.42
sys 1.23

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .33043E-02   1.0000         .10000E-03   10000.    
     2 'norm      '    20.154       1.0000         .10000E-03   10000.    
     3 'Prefactor '    60.513       1.0000         .10000E-03   10000.    
     4 'norm      '    .10198E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10018E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10018E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    608.64       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    3.7916       1.0000         .10000E-03   10000.    
    11 'Prefactor '    48.853       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10049E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    14.101       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10115E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .10115E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    7.5295       1.0000         .10000E-03   10000.    
    18 'Normalizat'    1.0298       1.0000         .10000E-01   10.000    
    19 'Prefactor '    .60119       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=   664.4672     FROM MIGRAD    STATUS=CONVERGED    378 CALLS     1852 TOTAL
                     EDM=   .15E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10001E-03    373.96        .14235E-04** at limit **
   2  norm          20.150        21.772        .16779E-05   -.50591E-04
   3  Prefactor     60.507        144.91       -.22717E-05   -.97884E-06
   4  norm          .10000E-03    16.099       -.50400E-06** at limit **
   5  Prefactor     .10000E-03    21.049       -.37671E-06** at limit **
   6  Prefactor     .10000E-03    25.071       -.93996E-06** at limit **
   7  Prefactor     608.35        526.94        .48678E-05   -.39140E-05
   8  Prefactor     .10000E-03    4.9702       -.59386E-06** at limit **
   9  Prefactor     .10000E-03    39.232        .12323E-05** at limit **
  10  Prefactor     4.0243        1180.2       -.19259E-04    .27352E-05
  11  Prefactor     48.814        67.554        .15387E-05   -.18113E-04
  12  Prefactor     .10000E-03    442.67       -.52881E-07** at limit **
  13  Prefactor     .10000E-03    34.274        .29025E-05** at limit **
  14  norm          14.101        9.9298        .60190E-08   -.34297E-04
  15  Prefactor     .10000E-03    34.601        .92546E-05** at limit **
  16  norm          .10000E-03    10.068        .10801E-04** at limit **
  17  Prefactor     8.4781        2248.9       -.76254E-04   -.83862E-05
  18  Normalizat    1.0298        .52414        .95552E-05   -.85085E-04
  19  Prefactor     .60086        .43800       -.62242E-05   -.53837E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 0.000100007
  norm       = 20.1497
  Prefactor  = 60.5072
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 608.346
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 4.02433
  Prefactor  = 48.8139
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 14.1012
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 8.47805
  Normalizat = 1.02977
  Prefactor  = 0.600861
 **********
 **   18 **HESSE 
 **********

 FCN=   664.4672     FROM HESSE     STATUS=OK           262 CALLS     2114 TOTAL
                     EDM=   .34E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10001E-03    381.24        .39442E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          20.150        21.762        .89218E-04   -1.4810    
   3  Prefactor     60.507        144.97        .51578E-04   -1.4151    
   4  norm          .10000E-03    16.120        .10106E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    21.057        .11558E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    25.085        .12615E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     608.35        522.87        .83654E-04   -1.0724    
   8  Prefactor     .10000E-03    4.9787        .56145E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    39.226        .15776E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     4.0243        1085.4        .20731E-02   -1.5307    
  11  Prefactor     48.814        67.393        .57372E-04   -1.4309    
  12  Prefactor     .10000E-03    442.34        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    34.256        .14751E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          14.101        9.9306        .66287E-04   -1.4957    
  15  Prefactor     .10000E-03    34.558        .14821E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10000E-03    10.106        .80037E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     8.4781        2119.5        .73076E-02   -1.5126    
  18  Normalizat    1.0298        .59654        .24267E-03   -.92040    
  19  Prefactor     .60086        .49770        .26775E-03   -1.0755    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.36855e-10
Minuit parameter uncertainties:
  1  0.00329971
  2  21.7707
  3  145.829
  4  5.30115e-05
  5  1.56763e-05
  6  2.97252e-05
  7  527.133
  8  9.40594e-06
  9  6.7118e-05
  10  134.726
  11  67.4988
  12  0.000721507
  13  1.97149e-06
  14  9.93177
  15  2.7867e-05
  16  1.65693e-05
  17  278.745
  18  0.600482
  19  0.501408
Done.

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

Extracting fit parameters...

4FGL J1357.1+1921
   Spectrum: PowerLaw
267    Prefactor:  4.881e+01  6.750e+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:  6.009e-01  5.014e-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.030e+00  6.005e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/61542/likelihoodResults_370483201_370742401_4FGL_J1357.1+1921_daily_bin506.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) = 664.250704869
delta logL = 0.216524038309

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 664.24394966
delta logL = 0.223279247788

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    31.866       1.0000         .10000E-03   10000.    
     2 'Index     '    3.6535       1.0000          .0000       10.000    
     3 'Normalizat'    .94772       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .64256       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=   664.2439     FROM MIGRAD    STATUS=CONVERGED     87 CALLS      284 TOTAL
                     EDM=   .84E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     31.797        57.308        .70981E-04   -.91121E-04
   2  Index         3.6507        1.5181        .42668E-02   -.28930E-04
   3  Normalizat    .94857        .58923        .25068E-03   -.14533E-03
   4  Prefactor     .64262        .49622        .25877E-03    .23339E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 31.7967
  Index      = 3.65072
  Normalizat = 0.948566
  Prefactor  = 0.642623
 **********
 **   18 **HESSE 
 **********

 FCN=   664.2439     FROM HESSE     STATUS=OK            25 CALLS      309 TOTAL
                     EDM=   .84E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     31.797        54.189        .14196E-04   -1.4580    
   2  Index         3.6507        1.4368        .17067E-03   -.27324    
   3  Normalizat    .94857        .58982        .50135E-04   -.94774    
   4  Prefactor     .64262        .49633        .10351E-04   -1.0582    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.37936e-10
Minuit parameter uncertainties:
  1  54.2735
  2  1.45908
  3  0.593925
  4  0.499785
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/61542': 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) = 664.243936739
delta logL = 0.223292168526

Extracting fit parameters...

4FGL J1357.1+1921
   Spectrum: PowerLaw
267    Prefactor:  3.180e+01  5.427e+01  1.000e-04  1.000e+04 ( 1.000e-12)
268        Index:  3.651e+00  1.459e+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:  6.426e-01  4.998e-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.486e-01  5.939e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.26
Ra Dec: 209.290 19.361
Photon Index (Free Index): 3.65 +/- 1.46
Photon Flux (Free Index): 3.22e-07 +/- 3.60e-07
Energy Flux (Free Index): 5.17e-05 +/- 5.49e-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/61542/cmap_HighResolution_370483201_370742401_4FGL_J1357.1+1921_daily_bin506.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.14e-02', comment='SUCCESS', energy_flux2='5.17e-05', dlogl='2.23e-01', photon_flux2='3.22e-07', job_status='DONE', time_completed='2021-09-08 17:56:31.868226', photon_index_error2='1.46', photon_index2='3.65', ts='0.80', fit_tolerance='1e-08', GAL='0.60', photon_index_error='0.00', photon_flux_upper_limit='7.78e-07', energy_flux_error2='5.49e-05', EG='1.03', time_epoch_completed='1631148991.87', return_code='0', job_id='61542', GAL2='0.64', EG2='0.95', return_code2='0', photon_flux_error2='3.60e-07', ts2='1.26', photon_index='2.76' WHERE bin_id='506' AND source_name='4FGL J1357.1+1921' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  8 17:56:31 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0058>
Subject: Job 61542: <4FGL_J1357.1+1921_daily_bin506> in cluster <slac> Done

Job <4FGL_J1357.1+1921_daily_bin506> was submitted from host <rhel6-64m> by user <kocevski> in cluster <slac> at Wed Sep  8 17:46:16 2021
Job was executed on host(s) <bullet0058>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep  8 17:46:17 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:46:17 2021
Terminated at Wed Sep  8 17:56:32 2021
Results reported at Wed Sep  8 17:56:32 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1357.1+1921_daily_bin506 209.29 19.3608 370483201 370742401 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 :                                   412.21 sec.
    Max Memory :                                 1255 MB
    Average Memory :                             197.68 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   615 sec.
    Turnaround time :                            616 sec.

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

