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


Performing analysis on: 4FGL_J1357.1+1921_daily_bin938
RA = 209.29, Dec = 19.3608
tmin = 482457601, tmax = 482716801
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='64447', job_status='RUN', time_executed='2021-09-08 17:59:07.830135', time_epoch_executed='1631149147.83' WHERE source_name='4FGL J1357.1+1921' and cadence='daily' and bin_id='938'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/64447

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/64447/ft1_4FGL_J1357.1+1921_daily_bin938.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/64447/ft2_4FGL_J1357.1+1921_daily_bin938.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/64447/ft1_4FGL_J1357.1+1921_daily_bin938.fits outfile=/scratch/kocevski/64447/ft1_filteredMKT_4FGL_J1357.1+1921_daily_bin938.fits ra=209.29 dec=19.3608 rad=12.0 tmin=482457601.0 tmax=482716801.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.54
user 3.31
sys 0.20

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/64447/ft1_filtered_4FGL_J1357.1+1921_daily_bin938.fits" evtable="EVENTS" scfile=/scratch/kocevski/64447/ft2_4FGL_J1357.1+1921_daily_bin938.fits sctable="SC_DATA" outfile=/scratch/kocevski/64447/ltcube_482457601_482716801_4FGL_J1357.1+1921_daily_bin938.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/64447/ft2_4FGL_J1357.1+1921_daily_bin938.fits
.....................!
real 12.64
user 12.12
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/64447/ft1_filtered_4FGL_J1357.1+1921_daily_bin938.fits evtable="EVENTS" scfile=/scratch/kocevski/64447/ft2_4FGL_J1357.1+1921_daily_bin938.fits sctable="SC_DATA" expcube=/scratch/kocevski/64447/ltcube_482457601_482716801_4FGL_J1357.1+1921_daily_bin938.fits outfile=/scratch/kocevski/64447/expmap_482457601_482716801_4FGL_J1357.1+1921_daily_bin938.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/64447/ltcube_482457601_482716801_4FGL_J1357.1+1921_daily_bin938.fits
.....................!
real 191.51
user 186.19
sys 4.99

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/64447/ft1_filtered_4FGL_J1357.1+1921_daily_bin938.fits scfile=/scratch/kocevski/64447/ft2_4FGL_J1357.1+1921_daily_bin938.fits outfile=/scratch/kocevski/64447/cmap_482457601_482716801_4FGL_J1357.1+1921_daily_bin938.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.38
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/64447/ft1_filtered_4FGL_J1357.1+1921_daily_bin938.fits scfile=/scratch/kocevski/64447/ft2_4FGL_J1357.1+1921_daily_bin938.fits outfile=/scratch/kocevski/64447/cmap_HighResolution_482457601_482716801_4FGL_J1357.1+1921_daily_bin938.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.36
sys 0.17

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    20.790       1.0000         .10000E-03   10000.    
     2 'norm      '    6.5836       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    .10082E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    2.7690       1.0000         .10000E-03   10000.    
     8 'Prefactor '    2.3917       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10069E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .11776E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    21.081       1.0000         .10000E-03   10000.    
    12 'Prefactor '    5.8716       1.0000         .10000E-03   10000.    
    13 'Prefactor '    1.5835       1.0000         .10000E-03   10000.    
    14 'norm      '    .53830       1.0000         .10000E-03   10000.    
    15 'Prefactor '    8.6238       1.0000         .10000E-03   10000.    
    16 'norm      '    3.6853       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10166E-03   1.0000         .10000E-03   10000.    
    18 'Normalizat'    1.0963       1.0000         .10000E-01   10.000    
    19 'Prefactor '    .94757       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=   5800.455     FROM MIGRAD    STATUS=CONVERGED    405 CALLS     1647 TOTAL
                     EDM=   .17E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          20.753        27.130        .14046E-04   -.41280E-05
   2  norm          6.5821        6.4203       -.27702E-05   -.17644E-03
   3  Prefactor     .10000E-03    13.591        .37363E-07** at limit **
   4  norm          .10000E-03    5.3437       -.55311E-07** at limit **
   5  Prefactor     .10000E-03    6.9330        .10566E-06** at limit **
   6  Prefactor     .10000E-03    6.0548       -.20079E-06** at limit **
   7  Prefactor     2.4972        145.97       -.15650E-04   -.13240E-04
   8  Prefactor     2.3916        2.3470        .69991E-07    .14721E-03
   9  Prefactor     .10000E-03    4.1239       -.14189E-06** at limit **
  10  Prefactor     .10000E-03    23.083        .32961E-06** at limit **
  11  Prefactor     21.082        14.798        .91330E-05   -.26496E-04
  12  Prefactor     5.8669        35.159       -.63913E-05   -.87304E-05
  13  Prefactor     1.5829        6.3753       -.29990E-05   -.70015E-03
  14  norm          .53912        2.1159       -.10847E-05   -.14398E-02
  15  Prefactor     8.6180        7.7767       -.12188E-07   -.82354E-04
  16  norm          3.6833        3.1630        .27285E-06   -.28265E-03
  17  Prefactor     .10000E-03    94.445        .34104E-05** at limit **
  18  Normalizat    1.0963        .19167       -.23820E-05    .17066E-03
  19  Prefactor     .94764        .16302        .41051E-06   -.24617E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 20.7525
  norm       = 6.58215
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 2.49715
  Prefactor  = 2.3916
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 21.0816
  Prefactor  = 5.86695
  Prefactor  = 1.58291
  norm       = 0.539122
  Prefactor  = 8.61798
  norm       = 3.68329
  Prefactor  = 0.0001
  Normalizat = 1.09629
  Prefactor  = 0.94764
 **********
 **   18 **HESSE 
 **********

 FCN=   5800.455     FROM HESSE     STATUS=OK           270 CALLS     1917 TOTAL
                     EDM=   .33E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          20.753        26.858        .87845E-04   -1.4797    
   2  norm          6.5821        6.4464        .15640E-03   -1.5195    
   3  Prefactor     .10000E-03    13.602        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          .10000E-03    5.3730        .17179E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    6.9394        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    6.0592        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     2.4972        147.24        .24458E-03   -1.5392    
   8  Prefactor     2.3916        2.3564        .11257E-03   -1.5399    
   9  Prefactor     .10000E-03    4.2818        .30190E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    23.517        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     21.082        14.565        .87236E-04   -1.4789    
  12  Prefactor     5.8669        34.861        .16573E-03   -1.5223    
  13  Prefactor     1.5829        6.4001        .33742E-03   -1.5456    
  14  norm          .53912        2.1234        .21298E-03   -1.5561    
  15  Prefactor     8.6180        7.7211        .13650E-03   -1.5121    
  16  norm          3.6833        3.1551        .11935E-03   -1.5324    
  17  Prefactor     .10000E-03    95.451        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Normalizat    1.0963        .23080        .24945E-03   -.89871    
  19  Prefactor     .94764        .19614        .22790E-03   -.94496    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.26538e-09
