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


Performing analysis on: 4FGL_J1357.1+1921_daily_bin512
RA = 209.29, Dec = 19.3608
tmin = 372038401, tmax = 372297601
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='61552', job_status='RUN', time_executed='2021-09-08 17:49:15.280677', time_epoch_executed='1631148555.28' WHERE source_name='4FGL J1357.1+1921' and cadence='daily' and bin_id='512'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/61552

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/61552/ft1_4FGL_J1357.1+1921_daily_bin512.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/61552/ft2_4FGL_J1357.1+1921_daily_bin512.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/61552/ft1_4FGL_J1357.1+1921_daily_bin512.fits outfile=/scratch/kocevski/61552/ft1_filteredMKT_4FGL_J1357.1+1921_daily_bin512.fits ra=209.29 dec=19.3608 rad=12.0 tmin=372038401.0 tmax=372297601.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 4.45
user 4.22
sys 0.21

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/61552/ft1_filtered_4FGL_J1357.1+1921_daily_bin512.fits evtable="EVENTS" scfile=/scratch/kocevski/61552/ft2_4FGL_J1357.1+1921_daily_bin512.fits sctable="SC_DATA" expcube=/scratch/kocevski/61552/ltcube_372038401_372297601_4FGL_J1357.1+1921_daily_bin512.fits outfile=/scratch/kocevski/61552/expmap_372038401_372297601_4FGL_J1357.1+1921_daily_bin512.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/61552/ltcube_372038401_372297601_4FGL_J1357.1+1921_daily_bin512.fits
.....................!
real 193.19
user 187.67
sys 5.08

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/61552/ft1_filtered_4FGL_J1357.1+1921_daily_bin512.fits scfile=/scratch/kocevski/61552/ft2_4FGL_J1357.1+1921_daily_bin512.fits outfile=/scratch/kocevski/61552/cmap_372038401_372297601_4FGL_J1357.1+1921_daily_bin512.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.54
user 0.37
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/61552/ft1_filtered_4FGL_J1357.1+1921_daily_bin512.fits scfile=/scratch/kocevski/61552/ft2_4FGL_J1357.1+1921_daily_bin512.fits outfile=/scratch/kocevski/61552/cmap_HighResolution_372038401_372297601_4FGL_J1357.1+1921_daily_bin512.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.58
user 0.39
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10035E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    44.404       1.0000         .10000E-03   10000.    
     3 'Prefactor '    17.911       1.0000         .10000E-03   10000.    
     4 'norm      '    4.4966       1.0000         .10000E-03   10000.    
     5 'Prefactor '    35.531       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10043E-03   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 '    .10007E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    8.8546       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .11650E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10023E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    5.4664       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .84046       1.0000         .10000E-03   10000.    
    16 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'Normalizat'    1.0970       1.0000         .10000E-01   10.000    
    19 'Prefactor '    1.0156       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=   6036.700     FROM MIGRAD    STATUS=CONVERGED    387 CALLS     1879 TOTAL
                     EDM=   .95E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    6.5045        .42406E-07** at limit **
   2  norm          44.409        15.844       -.10559E-05   -.57326E-05
   3  Prefactor     17.853        34.375       -.52823E-04    .72735E-05
   4  norm          4.4787        17.724        .88501E-06   -.80021E-04
   5  Prefactor     35.526        23.729       -.11206E-05   -.14156E-04
   6  Prefactor     .10000E-03    10.979        .32474E-05** at limit **
   7  Prefactor     .10000E-03    36.838        .56135E-05** at limit **
   8  Prefactor     .10000E-03    3.6443        .12908E-06** at limit **
   9  Prefactor     .10000E-03    1.8015       -.44691E-06** at limit **
  10  Prefactor     .10000E-03    17.209       -.15789E-04** at limit **
  11  Prefactor     8.8452        14.954        .54776E-06    .24422E-06
  12  Prefactor     .10000E-03    102.63        .26047E-05** at limit **
  13  Prefactor     .10000E-03    14.746        .18834E-04** at limit **
  14  norm          5.4663        2.9412       -.19658E-06   -.21155E-05
  15  Prefactor     .84171        2.8702       -.17490E-05   -.13088E-02
  16  norm          .10000E-03    .58128        .79874E-08** at limit **
  17  Prefactor     .10000E-03    12.175       -.97430E-05** at limit **
  18  Normalizat    1.0976        .19925        .30057E-06    .18602E-04
  19  Prefactor     1.0152        .16192        .30401E-05   -.18712E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  norm       = 44.4085
  Prefactor  = 17.8528
  norm       = 4.47873
  Prefactor  = 35.5259
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 8.84518
  Prefactor  = 0.000100002
  Prefactor  = 0.000100001
  norm       = 5.46632
  Prefactor  = 0.841713
  norm       = 0.0001
  Prefactor  = 0.0001
  Normalizat = 1.09763
  Prefactor  = 1.01518
 **********
 **   18 **HESSE 
 **********

 FCN=   6036.700     FROM HESSE     STATUS=OK           264 CALLS     2143 TOTAL
                     EDM=   .18E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    6.5056        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          44.409        15.452        .60165E-04   -1.4374    
   3  Prefactor     17.853        34.383        .94637E-04   -1.4863    
   4  norm          4.4787        17.255        .18987E-03   -1.5285    
   5  Prefactor     35.526        23.781        .67231E-04   -1.4515    
   6  Prefactor     .10000E-03    10.996        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    36.880        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    3.7115        .14476E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    1.8072        .10184E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    17.564        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     8.8452        15.032        .13470E-03   -1.5113    
  12  Prefactor     .10000E-03    104.55        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    15.034        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          5.4663        2.9423        .94555E-04   -1.5240    
  15  Prefactor     .84171        3.0319        .23524E-02   -1.5524    
  16  norm          .10000E-03    .58255        .57846E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    12.183        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Normalizat    1.0976        .23782        .26784E-03   -.89828    
  19  Prefactor     1.0152        .19301        .23191E-03   -.92225    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.7511e-09
