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


Performing analysis on: 4FGL_J1357.1+1921_daily_bin647
RA = 209.29, Dec = 19.3608
tmin = 407030401, tmax = 407289601
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='62758', job_status='RUN', time_executed='2021-09-08 17:54:18.808338', time_epoch_executed='1631148858.81' WHERE source_name='4FGL J1357.1+1921' and cadence='daily' and bin_id='647'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/62758

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/62758/ft1_4FGL_J1357.1+1921_daily_bin647.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/62758/ft2_4FGL_J1357.1+1921_daily_bin647.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/62758/ft1_4FGL_J1357.1+1921_daily_bin647.fits outfile=/scratch/kocevski/62758/ft1_filteredMKT_4FGL_J1357.1+1921_daily_bin647.fits ra=209.29 dec=19.3608 rad=12.0 tmin=407030401.0 tmax=407289601.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.50
user 3.26
sys 0.22

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/62758/ft2_4FGL_J1357.1+1921_daily_bin647.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/62758/ft1_filteredMKT_4FGL_J1357.1+1921_daily_bin647.fits evtable="EVENTS" outfile="/scratch/kocevski/62758/ft1_filtered_4FGL_J1357.1+1921_daily_bin647.fits" apply_filter=yes overwrite=yes header_obstimes=yes tstart=0.0 tstop=0.0 gtifile="default" chatter=3 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

