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


Performing analysis on: 4FGL_J1357.1+1921_daily_bin456
RA = 209.29, Dec = 19.3608
tmin = 357523201, tmax = 357782401
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='61462', job_status='RUN', time_executed='2021-09-08 17:48:17.715465', time_epoch_executed='1631148497.72' WHERE source_name='4FGL J1357.1+1921' and cadence='daily' and bin_id='456'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/61462

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/61462/ft1_4FGL_J1357.1+1921_daily_bin456.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/61462/ft2_4FGL_J1357.1+1921_daily_bin456.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/61462/ft1_4FGL_J1357.1+1921_daily_bin456.fits outfile=/scratch/kocevski/61462/ft1_filteredMKT_4FGL_J1357.1+1921_daily_bin456.fits ra=209.29 dec=19.3608 rad=12.0 tmin=357523201.0 tmax=357782401.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.55
user 3.31
sys 0.22

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/61462/ft1_filtered_4FGL_J1357.1+1921_daily_bin456.fits evtable="EVENTS" scfile=/scratch/kocevski/61462/ft2_4FGL_J1357.1+1921_daily_bin456.fits sctable="SC_DATA" expcube=/scratch/kocevski/61462/ltcube_357523201_357782401_4FGL_J1357.1+1921_daily_bin456.fits outfile=/scratch/kocevski/61462/expmap_357523201_357782401_4FGL_J1357.1+1921_daily_bin456.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/61462/ltcube_357523201_357782401_4FGL_J1357.1+1921_daily_bin456.fits
.....................!
real 189.73
user 185.10
sys 4.23

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/61462/ft1_filtered_4FGL_J1357.1+1921_daily_bin456.fits scfile=/scratch/kocevski/61462/ft2_4FGL_J1357.1+1921_daily_bin456.fits outfile=/scratch/kocevski/61462/cmap_357523201_357782401_4FGL_J1357.1+1921_daily_bin456.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/61462/ft1_filtered_4FGL_J1357.1+1921_daily_bin456.fits scfile=/scratch/kocevski/61462/ft2_4FGL_J1357.1+1921_daily_bin456.fits outfile=/scratch/kocevski/61462/cmap_HighResolution_357523201_357782401_4FGL_J1357.1+1921_daily_bin456.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/61462/ft1_filtered_4FGL_J1357.1+1921_daily_bin456.fits evtable="EVENTS" scfile=/scratch/kocevski/61462/ft2_4FGL_J1357.1+1921_daily_bin456.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/61462/Model_4FGL_J1357.1+1921_daily_bin456.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/61462/ft1_filtered_4FGL_J1357.1+1921_daily_bin456.fits....................!
real 50.78
user 49.30
sys 1.21

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10022E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    14.932       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    2.3327       1.0000         .10000E-03   10000.    
     5 'Prefactor '    14.926       1.0000         .10000E-03   10000.    
     6 'Prefactor '    10.356       1.0000         .10000E-03   10000.    
     7 'Prefactor '    30.171       1.0000         .10000E-03   10000.    
     8 'Prefactor '    1.2853       1.0000         .10000E-03   10000.    
     9 'Prefactor '    4.7885       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    12.221       1.0000         .10000E-03   10000.    
    12 'Prefactor '    32.604       1.0000         .10000E-03   10000.    
    13 'Prefactor '    2.5877       1.0000         .10000E-03   10000.    
    14 'norm      '    11.795       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    3.7759       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    18 'Normalizat'    1.2787       1.0000         .10000E-01   10.000    
    19 'Prefactor '    .76187       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=   6420.305     FROM MIGRAD    STATUS=CONVERGED    387 CALLS     1876 TOTAL
                     EDM=   .19E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    10.402       -.21482E-05** at limit **
   2  norm          14.939        8.0235        .19950E-05    .40925E-03
   3  Prefactor     .10000E-03    25.608        .12593E-06** at limit **
   4  norm          2.3210        10.494       -.11305E-04   -.34585E-03
   5  Prefactor     14.929        18.180       -.77007E-05    .32572E-04
   6  Prefactor     10.357        11.801       -.26430E-06    .56104E-04
   7  Prefactor     30.127        52.376       -.42196E-04    .19459E-04
   8  Prefactor     1.2841        4.5433       -.28958E-05   -.11243E-02
   9  Prefactor     4.7893        4.0390        .29124E-06    .13461E-03
  10  Prefactor     .10000E-03    5.3860        .74685E-07** at limit **
  11  Prefactor     12.225        14.621       -.11911E-04    .59976E-04
  12  Prefactor     32.541        34.480       -.10285E-05    .59205E-04
  13  Prefactor     2.5939        5.7936       -.25162E-05   -.47484E-03
  14  norm          11.795        3.7294        .21068E-06    .13217E-03
  15  Prefactor     .10000E-03    1.6670       -.21625E-07** at limit **
  16  norm          3.7755        2.8218       -.52207E-06   -.18444E-03
  17  Prefactor     .10000E-03    10.680        .21270E-05** at limit **
  18  Normalizat    1.2785        .20160        .66349E-05   -.24594E-04
  19  Prefactor     .76212        .15819        .15621E-05    .40715E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  norm       = 14.9392
  Prefactor  = 0.0001
  norm       = 2.32101
  Prefactor  = 14.9288
  Prefactor  = 10.3565
  Prefactor  = 30.127
  Prefactor  = 1.28408
  Prefactor  = 4.78931
  Prefactor  = 0.0001
  Prefactor  = 12.2254
  Prefactor  = 32.5408
  Prefactor  = 2.59387
  norm       = 11.7949
  Prefactor  = 0.0001
  norm       = 3.77548
  Prefactor  = 0.0001
  Normalizat = 1.27848
  Prefactor  = 0.762121
 **********
 **   18 **HESSE 
 **********

 FCN=   6420.305     FROM HESSE     STATUS=OK           270 CALLS     2146 TOTAL
                     EDM=   .40E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    10.423        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          14.939        7.9683        .10365E-03   -1.4935    
   3  Prefactor     .10000E-03    25.668        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          2.3210        10.499        .26850E-03   -1.5403    
   5  Prefactor     14.929        18.140        .10367E-03   -1.4935    
   6  Prefactor     10.357        11.803        .12451E-03   -1.5064    
   7  Prefactor     30.127        52.047        .72943E-04   -1.4610    
   8  Prefactor     1.2841        4.6136        .30959E-03   -1.5481    
   9  Prefactor     4.7893        4.0397        .14268E-03   -1.5270    
  10  Prefactor     .10000E-03    5.3970        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     12.225        14.699        .11459E-03   -1.5009    
  12  Prefactor     32.541        34.385        .70175E-04   -1.4566    
  13  Prefactor     2.5939        5.7775        .25367E-03   -1.5386    
  14  norm          11.795        3.7295        .83906E-04   -1.5021    
  15  Prefactor     .10000E-03    1.6718        .10101E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          3.7755        2.8225        .11168E-03   -1.5319    
  17  Prefactor     .10000E-03    10.684        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Normalizat    1.2785        .24479        .24756E-03   -.84211    
  19  Prefactor     .76212        .19185        .25410E-03   -1.0114    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.01039e-09
