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


Performing analysis on: 4FGL_J1357.1+1921_daily_bin544
RA = 209.29, Dec = 19.3608
tmin = 380332801, tmax = 380592001
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='62602', job_status='RUN', time_executed='2021-09-08 17:54:03.627199', time_epoch_executed='1631148843.63' WHERE source_name='4FGL J1357.1+1921' and cadence='daily' and bin_id='544'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/62602

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/62602/ft1_4FGL_J1357.1+1921_daily_bin544.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/62602/ft2_4FGL_J1357.1+1921_daily_bin544.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/62602/ft1_4FGL_J1357.1+1921_daily_bin544.fits outfile=/scratch/kocevski/62602/ft1_filteredMKT_4FGL_J1357.1+1921_daily_bin544.fits ra=209.29 dec=19.3608 rad=12.0 tmin=380332801.0 tmax=380592001.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.24
sys 0.20

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/62602/ft1_filtered_4FGL_J1357.1+1921_daily_bin544.fits" evtable="EVENTS" scfile=/scratch/kocevski/62602/ft2_4FGL_J1357.1+1921_daily_bin544.fits sctable="SC_DATA" outfile=/scratch/kocevski/62602/ltcube_380332801_380592001_4FGL_J1357.1+1921_daily_bin544.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/62602/ft2_4FGL_J1357.1+1921_daily_bin544.fits
.....................!
real 11.95
user 11.63
sys 0.29

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/62602/ft1_filtered_4FGL_J1357.1+1921_daily_bin544.fits evtable="EVENTS" scfile=/scratch/kocevski/62602/ft2_4FGL_J1357.1+1921_daily_bin544.fits sctable="SC_DATA" expcube=/scratch/kocevski/62602/ltcube_380332801_380592001_4FGL_J1357.1+1921_daily_bin544.fits outfile=/scratch/kocevski/62602/expmap_380332801_380592001_4FGL_J1357.1+1921_daily_bin544.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/62602/ltcube_380332801_380592001_4FGL_J1357.1+1921_daily_bin544.fits
.....................!
real 189.98
user 185.02
sys 4.62

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/62602/ft1_filtered_4FGL_J1357.1+1921_daily_bin544.fits scfile=/scratch/kocevski/62602/ft2_4FGL_J1357.1+1921_daily_bin544.fits outfile=/scratch/kocevski/62602/cmap_380332801_380592001_4FGL_J1357.1+1921_daily_bin544.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.55
user 0.38
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/62602/ft1_filtered_4FGL_J1357.1+1921_daily_bin544.fits scfile=/scratch/kocevski/62602/ft2_4FGL_J1357.1+1921_daily_bin544.fits outfile=/scratch/kocevski/62602/cmap_HighResolution_380332801_380592001_4FGL_J1357.1+1921_daily_bin544.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/62602/ft1_filtered_4FGL_J1357.1+1921_daily_bin544.fits evtable="EVENTS" scfile=/scratch/kocevski/62602/ft2_4FGL_J1357.1+1921_daily_bin544.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/62602/Model_4FGL_J1357.1+1921_daily_bin544.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/62602/ft1_filtered_4FGL_J1357.1+1921_daily_bin544.fits.....................!
real 59.04
user 57.66
sys 1.26

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    35.237       1.0000         .10000E-03   10000.    
     2 'norm      '    9.7100       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10067E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    20.491       1.0000         .10000E-03   10000.    
     7 'Prefactor '    46.997       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    18.560       1.0000         .10000E-03   10000.    
    11 'Prefactor '    12.516       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10017E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    6.7272       1.0000         .10000E-03   10000.    
    15 'Prefactor '    15.321       1.0000         .10000E-03   10000.    
    16 'norm      '    2.4485       1.0000         .10000E-03   10000.    
    17 'Prefactor '    12.038       1.0000         .10000E-03   10000.    
    18 'Normalizat'    1.2802       1.0000         .10000E-01   10.000    
    19 'Prefactor '    .82038       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=   7523.928     FROM MIGRAD    STATUS=CONVERGED    362 CALLS     1841 TOTAL
                     EDM=   .79E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          35.237        20.618       -.18907E-06    .41245E-05
   2  norm          9.7097        6.0876       -.17323E-06   -.37814E-04
   3  Prefactor     .10000E-03    14.739       -.15112E-04** at limit **
   4  norm          .10000E-03    3.1370        .51440E-07** at limit **
   5  Prefactor     .10000E-03    6.5861       -.20835E-05** at limit **
   6  Prefactor     20.490        17.486       -.67101E-06    .11115E-04
   7  Prefactor     46.995        36.771       -.22793E-05    .99694E-05
   8  Prefactor     .10000E-03    1.8390       -.10611E-06** at limit **
   9  Prefactor     .10000E-03    2.9900       -.83196E-07** at limit **
  10  Prefactor     18.559        16.026       -.10511E-05   -.33568E-04
  11  Prefactor     12.518        13.822        .71449E-06   -.46903E-04
  12  Prefactor     .10000E-03    13.312        .15025E-04** at limit **
  13  Prefactor     .10000E-03    4.6307        .65237E-06** at limit **
  14  norm          6.7271        2.7291       -.42966E-06   -.22422E-04
  15  Prefactor     15.323        7.6633        .74715E-06   -.17167E-03
  16  norm          2.4478        3.1189        .24288E-05   -.54817E-03
  17  Prefactor     12.025        41.881       -.36056E-04   -.25894E-04
  18  Normalizat    1.2801        .18457        .13366E-05   -.11236E-03
  19  Prefactor     .82051        .14900       -.42061E-08    .18023E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 35.2373
  norm       = 9.70965
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 20.4904
  Prefactor  = 46.9949
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 18.5593
  Prefactor  = 12.5175
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 6.72712
  Prefactor  = 15.3234
  norm       = 2.44782
  Prefactor  = 12.0246
  Normalizat = 1.28006
  Prefactor  = 0.820506
 **********
 **   18 **HESSE 
 **********

 FCN=   7523.928     FROM HESSE     STATUS=OK           270 CALLS     2111 TOTAL
                     EDM=   .18E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          35.237        20.617        .67510E-04   -1.4520    
   2  norm          9.7097        6.0968        .12860E-03   -1.5085    
   3  Prefactor     .10000E-03    14.770        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          .10000E-03    3.1513        .14997E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    6.5915        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     20.490        17.525        .88482E-04   -1.4802    
   7  Prefactor     46.995        36.774        .29244E-03   -1.4336    
   8  Prefactor     .10000E-03    1.8971        .22971E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    3.0819        .29274E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     18.559        16.042        .92968E-04   -1.4846    
  11  Prefactor     12.518        13.910        .11323E-03   -1.5000    
  12  Prefactor     .10000E-03    13.329        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    4.6806        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          6.7271        2.7296        .88371E-04   -1.5189    
  15  Prefactor     15.323        7.6533        .10233E-03   -1.4925    
  16  norm          2.4478        3.0798        .16041E-03   -1.5395    
  17  Prefactor     12.025        41.929        .11546E-03   -1.5014    
  18  Normalizat    1.2801        .22363        .24997E-03   -.84164    
  19  Prefactor     .82051        .17891        .25170E-03   -.98977    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.76764e-10
