/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 9 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 = 7486
number of fields = 22
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J1357.1+1921_daily_bin70
RA = 209.29, Dec = 19.3608
tmin = 257472001, tmax = 257731201
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='59833', job_status='RUN', time_executed='2021-09-08 17:41:22.763436', time_epoch_executed='1631148082.76' WHERE source_name='4FGL J1357.1+1921' and cadence='daily' and bin_id='70'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/59833

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/59833/ft1_4FGL_J1357.1+1921_daily_bin70.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/59833/ft2_4FGL_J1357.1+1921_daily_bin70.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/59833/ft1_4FGL_J1357.1+1921_daily_bin70.fits outfile=/scratch/kocevski/59833/ft1_filteredMKT_4FGL_J1357.1+1921_daily_bin70.fits ra=209.29 dec=19.3608 rad=12.0 tmin=257472001.0 tmax=257731201.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 1.98
user 1.79
sys 0.18

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/59833/ft1_filtered_4FGL_J1357.1+1921_daily_bin70.fits" evtable="EVENTS" scfile=/scratch/kocevski/59833/ft2_4FGL_J1357.1+1921_daily_bin70.fits sctable="SC_DATA" outfile=/scratch/kocevski/59833/ltcube_257472001_257731201_4FGL_J1357.1+1921_daily_bin70.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/59833/ft2_4FGL_J1357.1+1921_daily_bin70.fits
.....................!
real 12.40
user 12.05
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/59833/ft1_filtered_4FGL_J1357.1+1921_daily_bin70.fits evtable="EVENTS" scfile=/scratch/kocevski/59833/ft2_4FGL_J1357.1+1921_daily_bin70.fits sctable="SC_DATA" expcube=/scratch/kocevski/59833/ltcube_257472001_257731201_4FGL_J1357.1+1921_daily_bin70.fits outfile=/scratch/kocevski/59833/expmap_257472001_257731201_4FGL_J1357.1+1921_daily_bin70.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/59833/ltcube_257472001_257731201_4FGL_J1357.1+1921_daily_bin70.fits
.....................!
real 190.37
user 184.62
sys 5.42

Generating the xml model:
radLim = 0.001
maxRad = 12
normsOnly = True
freeVariableSources = True
Fixing all sources to their catalog values, except variable sources
Creating file and adding sources from 4FGL
Added 157 point sources and 0 extended sources

Setting source of interest to:
4FGL J1357.1+1921 @ 209.29 19.3608

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/59833/ft1_filtered_4FGL_J1357.1+1921_daily_bin70.fits scfile=/scratch/kocevski/59833/ft2_4FGL_J1357.1+1921_daily_bin70.fits outfile=/scratch/kocevski/59833/cmap_257472001_257731201_4FGL_J1357.1+1921_daily_bin70.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.35
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/59833/ft1_filtered_4FGL_J1357.1+1921_daily_bin70.fits scfile=/scratch/kocevski/59833/ft2_4FGL_J1357.1+1921_daily_bin70.fits outfile=/scratch/kocevski/59833/cmap_HighResolution_257472001_257731201_4FGL_J1357.1+1921_daily_bin70.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/59833/ft1_filtered_4FGL_J1357.1+1921_daily_bin70.fits evtable="EVENTS" scfile=/scratch/kocevski/59833/ft2_4FGL_J1357.1+1921_daily_bin70.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/59833/Model_4FGL_J1357.1+1921_daily_bin70.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/59833/ft1_filtered_4FGL_J1357.1+1921_daily_bin70.fits.....................!
real 50.78
user 49.52
sys 1.17

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10146E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    3.4233       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    22.772       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    26.634       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .95397       1.0000         .10000E-03   10000.    
     9 'Prefactor '    4.3038       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .20425E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .13643E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    34.230       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10023E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    9.2889       1.0000         .10000E-03   10000.    
    15 'Prefactor '    3.9336       1.0000         .10000E-03   10000.    
    16 'norm      '    .10020E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    53.373       1.0000         .10000E-03   10000.    
    18 'Normalizat'    1.0960       1.0000         .10000E-01   10.000    
    19 'Prefactor '    .95311       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=   6312.582     FROM MIGRAD    STATUS=CONVERGED    378 CALLS     1928 TOTAL
                     EDM=   .16E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    16.361       -.10099E-04** at limit **
   2  norm          3.4143        9.5490       -.27744E-05   -.30712E-03
   3  Prefactor     .10000E-03    9.3216        .52044E-06** at limit **
   4  norm          22.785        12.905        .34020E-06    .85406E-04
   5  Prefactor     .10000E-03    14.121        .18510E-05** at limit **
   6  Prefactor     .10000E-03    19.089        .21224E-05** at limit **
   7  Prefactor     26.633        25.127       -.48250E-06    .62288E-05
   8  Prefactor     .95549        3.9012       -.24022E-05   -.12637E-02
   9  Prefactor     4.3025        3.5357       -.12948E-05   -.15341E-04
  10  Prefactor     .10000E-03    37.750       -.30328E-05** at limit **
  11  Prefactor     .10000E-03    19.664        .94228E-05** at limit **
  12  Prefactor     34.229        30.462       -.65247E-06   -.16698E-04
  13  Prefactor     .10000E-03    2.8830       -.40177E-06** at limit **
  14  norm          9.2893        3.2696       -.28848E-06    .15189E-04
  15  Prefactor     3.9361        6.0146        .66330E-05   -.35537E-03
  16  norm          .10000E-03    .68305        .27818E-07** at limit **
  17  Prefactor     53.356        40.398       -.17509E-04   -.23393E-04
  18  Normalizat    1.0958        .18419        .95408E-06   -.79561E-04
  19  Prefactor     .95315        .15624        .23273E-06   -.43723E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  norm       = 3.41429
  Prefactor  = 0.0001
  norm       = 22.7853
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 26.6332
  Prefactor  = 0.955485
  Prefactor  = 4.30247
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 34.2292
  Prefactor  = 0.0001
  norm       = 9.28931
  Prefactor  = 3.93612
  norm       = 0.0001
  Prefactor  = 53.3561
  Normalizat = 1.09581
  Prefactor  = 0.953152
 **********
 **   18 **HESSE 
 **********

 FCN=   6312.582     FROM HESSE     STATUS=OK           270 CALLS     2198 TOTAL
                     EDM=   .31E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    16.402        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          3.4143        9.4010        .21863E-03   -1.5338    
   3  Prefactor     .10000E-03    9.3272        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          22.785        12.658        .83938E-04   -1.4753    
   5  Prefactor     .10000E-03    14.157        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    19.253        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     26.633        25.129        .77625E-04   -1.4675    
   8  Prefactor     .95549        4.1380        .30539E-03   -1.5512    
   9  Prefactor     4.3025        3.5348        .13143E-03   -1.5293    
  10  Prefactor     .10000E-03    38.986        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    20.320        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     34.229        30.472        .68494E-04   -1.4537    
  13  Prefactor     .10000E-03    2.8957        .13173E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          9.2893        3.2712        .82667E-04   -1.5098    
  15  Prefactor     3.9361        5.8967        .20340E-03   -1.5311    
  16  norm          .10000E-03    .68611        .64113E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     53.356        40.230        .54901E-04   -1.4246    
  18  Normalizat    1.0958        .22148        .25140E-03   -.89887    
  19  Prefactor     .95315        .18835        .23047E-03   -.94308    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.10932e-09