Minuit parameter uncertainties:
  1  2.12956e-05
  2  7.96885
  3  2.23151e-05
  4  9.87556
  5  18.1463
  6  11.8058
  7  52.126
  8  4.61486
  9  4.03996
  10  1.96939e-05
  11  14.7031
  12  34.4057
  13  5.77875
  14  3.72959
  15  1.73202e-06
  16  2.82256
  17  1.63149e-05
  18  0.245016
  19  0.192017
Done.

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

Extracting fit parameters...

4FGL J1357.1+1921
   Spectrum: PowerLaw
267    Prefactor:  1.223e+01  1.470e+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:  7.621e-01  1.920e-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.278e+00  2.450e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.88
Ra Dec: 209.290 19.361
Photon Flux Upper Limit: 1.62e-07 ph cm-2 s-1
Energy Flux Upper Limit: 1.28e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/61462/likelihoodResults_357523201_357782401_4FGL_J1357.1+1921_daily_bin456.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) = 6419.12776873
delta logL = 1.17710856357

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6419.10214499
delta logL = 1.20273230679

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    6.3948       1.0000         .10000E-03   10000.    
     2 'Index     '    4.2011       1.0000          .0000       10.000    
     3 'Normalizat'    1.1907       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .80834       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=   6419.102     FROM MIGRAD    STATUS=CONVERGED     54 CALLS      245 TOTAL
                     EDM=   .18E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     6.3810        71.966        .39680E-02    .15828E-02
   2  Index         4.2031        3.9206        .16769        .33561E-03
   3  Normalizat    1.1907        .66572E-01    .57652E-01   -.20739E-03
   4  Prefactor     .80819        .54667E-01    .43826E-01   -.25751E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 6.38103
  Index      = 4.20305
  Normalizat = 1.19069
  Prefactor  = 0.808191
 **********
 **   18 **HESSE 
 **********

 FCN=   6419.102     FROM HESSE     STATUS=OK            31 CALLS      276 TOTAL
                     EDM=   .83E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     6.3810        12.435        .11765E-03   -1.5203    
   2  Index         4.2031        1.4976        .63529E-02   -.16007    
   3  Normalizat    1.1907        .24042        .25496E-03   -.86891    
   4  Prefactor     .80819        .19121        .24727E-03   -.99427    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.30482e-10