Minuit parameter uncertainties:
  1  20.6209
  2  6.0972
  3  5.66943e-07
  4  2.78583e-06
  5  9.17512e-07
  6  17.5298
  7  36.7918
  8  2.30472e-06
  9  8.03241e-07
  10  16.0458
  11  13.9133
  12  2.04625e-05
  13  9.35235e-06
  14  2.72967
  15  7.65382
  16  3.07996
  17  42.0316
  18  0.223802
  19  0.179037
Done.

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

Extracting fit parameters...

4FGL J1357.1+1921
   Spectrum: PowerLaw
267    Prefactor:  1.252e+01  1.391e+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:  8.205e-01  1.790e-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.280e+00  2.238e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/62602/likelihoodResults_380332801_380592001_4FGL_J1357.1+1921_daily_bin544.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) = 7522.73782492
delta logL = 1.1899828092

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7522.72008852
delta logL = 1.20771921021

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    4.7628       1.0000         .10000E-03   10000.    
     2 'Index     '    4.3657       1.0000          .0000       10.000    
     3 'Normalizat'    1.1979       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .86722       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=   7522.720     FROM MIGRAD    STATUS=CONVERGED     57 CALLS      253 TOTAL
                     EDM=   .16E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     4.7548        48.006        .46090E-02    .45058E-03
   2  Index         4.3671        3.6733        .17509        .12309E-03
   3  Normalizat    1.1981        .58186E-01    .58083E-01    .10072E-04
   4  Prefactor     .86701        .48225E-01    .44586E-01    .15681E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 4.7548
  Index      = 4.36715
  Normalizat = 1.19812
  Prefactor  = 0.86701
 **********
 **   18 **HESSE 
 **********

 FCN=   7522.720     FROM HESSE     STATUS=OK            33 CALLS      286 TOTAL
                     EDM=   .94E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     4.7548        18.961        .10812E-03   -1.5272    
   2  Index         4.3671        2.8849        .64976E-02   -.12691    
   3  Normalizat    1.1981        .22279        .25687E-03   -.86661    
   4  Prefactor     .86701        .18089        .24540E-03   -.97304    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.43832e-08