Minuit parameter uncertainties:
  1  26.8735
  2  6.44709
  3  8.79799e-06
  4  1.89335e-05
  5  2.69643e-06
  6  1.21829e-06
  7  38.4492
  8  2.35651
  9  1.96027e-05
  10  0.000103977
  11  14.5673
  12  28.6275
  13  6.36674
  14  2.12369
  15  7.72196
  16  3.1552
  17  0.000182989
  18  0.23101
  19  0.19629
Done.

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

Extracting fit parameters...

4FGL J1357.1+1921
   Spectrum: PowerLaw
267    Prefactor:  2.108e+01  1.457e+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.476e-01  1.963e-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.096e+00  2.310e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 2.87
Ra Dec: 209.290 19.361
Photon Index (Fixed Index): 2.76 +/- 0.00
Photon Flux (Fixed Index): 8.20e-08 +/- 5.66e-08
Energy Flux (Fixed Index): 1.89e-05 +/- 1.31e-05

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

Saving results to:
/scratch/kocevski/64447/likelihoodResults_482457601_482716801_4FGL_J1357.1+1921_daily_bin938.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) = 5800.03634487
delta logL = 0.419031303253

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5800.02014122
delta logL = 0.435234954934

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    12.766       1.0000         .10000E-03   10000.    
     2 'Index     '    3.4595       1.0000          .0000       10.000    
     3 'Normalizat'    1.0656       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .96807       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.
 MACHINE ACCURACY LIMITS FURTHER IMPROVEMENT.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   5800.020     FROM MIGRAD    STATUS=CONVERGED    102 CALLS      288 TOTAL
                     EDM=   .54E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     12.759        16.715        .56054E-03    .97777E-04
   2  Index         3.4610        1.0440        .64203E-02    .35008E-03
   3  Normalizat    1.0652        .22888        .25249E-03   -.12157E-05
   4  Prefactor     .96839        .19399        .22566E-03   -.10580E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 12.759
  Index      = 3.461
  Normalizat = 1.06517
  Prefactor  = 0.968394
 **********
 **   18 **HESSE 
 **********

 FCN=   5800.020     FROM HESSE     STATUS=OK            27 CALLS      315 TOTAL
                     EDM=   .69E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     12.759        14.380        .11211E-03   -1.4993    
   2  Index         3.4610        .89947        .12841E-02   -.31288    
   3  Normalizat    1.0652        .22914        .10100E-04   -.90878    
   4  Prefactor     .96839        .19395        .90264E-05   -.93791    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.87816e-12
