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


Performing analysis on: 4FGL_J1357.1+1921_daily_bin461
RA = 209.29, Dec = 19.3608
tmin = 358819201, tmax = 359078401
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='61471', job_status='RUN', time_executed='2021-09-08 17:49:02.099509', time_epoch_executed='1631148542.1' WHERE source_name='4FGL J1357.1+1921' and cadence='daily' and bin_id='461'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/61471

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

Retrieving the FT1 file...

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

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

Retrieving 49 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/61471/ft1_4FGL_J1357.1+1921_daily_bin461.fits


Retrieving the FT1 file...

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

Retrieving 49 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/61471/ft2_4FGL_J1357.1+1921_daily_bin461.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/61471/ft1_4FGL_J1357.1+1921_daily_bin461.fits outfile=/scratch/kocevski/61471/ft1_filteredMKT_4FGL_J1357.1+1921_daily_bin461.fits ra=209.29 dec=19.3608 rad=12.0 tmin=358819201.0 tmax=359078401.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.28
user 5.04
sys 0.22

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/61471/ft1_filtered_4FGL_J1357.1+1921_daily_bin461.fits" evtable="EVENTS" scfile=/scratch/kocevski/61471/ft2_4FGL_J1357.1+1921_daily_bin461.fits sctable="SC_DATA" outfile=/scratch/kocevski/61471/ltcube_358819201_359078401_4FGL_J1357.1+1921_daily_bin461.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/61471/ft2_4FGL_J1357.1+1921_daily_bin461.fits
.....................!
real 11.26
user 10.95
sys 0.28

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/61471/ft1_filtered_4FGL_J1357.1+1921_daily_bin461.fits evtable="EVENTS" scfile=/scratch/kocevski/61471/ft2_4FGL_J1357.1+1921_daily_bin461.fits sctable="SC_DATA" expcube=/scratch/kocevski/61471/ltcube_358819201_359078401_4FGL_J1357.1+1921_daily_bin461.fits outfile=/scratch/kocevski/61471/expmap_358819201_359078401_4FGL_J1357.1+1921_daily_bin461.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/61471/ltcube_358819201_359078401_4FGL_J1357.1+1921_daily_bin461.fits
.....................!
real 191.29
user 186.55
sys 4.37

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/61471/ft1_filtered_4FGL_J1357.1+1921_daily_bin461.fits scfile=/scratch/kocevski/61471/ft2_4FGL_J1357.1+1921_daily_bin461.fits outfile=/scratch/kocevski/61471/cmap_358819201_359078401_4FGL_J1357.1+1921_daily_bin461.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.15

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

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    15.662       1.0000         .10000E-03   10000.    
     2 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    22.441       1.0000         .10000E-03   10000.    
     4 'norm      '    11.436       1.0000         .10000E-03   10000.    
     5 'Prefactor '    5.6555       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10454E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    40.487       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .57233       1.0000         .10000E-03   10000.    
     9 'Prefactor '    4.8872       1.0000         .10000E-03   10000.    
    10 'Prefactor '    12.761       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10138E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    3.4372       1.0000         .10000E-03   10000.    
    14 'norm      '    9.4080       1.0000         .10000E-03   10000.    
    15 'Prefactor '    7.6669       1.0000         .10000E-03   10000.    
    16 'norm      '    1.2094       1.0000         .10000E-03   10000.    
    17 'Prefactor '    6.5446       1.0000         .10000E-03   10000.    
    18 'Normalizat'    .91042       1.0000         .10000E-01   10.000    
    19 'Prefactor '    1.1177       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=   5704.915     FROM MIGRAD    STATUS=CONVERGED    368 CALLS     1869 TOTAL
                     EDM=   .16E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          15.661        16.244       -.22921E-06    .41710E-05
   2  norm          .10000E-03    2.0136       -.22981E-07** at limit **
   3  Prefactor     22.428        30.686       -.16655E-04    .26716E-03
   4  norm          11.435        8.8892       -.11224E-06   -.72392E-04
   5  Prefactor     5.6467        20.341       -.94033E-05    .53281E-04
   6  Prefactor     .10000E-03    17.880        .36314E-06** at limit **
   7  Prefactor     40.487        47.006        .94078E-06   -.29971E-05
   8  Prefactor     .57140        3.0717       -.16519E-05   -.13477E-02
   9  Prefactor     4.8873        4.1557       -.16143E-05    .28629E-03
  10  Prefactor     12.761        11.752       -.35094E-06    .19619E-04
  11  Prefactor     .10000E-03    11.445       -.45667E-06** at limit **
  12  Prefactor     .10000E-03    48.291        .29162E-06** at limit **
  13  Prefactor     3.4410        9.0595       -.36197E-05   -.40709E-04
  14  norm          9.4080        3.4174       -.63821E-06    .32705E-03
  15  Prefactor     7.6663        7.5178       -.23873E-05    .29915E-03
  16  norm          1.2097        2.5112       -.26269E-06   -.68880E-03
  17  Prefactor     6.5414        45.131       -.93827E-05    .35225E-04
  18  Normalizat    .91061        .19676        .28501E-05    .10102E-03
  19  Prefactor     1.1175        .17211        .16278E-05    .12113E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 15.6612
  norm       = 0.0001
  Prefactor  = 22.4283
  norm       = 11.4349
  Prefactor  = 5.64666
  Prefactor  = 0.0001
  Prefactor  = 40.4874
  Prefactor  = 0.5714
  Prefactor  = 4.88734
  Prefactor  = 12.7613
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 3.44097
  norm       = 9.40797
  Prefactor  = 7.66629
  norm       = 1.20965
  Prefactor  = 6.54136
  Normalizat = 0.910612
  Prefactor  = 1.11752
 **********
 **   18 **HESSE 
 **********

 FCN=   5704.915     FROM HESSE     STATUS=OK           268 CALLS     2137 TOTAL
                     EDM=   .31E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          15.661        16.244        .10121E-03   -1.4916    
   2  norm          .10000E-03    2.0165        .10463E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     22.428        30.288        .84553E-04   -1.4760    
   4  norm          11.435        8.9088        .11846E-03   -1.5032    
   5  Prefactor     5.6467        20.309        .16891E-03   -1.5233    
   6  Prefactor     .10000E-03    18.027        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     40.487        47.020        .62997E-04   -1.4435    
   8  Prefactor     .57140        3.2419        .26299E-03   -1.5557    
   9  Prefactor     4.8873        4.1537        .13749E-03   -1.5266    
  10  Prefactor     12.761        11.754        .11213E-03   -1.4993    
  11  Prefactor     .10000E-03    11.588        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    48.547        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     3.4410        9.0248        .21816E-03   -1.5337    
  14  norm          9.4080        3.4162        .81312E-04   -1.5094    
  15  Prefactor     7.6663        7.4219        .14483E-03   -1.5154    
  16  norm          1.2097        2.4784        .16442E-03   -1.5488    
  17  Prefactor     6.5414        44.834        .15687E-03   -1.5196    
  18  Normalizat    .91061        .22777        .26937E-03   -.96088    
  19  Prefactor     1.1175        .19966        .21806E-03   -.88908    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.11815e-09