Minuit parameter uncertainties:
  1  18.9854
  2  3.07883
  3  0.222964
  4  0.181016
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/62602': 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) = 7522.72008702
delta logL = 1.20772070678

Extracting fit parameters...

4FGL J1357.1+1921
   Spectrum: PowerLaw
267    Prefactor:  4.755e+00  1.899e+01  1.000e-04  1.000e+04 ( 1.000e-12)
268        Index:  4.367e+00  3.079e+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:  8.670e-01  1.810e-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.198e+00  2.230e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 3.59
Ra Dec: 209.290 19.361
Photon Index (Free Index): 4.37 +/- 3.08
Photon Flux (Free Index): 1.14e-07 +/- 7.30e-08
Energy Flux (Free Index): 1.62e-05 +/- 1.32e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/62602/cmap_HighResolution_380332801_380592001_4FGL_J1357.1+1921_daily_bin544.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.21e-02', comment='SUCCESS', energy_flux2='1.62e-05', dlogl='1.21e+00', photon_flux2='1.14e-07', job_status='DONE', time_completed='2021-09-08 18:03:50.982559', photon_index_error2='3.08', photon_index2='4.37', ts='0.98', fit_tolerance='1e-08', GAL='0.82', photon_index_error='0.00', photon_flux_upper_limit='1.53e-07', energy_flux_error2='1.32e-05', EG='1.28', time_epoch_completed='1631149430.98', return_code='0', job_id='62602', GAL2='0.87', EG2='1.20', return_code2='0', photon_flux_error2='7.30e-08', ts2='3.59', photon_index='2.76' WHERE bin_id='544' AND source_name='4FGL J1357.1+1921' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  8 18:03:51 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0080>
Subject: Job 62602: <4FGL_J1357.1+1921_daily_bin544> in cluster <slac> Done

Job <4FGL_J1357.1+1921_daily_bin544> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Wed Sep  8 17:50:16 2021
Job was executed on host(s) <bullet0080>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep  8 17:50:18 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:50:18 2021
Terminated at Wed Sep  8 18:03:51 2021
Results reported at Wed Sep  8 18:03:51 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1357.1+1921_daily_bin544 209.29 19.3608 380332801 380592001 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 :                                   583.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             224.37 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   813 sec.
    Turnaround time :                            815 sec.

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

