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


Performing analysis on: 4FGL_J1357.1+1921_daily_bin868
RA = 209.29, Dec = 19.3608
tmin = 464313601, tmax = 464572801
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='64335', job_status='RUN', time_executed='2021-09-08 17:58:53.310338', time_epoch_executed='1631149133.31' WHERE source_name='4FGL J1357.1+1921' and cadence='daily' and bin_id='868'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/64335

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/64335/ft1_4FGL_J1357.1+1921_daily_bin868.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/64335/ft2_4FGL_J1357.1+1921_daily_bin868.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/64335/ft1_4FGL_J1357.1+1921_daily_bin868.fits outfile=/scratch/kocevski/64335/ft1_filteredMKT_4FGL_J1357.1+1921_daily_bin868.fits ra=209.29 dec=19.3608 rad=12.0 tmin=464313601.0 tmax=464572801.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.37
user 3.16
sys 0.19

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/64335/ft1_filtered_4FGL_J1357.1+1921_daily_bin868.fits" evtable="EVENTS" scfile=/scratch/kocevski/64335/ft2_4FGL_J1357.1+1921_daily_bin868.fits sctable="SC_DATA" outfile=/scratch/kocevski/64335/ltcube_464313601_464572801_4FGL_J1357.1+1921_daily_bin868.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/64335/ft2_4FGL_J1357.1+1921_daily_bin868.fits
.....................!
real 13.03
user 12.61
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/64335/ft1_filtered_4FGL_J1357.1+1921_daily_bin868.fits evtable="EVENTS" scfile=/scratch/kocevski/64335/ft2_4FGL_J1357.1+1921_daily_bin868.fits sctable="SC_DATA" expcube=/scratch/kocevski/64335/ltcube_464313601_464572801_4FGL_J1357.1+1921_daily_bin868.fits outfile=/scratch/kocevski/64335/expmap_464313601_464572801_4FGL_J1357.1+1921_daily_bin868.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/64335/ltcube_464313601_464572801_4FGL_J1357.1+1921_daily_bin868.fits
.....................!
real 192.64
user 188.00
sys 4.28

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/64335/ft1_filtered_4FGL_J1357.1+1921_daily_bin868.fits scfile=/scratch/kocevski/64335/ft2_4FGL_J1357.1+1921_daily_bin868.fits outfile=/scratch/kocevski/64335/cmap_464313601_464572801_4FGL_J1357.1+1921_daily_bin868.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.63
user 0.39
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/64335/ft1_filtered_4FGL_J1357.1+1921_daily_bin868.fits scfile=/scratch/kocevski/64335/ft2_4FGL_J1357.1+1921_daily_bin868.fits outfile=/scratch/kocevski/64335/cmap_HighResolution_464313601_464572801_4FGL_J1357.1+1921_daily_bin868.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.57
user 0.38
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    21.245       1.0000         .10000E-03   10000.    
     3 'Prefactor '    5.5028       1.0000         .10000E-03   10000.    
     4 'norm      '    .13085E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    7.7448       1.0000         .10000E-03   10000.    
     6 'Prefactor '    22.551       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    3.3261       1.0000         .10000E-03   10000.    
     9 'Prefactor '    1.3767       1.0000         .10000E-03   10000.    
    10 'Prefactor '    26.463       1.0000         .10000E-03   10000.    
    11 'Prefactor '    1.5610       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10099E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10029E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    7.8782       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .10499E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    13.876       1.0000         .10000E-03   10000.    
    18 'Normalizat'    1.1989       1.0000         .10000E-01   10.000    
    19 'Prefactor '    1.0727       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=   6522.196     FROM MIGRAD    STATUS=CONVERGED    394 CALLS     1900 TOTAL
                     EDM=   .85E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    12.634        .90712E-02** at limit **
   2  norm          21.243        8.1837        .21725E-02    .13618E-02
   3  Prefactor     5.5029        43.086        .42820E-02    .79653E-04
   4  norm          .10000E-03    4.3733        .60263E-01** at limit **
   5  Prefactor     7.7445        17.058        .36023E-02    .58196E-04
   6  Prefactor     22.551        17.105        .21087E-02    .27021E-04
   7  Prefactor     .10000E-03    24.057        .90712E-02** at limit **
   8  Prefactor     3.3262        4.0378        .55488E-02    .34059E-03
   9  Prefactor     1.3759        4.5190        .92798E-02    .97609E-03
  10  Prefactor     26.465        18.785        .19469E-02   -.45501E-04
  11  Prefactor     1.5594        21.973        .85142E-02    .28579E-03
  12  Prefactor     .10000E-03    58.824        .90712E-02** at limit **
  13  Prefactor     .10000E-03    7.1342        .90712E-02** at limit **
  14  norm          7.8783        3.2550        .35714E-02    .17867E-04
  15  Prefactor     .10000E-03    3.1175        .90712E-02** at limit **
  16  norm          .10000E-03    2.2175        .90712E-02** at limit **
  17  Prefactor     13.872        26.641        .26881E-02    .10272E-02
  18  Normalizat    1.1988        .20002        .59745E-01    .28490E-03
  19  Prefactor     1.0728        .16975        .38729E-01    .20388E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  norm       = 21.243
  Prefactor  = 5.5029
  norm       = 0.0001
  Prefactor  = 7.74446
  Prefactor  = 22.5507
  Prefactor  = 0.0001
  Prefactor  = 3.32624
  Prefactor  = 1.3759
  Prefactor  = 26.4647
  Prefactor  = 1.5594
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 7.87827
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 13.872
  Normalizat = 1.19883
  Prefactor  = 1.07277
 **********
 **   18 **HESSE 
 **********

 FCN=   6522.196     FROM HESSE     STATUS=OK           266 CALLS     2166 TOTAL
                     EDM=   .60E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    12.697        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          21.243        8.0241        .86899E-04   -1.4786    
   3  Prefactor     5.5029        43.239        .17128E-03   -1.5239    
   4  norm          .10000E-03    19.667        .32126E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     7.7445        17.051        .14409E-03   -1.5151    
   6  Prefactor     22.551        17.108        .84348E-04   -1.4758    
   7  Prefactor     .10000E-03    24.071        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     3.3262        4.0403        .17168E-03   -1.5343    
   9  Prefactor     1.3759        4.4883        .29789E-03   -1.5473    
  10  Prefactor     26.465        18.779        .77875E-04   -1.4679    
  11  Prefactor     1.5594        22.044        .34057E-03   -1.5458    
  12  Prefactor     .10000E-03    60.168        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    7.3786        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          7.8783        3.2550        .90432E-04   -1.5147    
  15  Prefactor     .10000E-03    3.1403        .13920E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10000E-03    2.3031        .23458E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     13.872        26.635        .10753E-03   -1.4963    
  18  Normalizat    1.1988        .23736        .26424E-03   -.86639    
  19  Prefactor     1.0728        .20135        .24014E-03   -.90342    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.98322e-09