This is gtmktime version HEAD
Applying GTI filter:
IN_SAA!=T && LIVETIME>0 && gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nogrb.gti',(START+STOP)/2) && (angsep(RA_SUN,DEC_SUN,RA_ZENITH,DEC_ZENITH)>115 || gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nosolarflares.gti',(START+STOP)/2))
real 0.48
user 0.32
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/62758/ft1_filtered_4FGL_J1357.1+1921_daily_bin647.fits" evtable="EVENTS" scfile=/scratch/kocevski/62758/ft2_4FGL_J1357.1+1921_daily_bin647.fits sctable="SC_DATA" outfile=/scratch/kocevski/62758/ltcube_407030401_407289601_4FGL_J1357.1+1921_daily_bin647.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/62758/ft2_4FGL_J1357.1+1921_daily_bin647.fits
.....................!
real 11.91
user 11.50
sys 0.37

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/62758/ft1_filtered_4FGL_J1357.1+1921_daily_bin647.fits evtable="EVENTS" scfile=/scratch/kocevski/62758/ft2_4FGL_J1357.1+1921_daily_bin647.fits sctable="SC_DATA" expcube=/scratch/kocevski/62758/ltcube_407030401_407289601_4FGL_J1357.1+1921_daily_bin647.fits outfile=/scratch/kocevski/62758/expmap_407030401_407289601_4FGL_J1357.1+1921_daily_bin647.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/62758/ltcube_407030401_407289601_4FGL_J1357.1+1921_daily_bin647.fits
.....................!
real 191.13
user 185.10
sys 5.69

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/62758/ft1_filtered_4FGL_J1357.1+1921_daily_bin647.fits scfile=/scratch/kocevski/62758/ft2_4FGL_J1357.1+1921_daily_bin647.fits outfile=/scratch/kocevski/62758/cmap_407030401_407289601_4FGL_J1357.1+1921_daily_bin647.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.36
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/62758/ft1_filtered_4FGL_J1357.1+1921_daily_bin647.fits scfile=/scratch/kocevski/62758/ft2_4FGL_J1357.1+1921_daily_bin647.fits outfile=/scratch/kocevski/62758/cmap_HighResolution_407030401_407289601_4FGL_J1357.1+1921_daily_bin647.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.37
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    2.2199       1.0000         .10000E-03   10000.    
     2 'norm      '    14.981       1.0000         .10000E-03   10000.    
     3 'Prefactor '    36.249       1.0000         .10000E-03   10000.    
     4 'norm      '    .49702       1.0000         .10000E-03   10000.    
     5 'Prefactor '    6.2432       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    32.834       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .44698E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    31.017       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    6.1134       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10461E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    3.5888       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    18 'Normalizat'    1.1743       1.0000         .10000E-01   10.000    
    19 'Prefactor '    .91397       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=   6285.922     FROM MIGRAD    STATUS=CONVERGED    402 CALLS     1667 TOTAL
                     EDM=   .92E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  5.6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          2.2077        31.585       -.36505E-05   -.86618E-04
   2  norm          14.988        7.4890        .14567E-05    .31770E-03
   3  Prefactor     36.246        30.472       -.21398E-06    .22215E-04
   4  norm          .46793        12.404       -.11662E-05   -.56519E-03
   5  Prefactor     6.2406        14.770       -.41286E-06   -.26838E-04
   6  Prefactor     .10000E-03    6.6823       -.42823E-07** at limit **
   7  Prefactor     32.840        32.023        .17180E-06   -.39913E-04
   8  Prefactor     .10000E-03    1.6253        .26025E-07** at limit **
   9  Prefactor     .10000E-03    1.5106        .22750E-07** at limit **
  10  Prefactor     .10007E-03    44.965        .60843E-05** at limit **
  11  Prefactor     31.013        16.458       -.94186E-07   -.19454E-04
  12  Prefactor     .10000E-03    9.0886        .21292E-07** at limit **
  13  Prefactor     .10000E-03    4.4942        .12378E-06** at limit **
  14  norm          6.1133        2.6568        .92950E-08    .50585E-04
  15  Prefactor     .10000E-03    4.3881       -.21330E-06** at limit **
  16  norm          3.5891        2.4372       -.86939E-07   -.18602E-04
  17  Prefactor     .10000E-03    83.401        .71268E-06** at limit **
  18  Normalizat    1.1746        .19033        .11463E-05    .80545E-04
  19  Prefactor     .91384        .15523       -.20387E-06    .14206E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 2.20766
  norm       = 14.9877
  Prefactor  = 36.2459
  norm       = 0.467925
  Prefactor  = 6.24058
  Prefactor  = 0.0001
  Prefactor  = 32.8402
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100072
  Prefactor  = 31.0133
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 6.11329
  Prefactor  = 0.0001
  norm       = 3.58912
  Prefactor  = 0.000100001
  Normalizat = 1.17462
  Prefactor  = 0.913844
 **********
 **   18 **HESSE 
 **********

 FCN=   6285.922     FROM HESSE     STATUS=OK           272 CALLS     1939 TOTAL
                     EDM=   .44E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          2.2077        31.616        .27600E-03   -1.5411    
   2  norm          14.988        8.0510        .10348E-03   -1.4933    
   3  Prefactor     36.246        30.473        .66565E-04   -1.4503    
   4  norm          .46793        27.649        .38031E-02   -1.5571    
   5  Prefactor     6.2406        14.766        .16066E-03   -1.5208    
   6  Prefactor     .10000E-03    6.6870        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     32.840        31.992        .69930E-04   -1.4561    
   8  Prefactor     .10000E-03    1.6374        .98686E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    1.5160        .95149E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10007E-03    52.782        .41857E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     31.013        16.517        .71943E-04   -1.4594    
  12  Prefactor     .10000E-03    9.0929        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    4.5340        .16402E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          6.1133        2.6577        .82771E-04   -1.5213    
  15  Prefactor     .10000E-03    11.038        .31802E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          3.5891        2.4327        .98581E-04   -1.5329    
  17  Prefactor     .10000E-03    84.178        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Normalizat    1.1746        .22466        .25630E-03   -.87391    
  19  Prefactor     .91384        .18320        .23802E-03   -.95659    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.37052e-09
Minuit parameter uncertainties:
  1  16.7193
  2  8.05158
  3  30.4858
  4  7.19656
  5  14.7745
  6  7.76161e-06
  7  32.0083
  8  1.04226e-06
  9  6.98786e-07
  10  0.00389666
  11  16.5197
  12  6.23412e-06
  13  1.48889e-06
  14  2.65776
  15  5.74801e-07
  16  2.43274
  17  0.000498692
  18  0.224844
  19  0.183321
Done.

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

Extracting fit parameters...

4FGL J1357.1+1921
   Spectrum: PowerLaw
