/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 190 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 = 7430
number of fields = 22
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J1357.1+1921_daily_bin64
RA = 209.29, Dec = 19.3608
tmin = 255916801, tmax = 256176001
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='59824', job_status='RUN', time_executed='2021-09-08 17:44:26.180455', time_epoch_executed='1631148266.18' WHERE source_name='4FGL J1357.1+1921' and cadence='daily' and bin_id='64'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/59824

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/59824/ft1_4FGL_J1357.1+1921_daily_bin64.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/59824/ft2_4FGL_J1357.1+1921_daily_bin64.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/59824/ft1_4FGL_J1357.1+1921_daily_bin64.fits outfile=/scratch/kocevski/59824/ft1_filteredMKT_4FGL_J1357.1+1921_daily_bin64.fits ra=209.29 dec=19.3608 rad=12.0 tmin=255916801.0 tmax=256176001.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 1.43
user 1.27
sys 0.15

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/59824/ft1_filtered_4FGL_J1357.1+1921_daily_bin64.fits" evtable="EVENTS" scfile=/scratch/kocevski/59824/ft2_4FGL_J1357.1+1921_daily_bin64.fits sctable="SC_DATA" outfile=/scratch/kocevski/59824/ltcube_255916801_256176001_4FGL_J1357.1+1921_daily_bin64.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/59824/ft2_4FGL_J1357.1+1921_daily_bin64.fits
.....................!
real 13.38
user 13.01
sys 0.29

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/59824/ft1_filtered_4FGL_J1357.1+1921_daily_bin64.fits evtable="EVENTS" scfile=/scratch/kocevski/59824/ft2_4FGL_J1357.1+1921_daily_bin64.fits sctable="SC_DATA" expcube=/scratch/kocevski/59824/ltcube_255916801_256176001_4FGL_J1357.1+1921_daily_bin64.fits outfile=/scratch/kocevski/59824/expmap_255916801_256176001_4FGL_J1357.1+1921_daily_bin64.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/59824/ltcube_255916801_256176001_4FGL_J1357.1+1921_daily_bin64.fits
.....................!
real 189.74
user 184.90
sys 4.34

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/59824/ft1_filtered_4FGL_J1357.1+1921_daily_bin64.fits scfile=/scratch/kocevski/59824/ft2_4FGL_J1357.1+1921_daily_bin64.fits outfile=/scratch/kocevski/59824/cmap_255916801_256176001_4FGL_J1357.1+1921_daily_bin64.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.54
user 0.38
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/59824/ft1_filtered_4FGL_J1357.1+1921_daily_bin64.fits scfile=/scratch/kocevski/59824/ft2_4FGL_J1357.1+1921_daily_bin64.fits outfile=/scratch/kocevski/59824/cmap_HighResolution_255916801_256176001_4FGL_J1357.1+1921_daily_bin64.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.40
sys 0.13

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    12.161       1.0000         .10000E-03   10000.    
     2 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    27.386       1.0000         .10000E-03   10000.    
     5 'Prefactor '    1.4079       1.0000         .10000E-03   10000.    
     6 'Prefactor '    23.002       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .21353E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    1.7046       1.0000         .10000E-03   10000.    
     9 'Prefactor '    1.6841       1.0000         .10000E-03   10000.    
    10 'Prefactor '    13.862       1.0000         .10000E-03   10000.    
    11 'Prefactor '    16.568       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    6.4228       1.0000         .10000E-03   10000.    
    15 'Prefactor '    4.6527       1.0000         .10000E-03   10000.    
    16 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10019E-03   1.0000         .10000E-03   10000.    
    18 'Normalizat'    1.4164       1.0000         .10000E-01   10.000    
    19 'Prefactor '    .77112       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=   9636.092     FROM MIGRAD    STATUS=CONVERGED    379 CALLS     1615 TOTAL
                     EDM=   .13E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          12.161        10.598        .29424E-07    .11927E-04
   2  norm          .10000E-03    2.9985       -.38318E-07** at limit **
   3  Prefactor     .10000E-03    7.1657        .24135E-06** at limit **
   4  norm          27.386        8.2824        .70043E-06    .52572E-04
   5  Prefactor     1.4071        4.3916        .18272E-05   -.14112E-02
   6  Prefactor     23.002        16.718       -.19628E-07   -.11117E-04
   7  Prefactor     .10000E-03    89.936       -.33030E-05** at limit **
   8  Prefactor     1.7048        2.6823        .10830E-06   -.16636E-03
   9  Prefactor     1.6837        1.7833       -.72205E-07    .12284E-02
  10  Prefactor     13.858        14.383        .34619E-05    .20397E-04
  11  Prefactor     16.567        10.742        .41930E-06   -.42008E-04
  12  Prefactor     .10000E-03    20.779        .16092E-04** at limit **
  13  Prefactor     .10000E-03    2.0324       -.62915E-07** at limit **
  14  norm          6.4230        2.2979        .44094E-07   -.16692E-04
  15  Prefactor     4.6532        5.6224        .24402E-05   -.13031E-05
  16  norm          .10000E-03    .57022       -.27845E-07** at limit **
  17  Prefactor     .10000E-03    20.441       -.15305E-04** at limit **
  18  Normalizat    1.4165        .16272       -.11089E-05   -.37502E-04
  19  Prefactor     .77094        .13082       -.65960E-06   -.12680E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 12.1614
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 27.3858
  Prefactor  = 1.40708
  Prefactor  = 23.0023
  Prefactor  = 0.0001
  Prefactor  = 1.70483
  Prefactor  = 1.68369
  Prefactor  = 13.8583
  Prefactor  = 16.5665
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 6.42295
  Prefactor  = 4.65322
  norm       = 0.0001
  Prefactor  = 0.0001
  Normalizat = 1.41655
  Prefactor  = 0.770941
 **********
 **   18 **HESSE 
 **********

 FCN=   9636.092     FROM HESSE     STATUS=OK           272 CALLS     1887 TOTAL
                     EDM=   .16E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          12.161        10.597        .57435E-03   -1.5010    
   2  norm          .10000E-03    3.0783        .33150E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    7.1704        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          27.386        8.2942        .76553E-04   -1.4661    
   5  Prefactor     1.4071        19.935        .18263E-02   -1.5471    
   6  Prefactor     23.002        16.907        .83518E-04   -1.4748    
   7  Prefactor     .10000E-03    92.313        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     1.7048        2.6596        .19557E-03   -1.5447    
   9  Prefactor     1.6837        1.8034        .66169E-03   -1.5448    
  10  Prefactor     13.858        14.375        .10758E-03   -1.4963    
  11  Prefactor     16.567        10.803        .98398E-04   -1.4894    
  12  Prefactor     .10000E-03    20.849        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    2.0396        .13660E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          6.4230        2.2983        .86341E-04   -1.5201    
  15  Prefactor     4.6532        5.6174        .18658E-03   -1.5277    
  16  norm          .10000E-03    .57529        .72366E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    20.562        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Normalizat    1.4165        .19596        .24104E-03   -.80151    
  19  Prefactor     .77094        .15634        .26055E-03   -1.0081    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.59347e-08