Minuit parameter uncertainties:
  1  7.08646e-06
  2  8.02455
  3  30.881
  4  8.69009e-05
  5  17.0613
  6  17.112
  7  1.20279e-05
  8  4.0406
  9  4.48941
  10  18.7833
  11  11.7309
  12  0.000214797
  13  2.15641e-05
  14  3.25512
  15  1.16314e-05
  16  1.84099e-05
  17  26.6581
  18  0.23757
  19  0.201495
Done.

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

Extracting fit parameters...

4FGL J1357.1+1921
   Spectrum: PowerLaw
267    Prefactor:  1.559e+00  1.173e+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.073e+00  2.015e-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.199e+00  2.376e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.02
Ra Dec: 209.290 19.361
Photon Flux Upper Limit: 1.13e-07 ph cm-2 s-1
Energy Flux Upper Limit: 8.92e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/64335/likelihoodResults_464313601_464572801_4FGL_J1357.1+1921_daily_bin868.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) = 6521.70118818
delta logL = 0.495114007628

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6521.64325852
delta logL = 0.553043665554

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .87971       1.0000         .10000E-03   10000.    
     2 'Index     '    5.1981       1.0000          .0000       10.000    
     3 'Normalizat'    1.1349       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1041       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=   6521.643     FROM MIGRAD    STATUS=CONVERGED     57 CALLS      227 TOTAL
                     EDM=   .81E-10    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .87754        14.422        .12734E-01    .11134E-02
   2  Index         5.2017        3.9453        .20152        .10161E-03
   3  Normalizat    1.1349        .41972E-01    .61162E-01    .91094E-05
   4  Prefactor     1.1040        .36539E-01    .53643E-01    .58920E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.877535
  Index      = 5.20169
  Normalizat = 1.13491
  Prefactor  = 1.10403
 **********
 **   18 **HESSE 
 **********

 FCN=   6521.643     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      260 TOTAL
                     EDM=   .12E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .87754        44.203        .74871E-04   -1.5521    
   2  Index         5.2017        7.3008        .89718E-02    .40349E-01
   3  Normalizat    1.1349        .19251        .27052E-03   -.88639    
   4  Prefactor     1.1040        .16553        .23718E-03   -.89338    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.18343e-09
Minuit parameter uncertainties:
  1  12.4654
  2  10.5221
  3  0.19263
  4  0.165611
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/64335': 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) = 6521.64325483
delta logL = 0.553047359192

Extracting fit parameters...

4FGL J1357.1+1921
   Spectrum: PowerLaw
267    Prefactor:  8.775e-01  1.247e+01  1.000e-04  1.000e+04 ( 1.000e-12)
268        Index:  5.202e+00  1.052e+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.104e+00  1.656e-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.135e+00  1.926e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.21
Ra Dec: 209.290 19.361
Photon Index (Free Index): 5.20 +/- 10.52
Photon Flux (Free Index): 6.06e-08 +/- 6.92e-08
Energy Flux (Free Index): 7.93e-06 +/- 1.32e-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/64335/cmap_HighResolution_464313601_464572801_4FGL_J1357.1+1921_daily_bin868.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='8.92e-03', comment='SUCCESS', energy_flux2='7.93e-06', dlogl='5.53e-01', photon_flux2='6.06e-08', job_status='DONE', time_completed='2021-09-08 18:08:13.706492', photon_index_error2='10.52', photon_index2='5.20', ts='0.02', fit_tolerance='1e-08', GAL='1.07', photon_index_error='0.00', photon_flux_upper_limit='1.13e-07', energy_flux_error2='1.32e-05', EG='1.20', time_epoch_completed='1631149693.71', return_code='0', job_id='64335', GAL2='1.10', EG2='1.13', return_code2='102', photon_flux_error2='6.92e-08', ts2='1.21', photon_index='2.76' WHERE bin_id='868' AND source_name='4FGL J1357.1+1921' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  8 18:08:13 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0064>
Subject: Job 64335: <4FGL_J1357.1+1921_daily_bin868> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1357.1+1921_daily_bin868 209.29 19.3608 464313601 464572801 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 :                                   556.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             298.35 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   768 sec.
    Turnaround time :                            771 sec.

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

