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


Performing analysis on: 4FGL_J1357.1+1921_daily_bin1256
RA = 209.29, Dec = 19.3608
tmin = 564883201, tmax = 565142401
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='66101', job_status='RUN', time_executed='2021-09-08 18:00:51.283930', time_epoch_executed='1631149251.28' WHERE source_name='4FGL J1357.1+1921' and cadence='daily' and bin_id='1256'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/66101

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/66101/ft1_4FGL_J1357.1+1921_daily_bin1256.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/66101/ft2_4FGL_J1357.1+1921_daily_bin1256.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/66101/ft1_4FGL_J1357.1+1921_daily_bin1256.fits outfile=/scratch/kocevski/66101/ft1_filteredMKT_4FGL_J1357.1+1921_daily_bin1256.fits ra=209.29 dec=19.3608 rad=12.0 tmin=564883201.0 tmax=565142401.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.70
user 3.33
sys 0.19

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/66101/ft1_filtered_4FGL_J1357.1+1921_daily_bin1256.fits" evtable="EVENTS" scfile=/scratch/kocevski/66101/ft2_4FGL_J1357.1+1921_daily_bin1256.fits sctable="SC_DATA" outfile=/scratch/kocevski/66101/ltcube_564883201_565142401_4FGL_J1357.1+1921_daily_bin1256.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/66101/ft2_4FGL_J1357.1+1921_daily_bin1256.fits
.....................!
real 12.33
user 11.92
sys 0.30

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/66101/ft1_filtered_4FGL_J1357.1+1921_daily_bin1256.fits evtable="EVENTS" scfile=/scratch/kocevski/66101/ft2_4FGL_J1357.1+1921_daily_bin1256.fits sctable="SC_DATA" expcube=/scratch/kocevski/66101/ltcube_564883201_565142401_4FGL_J1357.1+1921_daily_bin1256.fits outfile=/scratch/kocevski/66101/expmap_564883201_565142401_4FGL_J1357.1+1921_daily_bin1256.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/66101/ltcube_564883201_565142401_4FGL_J1357.1+1921_daily_bin1256.fits
.....................!
real 191.75
user 185.75
sys 5.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/66101/ft1_filtered_4FGL_J1357.1+1921_daily_bin1256.fits scfile=/scratch/kocevski/66101/ft2_4FGL_J1357.1+1921_daily_bin1256.fits outfile=/scratch/kocevski/66101/cmap_564883201_565142401_4FGL_J1357.1+1921_daily_bin1256.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.84
user 0.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/66101/ft1_filtered_4FGL_J1357.1+1921_daily_bin1256.fits scfile=/scratch/kocevski/66101/ft2_4FGL_J1357.1+1921_daily_bin1256.fits outfile=/scratch/kocevski/66101/cmap_HighResolution_564883201_565142401_4FGL_J1357.1+1921_daily_bin1256.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.38
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    2.8272       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    13.589       1.0000         .10000E-03   10000.    
     6 'Prefactor '    4.2121       1.0000         .10000E-03   10000.    
     7 'Prefactor '    15.282       1.0000         .10000E-03   10000.    
     8 'Prefactor '    1.8248       1.0000         .10000E-03   10000.    
     9 'Prefactor '    1.8637       1.0000         .10000E-03   10000.    
    10 'Prefactor '    6.3708       1.0000         .10000E-03   10000.    
    11 'Prefactor '    19.391       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    4.7366       1.0000         .10000E-03   10000.    
    15 'Prefactor '    4.5401       1.0000         .10000E-03   10000.    
    16 'norm      '    1.8729       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    18 'Normalizat'    .83975       1.0000         .10000E-01   10.000    
    19 'Prefactor '    1.1339       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=   7292.854     FROM MIGRAD    STATUS=CONVERGED    378 CALLS     1618 TOTAL
                     EDM=   .87E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    5.6809        .20291E-06** at limit **
   2  norm          2.8270        3.5178        .58937E-07   -.12993E-03
   3  Prefactor     .10000E-03    10.982        .92668E-07** at limit **
   4  norm          .10000E-03    2.2489       -.12533E-07** at limit **
   5  Prefactor     13.585        17.707       -.30846E-06   -.58741E-04
   6  Prefactor     4.2089        13.798        .17808E-06   -.31404E-04
   7  Prefactor     15.234        33.548       -.12297E-04   -.38099E-03
   8  Prefactor     1.8246        2.6706        .17023E-06   -.13685E-03
   9  Prefactor     1.8634        2.2814        .12578E-06    .16337E-03
  10  Prefactor     6.3703        8.4354        .20345E-05   -.22787E-03
  11  Prefactor     19.391        10.488       -.36019E-07   -.26726E-04
  12  Prefactor     .10000E-03    9.8681       -.66112E-06** at limit **
  13  Prefactor     .10000E-03    4.3673       -.58333E-06** at limit **
  14  norm          4.7365        2.1641        .26679E-07    .75993E-04
  15  Prefactor     4.5408        5.0778        .44464E-05   -.98814E-03
  16  norm          1.8730        2.3931       -.89836E-07   -.16875E-03
  17  Prefactor     .10000E-03    12.648        .55026E-06** at limit **
  18  Normalizat    .83977        .16850       -.93872E-06   -.26726E-05
  19  Prefactor     1.1339        .14613       -.65888E-07   -.41323E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  norm       = 2.82698
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 13.5854
  Prefactor  = 4.20889
  Prefactor  = 15.234
  Prefactor  = 1.8246
  Prefactor  = 1.86344
  Prefactor  = 6.37034
  Prefactor  = 19.3907
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 4.73651
  Prefactor  = 4.5408
  norm       = 1.873
  Prefactor  = 0.0001
  Normalizat = 0.839769
  Prefactor  = 1.13388
 **********
 **   18 **HESSE 
 **********

 FCN=   7292.854     FROM HESSE     STATUS=OK           272 CALLS     1890 TOTAL
                     EDM=   .20E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    5.6871        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          2.8270        3.5077        .17300E-03   -1.5372    
   3  Prefactor     .10000E-03    10.988        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          .10000E-03    2.2643        .12497E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     13.585        17.726        .10866E-03   -1.4971    
   6  Prefactor     4.2089        13.767        .19635E-03   -1.5298    
   7  Prefactor     15.234        35.748        .10246E-03   -1.4927    
   8  Prefactor     1.8246        2.6532        .16344E-03   -1.5438    
   9  Prefactor     1.8634        2.2753        .13897E-03   -1.5435    
  10  Prefactor     6.3703        8.4540        .79510E-03   -1.5203    
  11  Prefactor     19.391        10.506        .90954E-04   -1.4827    
  12  Prefactor     .10000E-03    9.8950        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    4.4671        .17447E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          4.7365        2.1652        .82467E-04   -1.5273    
  15  Prefactor     4.5408        5.2371        .94467E-03   -1.5282    
  16  norm          1.8730        2.3750        .14254E-03   -1.5434    
  17  Prefactor     .10000E-03    12.669        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Normalizat    .83977        .19515        .26992E-03   -.98610    
  19  Prefactor     1.1339        .16977        .20854E-03   -.88391    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.00507e-09
