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


Performing analysis on: 4FGL_J1357.1+1921_daily_bin994
RA = 209.29, Dec = 19.3608
tmin = 496972801, tmax = 497232001
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='64534', job_status='RUN', time_executed='2021-09-08 17:58:55.214251', time_epoch_executed='1631149135.21' WHERE source_name='4FGL J1357.1+1921' and cadence='daily' and bin_id='994'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/64534

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/64534/ft1_4FGL_J1357.1+1921_daily_bin994.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/64534/ft2_4FGL_J1357.1+1921_daily_bin994.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/64534/ft1_4FGL_J1357.1+1921_daily_bin994.fits outfile=/scratch/kocevski/64534/ft1_filteredMKT_4FGL_J1357.1+1921_daily_bin994.fits ra=209.29 dec=19.3608 rad=12.0 tmin=496972801.0 tmax=497232001.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 5.16
user 4.92
sys 0.23

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/64534/ft2_4FGL_J1357.1+1921_daily_bin994.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/64534/ft1_filteredMKT_4FGL_J1357.1+1921_daily_bin994.fits evtable="EVENTS" outfile="/scratch/kocevski/64534/ft1_filtered_4FGL_J1357.1+1921_daily_bin994.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/64534/ft1_filtered_4FGL_J1357.1+1921_daily_bin994.fits" evtable="EVENTS" scfile=/scratch/kocevski/64534/ft2_4FGL_J1357.1+1921_daily_bin994.fits sctable="SC_DATA" outfile=/scratch/kocevski/64534/ltcube_496972801_497232001_4FGL_J1357.1+1921_daily_bin994.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/64534/ft2_4FGL_J1357.1+1921_daily_bin994.fits
.....................!
real 15.11
user 14.76
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/64534/ft1_filtered_4FGL_J1357.1+1921_daily_bin994.fits evtable="EVENTS" scfile=/scratch/kocevski/64534/ft2_4FGL_J1357.1+1921_daily_bin994.fits sctable="SC_DATA" expcube=/scratch/kocevski/64534/ltcube_496972801_497232001_4FGL_J1357.1+1921_daily_bin994.fits outfile=/scratch/kocevski/64534/expmap_496972801_497232001_4FGL_J1357.1+1921_daily_bin994.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/64534/ltcube_496972801_497232001_4FGL_J1357.1+1921_daily_bin994.fits
.....................!
real 194.68
user 189.39
sys 4.96

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/64534/ft1_filtered_4FGL_J1357.1+1921_daily_bin994.fits scfile=/scratch/kocevski/64534/ft2_4FGL_J1357.1+1921_daily_bin994.fits outfile=/scratch/kocevski/64534/cmap_496972801_497232001_4FGL_J1357.1+1921_daily_bin994.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/64534/ft1_filtered_4FGL_J1357.1+1921_daily_bin994.fits scfile=/scratch/kocevski/64534/ft2_4FGL_J1357.1+1921_daily_bin994.fits outfile=/scratch/kocevski/64534/cmap_HighResolution_496972801_497232001_4FGL_J1357.1+1921_daily_bin994.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.39
sys 0.14

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    10.961       1.0000         .10000E-03   10000.    
     2 'norm      '    3.4622       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10132E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    4.1283       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10061E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    11.471       1.0000         .10000E-03   10000.    
     7 'Prefactor '    2.8705       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    4.7483       1.0000         .10000E-03   10000.    
    10 'Prefactor '    1.6202       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .27574E-02   1.0000         .10000E-03   10000.    
    12 'Prefactor '    9.4689       1.0000         .10000E-03   10000.    
    13 'Prefactor '    3.1991       1.0000         .10000E-03   10000.    
    14 'norm      '    2.5657       1.0000         .10000E-03   10000.    
    15 'Prefactor '    2.2619       1.0000         .10000E-03   10000.    
    16 'norm      '    5.1683       1.0000         .10000E-03   10000.    
    17 'Prefactor '    21.888       1.0000         .10000E-03   10000.    
    18 'Normalizat'    1.2911       1.0000         .10000E-01   10.000    
    19 'Prefactor '    1.0273       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=   8211.165     FROM MIGRAD    STATUS=CONVERGED    384 CALLS     1895 TOTAL
                     EDM=   .32E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          10.961        14.106       -.27483E-06   -.38792E-05
   2  norm          3.4624        7.3996        .10415E-06   -.94954E-03
   3  Prefactor     .10000E-03    8.0915        .16177E-06** at limit **
   4  norm          4.1279        10.216       -.27940E-06   -.55059E-03
   5  Prefactor     .10000E-03    10.281       -.35080E-06** at limit **
   6  Prefactor     11.480        21.288        .12293E-04    .29673E-04
   7  Prefactor     2.8638        149.77       -.30082E-04   -.25411E-05
   8  Prefactor     .10000E-03    5.5165       -.72269E-07** at limit **
   9  Prefactor     4.7482        2.9744       -.11100E-06    .51157E-04
  10  Prefactor     1.6208        3.6769        .58666E-06   -.12032E-02
  11  Prefactor     .10000E-03    4.3579        .20731E-06** at limit **
  12  Prefactor     9.4669        18.254       -.23054E-05   -.97595E-05
  13  Prefactor     3.1995        3.1408        .50077E-07    .31721E-05
  14  norm          2.5658        1.8876       -.22811E-09    .24521E-05
  15  Prefactor     2.2617        3.4672       -.29366E-06   -.88610E-04
  16  norm          5.1679        2.5140       -.69030E-07   -.32645E-04
  17  Prefactor     21.892        25.053        .49445E-05    .17112E-04
  18  Normalizat    1.2911        .18154       -.82075E-06    .90740E-04
  19  Prefactor     1.0272        .14996        .56547E-06   -.29595E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 10.961
  norm       = 3.46237
  Prefactor  = 0.0001
  norm       = 4.12791
  Prefactor  = 0.0001
  Prefactor  = 11.4799
  Prefactor  = 2.86376
  Prefactor  = 0.0001
  Prefactor  = 4.74818
  Prefactor  = 1.62082
  Prefactor  = 0.000100002
  Prefactor  = 9.46686
  Prefactor  = 3.19946
  norm       = 2.56577
  Prefactor  = 2.26173
  norm       = 5.16789
  Prefactor  = 21.892
  Normalizat = 1.29111
  Prefactor  = 1.02725
 **********
 **   18 **HESSE 
 **********

 FCN=   8211.165     FROM HESSE     STATUS=OK           282 CALLS     2177 TOTAL
                     EDM=   .61E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          10.961        14.104        .12101E-03   -1.5046    
   2  norm          3.4624        7.5745        .10867E-02   -1.5336    
   3  Prefactor     .10000E-03    8.0937        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          4.1279        10.034        .99197E-03   -1.5302    
   5  Prefactor     .10000E-03    10.300        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     11.480        21.308        .11828E-03   -1.5030    
   7  Prefactor     2.8638        150.18        .23992E-03   -1.5370    
   8  Prefactor     .10000E-03    5.7481        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     4.7482        2.9733        .12008E-03   -1.5272    
  10  Prefactor     1.6208        8.4736        .16625E-02   -1.5453    
  11  Prefactor     .10000E-03    29.938        .36526E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     9.4669        18.253        .13023E-03   -1.5093    
  13  Prefactor     3.1995        3.1341        .15432E-03   -1.5350    
  14  norm          2.5658        1.8893        .10385E-03   -1.5388    
  15  Prefactor     2.2617        3.4495        .20094E-03   -1.5407    
  16  norm          5.1679        2.5125        .96358E-04   -1.5253    
  17  Prefactor     21.892        25.048        .85615E-04   -1.4772    
  18  Normalizat    1.2911        .21969        .26165E-03   -.83832    
  19  Prefactor     1.0272        .18155        .23974E-03   -.91827    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.0734e-09