Minuit parameter uncertainties:
  1  16.2486
  2  4.26403e-06
  3  30.3085
  4  8.90982
  5  20.3335
  6  4.46256e-05
  7  47.0628
  8  2.72208
  9  4.15391
  10  11.7557
  11  6.16675e-05
  12  0.000151817
  13  9.02832
  14  3.41625
  15  7.42276
  16  2.4786
  17  34.2871
  18  0.228013
  19  0.199794
Done.

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

Extracting fit parameters...

4FGL J1357.1+1921
   Spectrum: PowerLaw
267    Prefactor:  1.000e-04  6.167e-05  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.118e+00  1.998e-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:  9.106e-01  2.280e-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: 9.52e-08 ph cm-2 s-1
Energy Flux Upper Limit: 7.52e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/61471/likelihoodResults_358819201_359078401_4FGL_J1357.1+1921_daily_bin461.txt

Performing a free index iterative likelihood fit...

Freezing all point sources, except source of interest...

Done.

Freeing candidate source...
Done.

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5704.91519863
delta logL = -0.000411296531638

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5704.91478728
delta logL = 5.75091689825e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.7801       1.0000          .0000       10.000    
     3 'Normalizat'    .91059       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1176       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=   5704.915     FROM MIGRAD    STATUS=CONVERGED    149 CALLS      300 TOTAL
                     EDM=   .28E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .19890E-01    3.0063        .22231E-01   -.88160E-03
   2  Index         5.0090        6.8790        .50000        .98418E-05
   3  Normalizat    .90937        .93413E-02    .26937E-03    .12535E-04
   4  Prefactor     1.1181        .83299E-02    .21806E-03    .74031E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0198898
  Index      = 5.009
  Normalizat = 0.909367
  Prefactor  = 1.1181
 **********
 **   18 **HESSE 
 **********

 FCN=   5704.915     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      333 TOTAL
                     EDM=   .23E-10    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .19890E-01    224.04        .12829E-02   -1.5736    
   2  Index         5.0090        5.6635        .50000        .17998E-02
   3  Normalizat    .90937        .25243E-01    .10775E-04   -.96132    
   4  Prefactor     1.1181        .22411E-01    .87226E-05   -.88890    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 2.3056e-11
Minuit parameter uncertainties:
  1  4.22717
  2  30.0724
  3  0.0252428
  4  0.0224112
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/61471': 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) = 5704.9145179
delta logL = 0.000269428961474

Extracting fit parameters...

4FGL J1357.1+1921
   Spectrum: PowerLaw
267    Prefactor:  1.989e-02  4.227e+00  1.000e-04  1.000e+04 ( 1.000e-12)
268        Index:  5.009e+00  3.007e+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.118e+00  2.241e-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:  9.094e-01  2.524e-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/61471/cmap_HighResolution_358819201_359078401_4FGL_J1357.1+1921_daily_bin461.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='7.52e-03', job_status='DONE', photon_flux_upper_limit='9.52e-08', time_completed='2021-09-08 17:58:29.154562', job_id='61471', GAL2='1.12', fit_tolerance='1e-08', EG2='0.91', EG='0.91', time_epoch_completed='1631149109.15', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.12', dlogl='2.69e-04', ts2='0.00', photon_index_error='0.00', photon_index='2.76' WHERE bin_id='461' AND source_name='4FGL J1357.1+1921' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  8 17:58:29 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0218>
Subject: Job 61471: <4FGL_J1357.1+1921_daily_bin461> in cluster <slac> Done

Job <4FGL_J1357.1+1921_daily_bin461> was submitted from host <rhel6-64m> by user <kocevski> in cluster <slac> at Wed Sep  8 17:46:09 2021
Job was executed on host(s) <bullet0218>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep  8 17:46:11 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Wed Sep  8 17:46:11 2021
Terminated at Wed Sep  8 17:58:29 2021
Results reported at Wed Sep  8 17:58:29 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1357.1+1921_daily_bin461 209.29 19.3608 358819201 359078401 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 :                                   526.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             293.46 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   738 sec.
    Turnaround time :                            740 sec.

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