Minuit parameter uncertainties:
  1  1.18583e-05
  2  3.50794
  3  1.60853e-05
  4  1.80947e-06
  5  17.7331
  6  13.7778
  7  35.7986
  8  2.65339
  9  2.27537
  10  8.45562
  11  10.5074
  12  6.52575e-05
  13  6.32096e-05
  14  2.16526
  15  5.23758
  16  2.37511
  17  3.14439e-05
  18  0.195314
  19  0.169849
Done.

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

Extracting fit parameters...

4FGL J1357.1+1921
   Spectrum: PowerLaw
267    Prefactor:  1.939e+01  1.051e+01  1.000e-04  1.000e+04 ( 1.000e-12)
268        Index:  2.758e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
269        Scale:  4.625e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
506    Prefactor:  1.134e+00  1.698e-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:  8.398e-01  1.953e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 6.79
Ra Dec: 209.290 19.361
Photon Index (Fixed Index): 2.76 +/- 0.00
Photon Flux (Fixed Index): 7.54e-08 +/- 4.08e-08
Energy Flux (Fixed Index): 1.74e-05 +/- 9.42e-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) = 7292.83987706
delta logL = 0.0136303210975

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7292.83845546
delta logL = 0.0150519230856

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    19.893       1.0000         .10000E-03   10000.    
     2 'Index     '    2.6518       1.0000          .0000       10.000    
     3 'Normalizat'    .84589       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1310       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=   7292.838     FROM MIGRAD    STATUS=CONVERGED     82 CALLS      234 TOTAL
                     EDM=   .27E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     19.893        11.344        .89800E-04    .48733E-03
   2  Index         2.6518        .61231        .83750E-02    .92872E-04
   3  Normalizat    .84588        .19102        .26908E-03   -.50743E-04
   4  Prefactor     1.1309        .16617        .20880E-03   -.71099E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 19.8932
  Index      = 2.65184
  Normalizat = 0.84588
  Prefactor  = 1.1309
 **********
 **   18 **HESSE 
 **********

 FCN=   7292.838     FROM HESSE     STATUS=OK            25 CALLS      259 TOTAL
                     EDM=   .26E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     19.893        11.252        .17960E-04   -1.4816    
   2  Index         2.6518        .60686        .33500E-03   -.48887    
   3  Normalizat    .84588        .19120        .10763E-04   -.98389    
   4  Prefactor     1.1309        .16630        .41759E-04   -.88485    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.59291e-10