Minuit parameter uncertainties:
  1  14.1085
  2  7.57663
  3  5.73423e-06
  4  10.0379
  5  6.37447e-05
  6  21.3224
  7  41.586
  8  2.33264e-05
  9  2.97336
  10  7.41335
  11  0.000492425
  12  18.2633
  13  3.13428
  14  1.88935
  15  3.44984
  16  2.51252
  17  25.06
  18  0.219853
  19  0.181662
Done.

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

Extracting fit parameters...

4FGL J1357.1+1921
   Spectrum: PowerLaw
267    Prefactor:  1.000e-04  4.924e-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:  1.027e+00  1.817e-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.291e+00  2.199e-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: 6.58e-08 ph cm-2 s-1
Energy Flux Upper Limit: 5.20e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/64534/likelihoodResults_496972801_497232001_4FGL_J1357.1+1921_daily_bin994.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) = 8211.16545559
delta logL = -0.000155766560056

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 8211.16530031
delta logL = -4.83223629999e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .34844E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.6371       1.0000          .0000       10.000    
     3 'Normalizat'    1.2912       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0272       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=   8211.165     FROM MIGRAD    STATUS=CONVERGED    106 CALLS      286 TOTAL
                     EDM=   .54E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .15242E-03    5.6123        .67720E-01** at limit **
   2  Index         2.2762        5.8870        .50000       -.62965E-05
   3  Normalizat    1.2911        .42292E-02    .26165E-03   -.30138E-03
   4  Prefactor     1.0272        .35236E-02    .23974E-03   -.29331E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000152419
  Index      = 2.2762
  Normalizat = 1.29111
  Prefactor  = 1.02725
 **********
 **   18 **HESSE 
 **********

 FCN=   8211.165     FROM HESSE     STATUS=NOT POSDEF    39 CALLS      325 TOTAL
                     EDM=   .46E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .15242E-03    5.1617        .70480E-01   -1.5707    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.2762        6.6708        .50000       -.57610    
   3  Normalizat    1.2911        .41569E-02    .52331E-04   -.83832    
   4  Prefactor     1.0272        .34633E-02    .47947E-04   -.91827    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 4.57857e-09
Minuit parameter uncertainties:
  1  0.032901
  2  76.1005
  3  0.0041569
  4  0.00346333
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/64534': 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) = 8211.16529736
delta logL = 2.46289346251e-06

Extracting fit parameters...

4FGL J1357.1+1921
   Spectrum: PowerLaw
267    Prefactor:  1.524e-04  3.290e-02  1.000e-04  1.000e+04 ( 1.000e-12)
268        Index:  2.276e+00  7.610e+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:  1.027e+00  3.463e-03  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.291e+00  4.157e-03  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 -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/64534/cmap_HighResolution_496972801_497232001_4FGL_J1357.1+1921_daily_bin994.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.20e-03', job_status='DONE', photon_flux_upper_limit='6.58e-08', time_completed='2021-09-08 18:09:31.041855', job_id='64534', GAL2='1.03', fit_tolerance='1e-08', EG2='1.29', EG='1.29', time_epoch_completed='1631149771.04', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.03', dlogl='2.46e-06', ts2='0.00', photon_index_error='0.00', photon_index='2.76' WHERE bin_id='994' AND source_name='4FGL J1357.1+1921' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  8 18:09:31 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0236>
Subject: Job 64534: <4FGL_J1357.1+1921_daily_bin994> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1357.1+1921_daily_bin994 209.29 19.3608 496972801 497232001 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 :                                   630.00 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             277.72 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   830 sec.
    Turnaround time :                            831 sec.

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