Minuit parameter uncertainties:
  1  12.4399
  2  1.52159
  3  0.240647
  4  0.191366
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/61462': 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): 0
logL (Free Index) = 6419.10214231
delta logL = 1.20273498607

Extracting fit parameters...

4FGL J1357.1+1921
   Spectrum: PowerLaw
267    Prefactor:  6.381e+00  1.244e+01  1.000e-04  1.000e+04 ( 1.000e-12)
268        Index:  4.203e+00  1.522e+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:  8.082e-01  1.914e-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.191e+00  2.406e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 3.47
Ra Dec: 209.290 19.361
Photon Index (Free Index): 4.20 +/- 1.52
Photon Flux (Free Index): 1.25e-07 +/- 7.96e-08
Energy Flux (Free Index): 1.81e-05 +/- 1.21e-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/61462/cmap_HighResolution_357523201_357782401_4FGL_J1357.1+1921_daily_bin456.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.28e-02', comment='SUCCESS', energy_flux2='1.81e-05', dlogl='1.20e+00', photon_flux2='1.25e-07', job_status='DONE', time_completed='2021-09-08 17:58:13.438979', photon_index_error2='1.52', photon_index2='4.20', ts='0.88', fit_tolerance='1e-08', GAL='0.76', photon_index_error='0.00', photon_flux_upper_limit='1.62e-07', energy_flux_error2='1.21e-05', EG='1.28', time_epoch_completed='1631149093.44', return_code='0', job_id='61462', GAL2='0.81', EG2='1.19', return_code2='0', photon_flux_error2='7.96e-08', ts2='3.47', photon_index='2.76' WHERE bin_id='456' AND source_name='4FGL J1357.1+1921' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  8 17:58:13 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0268>
Subject: Job 61462: <4FGL_J1357.1+1921_daily_bin456> in cluster <slac> Done

Job <4FGL_J1357.1+1921_daily_bin456> 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) <bullet0268>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep  8 17:46:10 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:10 2021
Terminated at Wed Sep  8 17:58:14 2021
Results reported at Wed Sep  8 17:58:14 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1357.1+1921_daily_bin456 209.29 19.3608 357523201 357782401 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 :                                   539.31 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             302.55 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   723 sec.
    Turnaround time :                            725 sec.

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