Minuit parameter uncertainties:
  1  14.3836
  2  0.904918
  3  0.229358
  4  0.194085
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/64447': 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) = 5800.02013728
delta logL = 0.435238889584

Extracting fit parameters...

4FGL J1357.1+1921
   Spectrum: PowerLaw
267    Prefactor:  1.276e+01  1.438e+01  1.000e-04  1.000e+04 ( 1.000e-12)
268        Index:  3.461e+00  9.049e-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:  9.684e-01  1.941e-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.065e+00  2.294e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 3.78
Ra Dec: 209.290 19.361
Photon Index (Free Index): 3.46 +/- 0.90
Photon Flux (Free Index): 1.04e-07 +/- 6.39e-08
Energy Flux (Free Index): 1.75e-05 +/- 1.11e-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/64447/cmap_HighResolution_482457601_482716801_4FGL_J1357.1+1921_daily_bin938.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.51e-02', comment='SUCCESS', photon_flux='8.20e-08', energy_flux2='1.75e-05', photon_flux_error='5.66e-08', dlogl='4.35e-01', energy_flux='1.89e-05', photon_flux2='1.04e-07', job_status='DONE', time_completed='2021-09-08 18:07:44.060027', photon_index_error2='0.90', photon_index2='3.46', ts='2.87', fit_tolerance='1e-08', GAL='0.95', photon_index_error='0.00', photon_flux_upper_limit='1.91e-07', energy_flux_error2='1.11e-05', EG='1.10', time_epoch_completed='1631149664.06', return_code='0', job_id='64447', GAL2='0.97', EG2='1.07', return_code2='0', energy_flux_error='1.31e-05', photon_flux_error2='6.39e-08', ts2='3.78', photon_index='2.76' WHERE bin_id='938' AND source_name='4FGL J1357.1+1921' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  8 18:07:44 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0037>
Subject: Job 64447: <4FGL_J1357.1+1921_daily_bin938> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1357.1+1921_daily_bin938 209.29 19.3608 482457601 482716801 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.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             261.87 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   730 sec.
    Turnaround time :                            731 sec.

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