Minuit parameter uncertainties:
  1  2.52476e-06
  2  15.4533
  3  34.4211
  4  17.2737
  5  23.7872
  6  5.05222e-06
  7  7.11841e-05
  8  1.36151e-05
  9  2.3637e-06
  10  7.8128e-05
  11  15.0383
  12  0.00101975
  13  0.000263047
  14  2.94241
  15  3.03247
  16  1.23784e-06
  17  8.58411e-06
  18  0.238053
  19  0.193145
Done.

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

Extracting fit parameters...

4FGL J1357.1+1921
   Spectrum: PowerLaw
267    Prefactor:  8.845e+00  1.504e+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.015e+00  1.931e-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.098e+00  2.381e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/61552/likelihoodResults_372038401_372297601_4FGL_J1357.1+1921_daily_bin512.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) = 6035.98252671
delta logL = 0.717170509074

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6035.98224902
delta logL = 0.717448202174

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    4.6959       1.0000         .10000E-03   10000.    
     2 'Index     '    4.2027       1.0000          .0000       10.000    
     3 'Normalizat'    1.0347       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0468       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=   6035.982     FROM MIGRAD    STATUS=CONVERGED     56 CALLS      270 TOTAL
                     EDM=   .52E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     4.6891        80.114        .46425E-02    .38745E-03
   2  Index         4.2045        6.9009        .20412        .91372E-04
   3  Normalizat    1.0349        .60274E-01    .62118E-01    .54274E-05
   4  Prefactor     1.0467        .50758E-01    .40103E-01    .17637E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 4.68911
  Index      = 4.20454
  Normalizat = 1.03486
  Prefactor  = 1.04672
 **********
 **   18 **HESSE 
 **********

 FCN=   6035.982     FROM HESSE     STATUS=OK            33 CALLS      303 TOTAL
                     EDM=   .52E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     4.6891        15.465        .13110E-03   -1.5275    
   2  Index         4.2045        2.3555        .73615E-02   -.15977    
   3  Normalizat    1.0349        .23589        .27474E-03   -.91871    
   4  Prefactor     1.0467        .19258        .22870E-03   -.91188    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.22891e-11
Minuit parameter uncertainties:
  1  15.4785
  2  2.4555
  3  0.236128
  4  0.192712
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/61552': 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) = 6035.98224665
delta logL = 0.717450570339

Extracting fit parameters...

4FGL J1357.1+1921
   Spectrum: PowerLaw
267    Prefactor:  4.689e+00  1.548e+01  1.000e-04  1.000e+04 ( 1.000e-12)
268        Index:  4.205e+00  2.456e+00  0.000e+00  1.000e+01 (-1.000e+00)
269        Scale:  4.625e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
506    Prefactor:  1.047e+00  1.927e-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.035e+00  2.361e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.94
Ra Dec: 209.290 19.361
Photon Index (Free Index): 4.20 +/- 2.46
Photon Flux (Free Index): 9.20e-08 +/- 8.03e-08
Energy Flux (Free Index): 1.33e-05 +/- 1.35e-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/61552/cmap_HighResolution_372038401_372297601_4FGL_J1357.1+1921_daily_bin512.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.24e-02', comment='SUCCESS', energy_flux2='1.33e-05', dlogl='7.17e-01', photon_flux2='9.20e-08', job_status='DONE', time_completed='2021-09-08 17:58:47.804486', photon_index_error2='2.46', photon_index2='4.20', ts='0.41', fit_tolerance='1e-08', GAL='1.02', photon_index_error='0.00', photon_flux_upper_limit='1.57e-07', energy_flux_error2='1.35e-05', EG='1.10', time_epoch_completed='1631149127.8', return_code='0', job_id='61552', GAL2='1.05', EG2='1.03', return_code2='0', photon_flux_error2='8.03e-08', ts2='1.94', photon_index='2.76' WHERE bin_id='512' AND source_name='4FGL J1357.1+1921' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  8 17:58:47 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0269>
Subject: Job 61552: <4FGL_J1357.1+1921_daily_bin512> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1357.1+1921_daily_bin512 209.29 19.3608 372038401 372297601 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 :                                   537.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             230.40 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   750 sec.
    Turnaround time :                            751 sec.

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