Minuit parameter uncertainties:
  1  10.5989
  2  7.92649e-06
  3  4.99315e-06
  4  8.29453
  5  10.5964
  6  16.9103
  7  9.09781e-05
  8  2.65974
  9  1.80341
  10  14.3785
  11  10.8041
  12  0.000146643
  13  1.19591e-05
  14  2.29831
  15  5.61807
  16  4.71217e-07
  17  0.000202207
  18  0.196059
  19  0.156431
Done.

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

Extracting fit parameters...

4FGL J1357.1+1921
   Spectrum: PowerLaw
267    Prefactor:  1.657e+01  1.080e+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.709e-01  1.564e-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.417e+00  1.961e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 4.70
Ra Dec: 209.290 19.361
Photon Index (Fixed Index): 2.76 +/- 0.00
Photon Flux (Fixed Index): 6.44e-08 +/- 4.20e-08
Energy Flux (Fixed Index): 1.48e-05 +/- 9.68e-06

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) = 9634.84470924
delta logL = 1.24713481877

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 9634.83082822
delta logL = 1.26101583348

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    5.5480       1.0000         .10000E-03   10000.    
     2 'Index     '    4.4480       1.0000          .0000       10.000    
     3 'Normalizat'    1.3035       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .83720       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=   9634.831     FROM MIGRAD    STATUS=CONVERGED     86 CALLS      295 TOTAL
                     EDM=   .22E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     5.5450        45.725        .91953E-04   -.92578E-03
   2  Index         4.4486        4.0491        .56413E-02   -.13997E-03
   3  Normalizat    1.3036        .18656        .24916E-03    .13647E-02
   4  Prefactor     .83719        .15794        .25111E-03    .84755E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 5.54496
  Index      = 4.44864
  Normalizat = 1.30358
  Prefactor  = 0.837189
 **********
 **   18 **HESSE 
 **********

 FCN=   9634.831     FROM HESSE     STATUS=OK            25 CALLS      320 TOTAL
                     EDM=   .28E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     5.5450        14.831        .36781E-05   -1.5237    
   2  Index         4.4486        2.1343        .22565E-03   -.11050    
   3  Normalizat    1.3036        .20101        .49831E-04   -.83460    
   4  Prefactor     .83719        .16399        .50221E-04   -.98372    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.77886e-09
Minuit parameter uncertainties:
  1  14.8404
  2  2.20601
  3  0.20113
  4  0.164086
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/59824': 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) = 9634.83082791
delta logL = 1.26101614832

Extracting fit parameters...

4FGL J1357.1+1921
   Spectrum: PowerLaw
267    Prefactor:  5.545e+00  1.484e+01  1.000e-04  1.000e+04 ( 1.000e-12)
268        Index:  4.449e+00  2.206e+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.372e-01  1.641e-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.304e+00  2.011e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 7.64
Ra Dec: 209.290 19.361
Photon Index (Free Index): 4.45 +/- 2.21
Photon Flux (Free Index): 1.47e-07 +/- 6.54e-08
Energy Flux (Free Index): 2.06e-05 +/- 9.59e-06

Creating a high resolution counts map...
INFO: Auto-setting vmin to -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/59824/cmap_HighResolution_255916801_256176001_4FGL_J1357.1+1921_daily_bin64.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='6.44e-08', energy_flux2='2.06e-05', photon_flux_error='4.20e-08', dlogl='1.26e+00', energy_flux='1.48e-05', photon_flux2='1.47e-07', job_status='DONE', time_completed='2021-09-08 17:54:04.990200', photon_index_error2='2.21', photon_index2='4.45', ts='4.70', fit_tolerance='1e-08', GAL='0.77', photon_index_error='0.00', energy_flux_error2='9.59e-06', EG='1.42', time_epoch_completed='1631148844.99', return_code='0', job_id='59824', GAL2='0.84', EG2='1.30', return_code2='0', energy_flux_error='9.68e-06', photon_flux_error2='6.54e-08', ts2='7.64', photon_index='2.76' WHERE bin_id='64' AND source_name='4FGL J1357.1+1921' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  8 17:54:05 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0223>
Subject: Job 59824: <4FGL_J1357.1+1921_daily_bin64> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1357.1+1921_daily_bin64 209.29 19.3608 255916801 256176001 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 :                                   576.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             255.92 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   780 sec.
    Turnaround time :                            782 sec.

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