267    Prefactor:  3.101e+01  1.652e+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:  9.138e-01  1.833e-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.175e+00  2.248e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 5.28
Ra Dec: 209.290 19.361
Photon Index (Fixed Index): 2.76 +/- 0.00
Photon Flux (Fixed Index): 1.21e-07 +/- 6.41e-08
Energy Flux (Fixed Index): 2.78e-05 +/- 1.48e-05

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) = 6284.83342921
delta logL = 1.08877902414

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6284.8131221
delta logL = 1.10908613943

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    4.8114       1.0000         .10000E-03   10000.    
     2 'Index     '    4.8104       1.0000          .0000       10.000    
     3 'Normalizat'    1.0512       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0030       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=   6284.813     FROM MIGRAD    STATUS=CONVERGED     57 CALLS      257 TOTAL
                     EDM=   .37E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     4.8010        31.024        .45852E-02    .12952E-03
   2  Index         4.8121        3.3863        .11481        .10064E-03
   3  Normalizat    1.0512        .78214E-01    .60721E-01   -.29685E-05
   4  Prefactor     1.0030        .64870E-01    .44678E-01   -.84627E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 4.80097
  Index      = 4.81207
  Normalizat = 1.0512
  Prefactor  = 1.00297
 **********
 **   18 **HESSE 
 **********

 FCN=   6284.813     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      290 TOTAL
                     EDM=   .21E-06    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     4.8010        42.464        .71109E-04   -1.5270    
   2  Index         4.8121        4.0105        .47458E-02   -.37594E-01
   3  Normalizat    1.0512        .21327        .26855E-03   -.91334    
   4  Prefactor     1.0030        .18132        .22854E-03   -.92630    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 2.06787e-07
Minuit parameter uncertainties:
  1  28.5833
  2  4.65551
  3  0.213449
  4  0.181427
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/62758': 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) = 6284.81312173
delta logL = 1.10908650742

Extracting fit parameters...

4FGL J1357.1+1921
   Spectrum: PowerLaw
267    Prefactor:  4.801e+00  2.858e+01  1.000e-04  1.000e+04 ( 1.000e-12)
268        Index:  4.812e+00  4.656e+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.003e+00  1.814e-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.051e+00  2.134e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 8.00
Ra Dec: 209.290 19.361
Photon Index (Free Index): 4.81 +/- 4.66
Photon Flux (Free Index): 2.01e-07 +/- 8.84e-08
Energy Flux (Free Index): 2.72e-05 +/- 1.73e-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/62758/cmap_HighResolution_407030401_407289601_4FGL_J1357.1+1921_daily_bin647.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='1.21e-07', energy_flux2='2.72e-05', photon_flux_error='6.41e-08', dlogl='1.11e+00', energy_flux='2.78e-05', photon_flux2='2.01e-07', job_status='DONE', time_completed='2021-09-08 18:02:28.550973', photon_index_error2='4.66', photon_index2='4.81', ts='5.28', fit_tolerance='1e-08', GAL='0.91', photon_index_error='0.00', energy_flux_error2='1.73e-05', EG='1.17', time_epoch_completed='1631149348.55', return_code='0', job_id='62758', GAL2='1.00', EG2='1.05', return_code2='102', energy_flux_error='1.48e-05', photon_flux_error2='8.84e-08', ts2='8.00', photon_index='2.76' WHERE bin_id='647' AND source_name='4FGL J1357.1+1921' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  8 18:02:28 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0256>
Subject: Job 62758: <4FGL_J1357.1+1921_daily_bin647> in cluster <slac> Done

Job <4FGL_J1357.1+1921_daily_bin647> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Wed Sep  8 17:50:28 2021
Job was executed on host(s) <bullet0256>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep  8 17:50:30 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Wed Sep  8 17:50:30 2021
Terminated at Wed Sep  8 18:02:29 2021
Results reported at Wed Sep  8 18:02:29 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1357.1+1921_daily_bin647 209.29 19.3608 407030401 407289601 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 :                                   489.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             265.48 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   718 sec.
    Turnaround time :                            721 sec.

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