Minuit parameter uncertainties:
  1  5.00015e-05
  2  9.40508
  3  2.39807e-06
  4  12.6595
  5  5.15674e-06
  6  1.15803e-05
  7  25.1386
  8  3.9771
  9  3.53502
  10  8.60929e-06
  11  0.000268551
  12  30.4863
  13  3.23983e-05
  14  3.27125
  15  5.89758
  16  1.52793e-06
  17  40.2501
  18  0.22167
  19  0.188475
Done.

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

Extracting fit parameters...

4FGL J1357.1+1921
   Spectrum: PowerLaw
267    Prefactor:  1.000e-04  2.686e-04  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.532e-01  1.885e-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.217e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 209.290 19.361
Photon Flux Upper Limit: 8.43e-08 ph cm-2 s-1
Energy Flux Upper Limit: 6.66e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/59833/likelihoodResults_257472001_257731201_4FGL_J1357.1+1921_daily_bin70.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): 102
logL (Free Index) = 6312.58195603
delta logL = -0.000234944139265

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6312.58172111
delta logL = -2.26455085794e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10073E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.7716       1.0000          .0000       10.000    
     3 'Normalizat'    1.0958       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .95317       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=   6312.582     FROM MIGRAD    STATUS=CONVERGED     93 CALLS      251 TOTAL
                     EDM=   .57E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10044E-03    164.38        .36285E-02** at limit **
   2  Index         2.8093        5.1630        .50000       -.38277E-05
   3  Normalizat    1.0958        .12820E-01    .25139E-03    .68241E-04
   4  Prefactor     .95315        .11104E-01    .23047E-03    .60772E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100439
  Index      = 2.80925
  Normalizat = 1.09581
  Prefactor  = 0.953151
 **********
 **   18 **HESSE 
 **********

 FCN=   6312.582     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      280 TOTAL
                     EDM=   .32E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10044E-03    807.86        .72569E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.8093        7.1253        .50000       -.45354    
   3  Normalizat    1.0958        .29683E-01    .10056E-04   -.89887    
   4  Prefactor     .95315        .25709E-01    .92189E-05   -.94308    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 3.19579e-09
Minuit parameter uncertainties:
  1  0.0381694
  2  1030.62
  3  0.0296837
  4  0.0257097
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/59833': 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): 102
logL (Free Index) = 6312.58172104
delta logL = 4.90772436024e-08

Extracting fit parameters...

4FGL J1357.1+1921
   Spectrum: PowerLaw
267    Prefactor:  1.004e-04  3.817e-02  1.000e-04  1.000e+04 ( 1.000e-12)
268        Index:  2.809e+00  1.031e+03  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.532e-01  2.571e-02  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.968e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 209.290 19.361

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/59833/cmap_HighResolution_257472001_257731201_4FGL_J1357.1+1921_daily_bin70.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.66e-03', job_status='DONE', photon_flux_upper_limit='8.43e-08', time_completed='2021-09-08 17:50:25.230918', job_id='59833', GAL2='0.95', fit_tolerance='1e-08', EG2='1.10', EG='1.10', time_epoch_completed='1631148625.23', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.95', dlogl='4.91e-08', ts2='-0.00', photon_index_error='0.00', photon_index='2.76' WHERE bin_id='70' AND source_name='4FGL J1357.1+1921' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  8 17:50:25 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0048>
Subject: Job 59833: <4FGL_J1357.1+1921_daily_bin70> in cluster <slac> Done

Job <4FGL_J1357.1+1921_daily_bin70> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Wed Sep  8 17:41:04 2021
Job was executed on host(s) <bullet0048>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep  8 17:41:05 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:41:05 2021
Terminated at Wed Sep  8 17:50:26 2021
Results reported at Wed Sep  8 17:50:26 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1357.1+1921_daily_bin70 209.29 19.3608 257472001 257731201 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 :                                   540.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             346.47 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   560 sec.
    Turnaround time :                            562 sec.

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