Minuit parameter uncertainties:
  1  11.2531
  2  0.608788
  3  0.191352
  4  0.166373
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/66101': 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) = 7292.83845483
delta logL = 0.0150525467725

Extracting fit parameters...

4FGL J1357.1+1921
   Spectrum: PowerLaw
267    Prefactor:  1.989e+01  1.125e+01  1.000e-04  1.000e+04 ( 1.000e-12)
268        Index:  2.652e+00  6.088e-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.131e+00  1.664e-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:  8.459e-01  1.914e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 6.79
Ra Dec: 209.290 19.361
Photon Index (Free Index): 2.65 +/- 0.61
Photon Flux (Free Index): 7.00e-08 +/- 5.08e-08
Energy Flux (Free Index): 1.75e-05 +/- 9.80e-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/66101/cmap_HighResolution_564883201_565142401_4FGL_J1357.1+1921_daily_bin1256.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='7.54e-08', energy_flux2='1.75e-05', photon_flux_error='4.08e-08', dlogl='1.51e-02', energy_flux='1.74e-05', photon_flux2='7.00e-08', job_status='DONE', time_completed='2021-09-08 18:09:30.249106', photon_index_error2='0.61', photon_index2='2.65', ts='6.79', fit_tolerance='1e-08', GAL='1.13', photon_index_error='0.00', energy_flux_error2='9.80e-06', EG='0.84', time_epoch_completed='1631149770.25', return_code='0', job_id='66101', GAL2='1.13', EG2='0.85', return_code2='0', energy_flux_error='9.42e-06', photon_flux_error2='5.08e-08', ts2='6.79', photon_index='2.76' WHERE bin_id='1256' AND source_name='4FGL J1357.1+1921' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  8 18:09:30 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0202>
Subject: Job 66101: <4FGL_J1357.1+1921_daily_bin1256> in cluster <slac> Done

Job <4FGL_J1357.1+1921_daily_bin1256> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Wed Sep  8 18:00:35 2021
Job was executed on host(s) <bullet0202>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep  8 18:00:38 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Wed Sep  8 18:00:38 2021
Terminated at Wed Sep  8 18:09:33 2021
Results reported at Wed Sep  8 18:09:33 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1357.1+1921_daily_bin1256 209.29 19.3608 564883201 565142401 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 :                                   512.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             293.37 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   532 sec.
    Turnaround time :                            538 sec.

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

