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


Performing analysis on: 4FGL_J1357.1+1921_daily_bin801
RA = 209.29, Dec = 19.3608
tmin = 446947201, tmax = 447206401
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='62987', job_status='RUN', time_executed='2021-09-08 17:54:35.189532', time_epoch_executed='1631148875.19' WHERE source_name='4FGL J1357.1+1921' and cadence='daily' and bin_id='801'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/62987

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/62987/ft1_4FGL_J1357.1+1921_daily_bin801.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/62987/ft2_4FGL_J1357.1+1921_daily_bin801.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/62987/ft1_4FGL_J1357.1+1921_daily_bin801.fits outfile=/scratch/kocevski/62987/ft1_filteredMKT_4FGL_J1357.1+1921_daily_bin801.fits ra=209.29 dec=19.3608 rad=12.0 tmin=446947201.0 tmax=447206401.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.38
user 3.16
sys 0.21

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/62987/ft1_filtered_4FGL_J1357.1+1921_daily_bin801.fits" evtable="EVENTS" scfile=/scratch/kocevski/62987/ft2_4FGL_J1357.1+1921_daily_bin801.fits sctable="SC_DATA" outfile=/scratch/kocevski/62987/ltcube_446947201_447206401_4FGL_J1357.1+1921_daily_bin801.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/62987/ft2_4FGL_J1357.1+1921_daily_bin801.fits
.....................!
real 11.90
user 11.51
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/62987/ft1_filtered_4FGL_J1357.1+1921_daily_bin801.fits evtable="EVENTS" scfile=/scratch/kocevski/62987/ft2_4FGL_J1357.1+1921_daily_bin801.fits sctable="SC_DATA" expcube=/scratch/kocevski/62987/ltcube_446947201_447206401_4FGL_J1357.1+1921_daily_bin801.fits outfile=/scratch/kocevski/62987/expmap_446947201_447206401_4FGL_J1357.1+1921_daily_bin801.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/62987/ltcube_446947201_447206401_4FGL_J1357.1+1921_daily_bin801.fits
.....................!
real 190.56
user 185.48
sys 4.62

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/62987/ft1_filtered_4FGL_J1357.1+1921_daily_bin801.fits scfile=/scratch/kocevski/62987/ft2_4FGL_J1357.1+1921_daily_bin801.fits outfile=/scratch/kocevski/62987/cmap_446947201_447206401_4FGL_J1357.1+1921_daily_bin801.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.56
user 0.40
sys 0.13

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/62987/ft1_filtered_4FGL_J1357.1+1921_daily_bin801.fits scfile=/scratch/kocevski/62987/ft2_4FGL_J1357.1+1921_daily_bin801.fits outfile=/scratch/kocevski/62987/cmap_HighResolution_446947201_447206401_4FGL_J1357.1+1921_daily_bin801.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.55
user 0.39
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

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      '    13.746       1.0000         .10000E-03   10000.    
     3 'Prefactor '    15.557       1.0000         .10000E-03   10000.    
     4 'norm      '    .10348E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10038E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    3.3551       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    6.4191       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10428E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    9.5155       1.0000         .10000E-03   10000.    
    14 'norm      '    5.6086       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .11185       1.0000         .10000E-03   10000.    
    16 'norm      '    2.6921       1.0000         .10000E-03   10000.    
    17 'Prefactor '    11.421       1.0000         .10000E-03   10000.    
    18 'Normalizat'    1.0948       1.0000         .10000E-01   10.000    
    19 'Prefactor '    .88214       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=   5418.275     FROM MIGRAD    STATUS=CONVERGED    403 CALLS     1641 TOTAL
                     EDM=   .62E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY= 10.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    6.2780        .56139E-06** at limit **
   2  norm          13.750        7.7219        .92672E-07    .26153E-04
   3  Prefactor     15.558        15.865       -.24625E-07    .93425E-05
   4  norm          .10000E-03    9.0300       -.13733E-06** at limit **
   5  Prefactor     .10000E-03    6.5507       -.51196E-06** at limit **
   6  Prefactor     .10000E-03    6.0158       -.23504E-06** at limit **
   7  Prefactor     .10001E-03    78.551       -.17360E-04** at limit **
   8  Prefactor     3.3557        3.2667       -.19522E-06    .66775E-04
   9  Prefactor     .10000E-03    1.4321       -.49781E-07** at limit **
  10  Prefactor     .10000E-03    12.364       -.18155E-06** at limit **
  11  Prefactor     6.4189        12.489       -.85879E-06    .10398E-03
  12  Prefactor     .10000E-03    42.040       -.32589E-07** at limit **
  13  Prefactor     9.4705        10.407        .18901E-06    .63440E-03
  14  norm          5.6089        2.8644        .50819E-07    .27211E-04
  15  Prefactor     .20040        81.242        .25174E-04    .37256E-04
  16  norm          2.6907        1.9633        .98673E-07    .24814E-03
  17  Prefactor     11.403        19.807        .23922E-05    .30044E-04
  18  Normalizat    1.0947        .19850       -.49194E-06    .41597E-03
  19  Prefactor     .88208        .16479        .49793E-06    .67989E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  norm       = 13.7499
  Prefactor  = 15.5583
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.00010001
  Prefactor  = 3.35573
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 6.41893
  Prefactor  = 0.000100001
  Prefactor  = 9.47047
  norm       = 5.60891
  Prefactor  = 0.200397
  norm       = 2.69074
  Prefactor  = 11.4026
  Normalizat = 1.09469
  Prefactor  = 0.882084
 **********
 **   18 **HESSE 
 **********

 FCN=   5418.275     FROM HESSE     STATUS=OK           268 CALLS     1909 TOTAL
                     EDM=   .93E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    6.2802        .18013E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          13.750        7.7388        .10803E-03   -1.4966    
   3  Prefactor     15.558        15.867        .10154E-03   -1.4919    
   4  norm          .10000E-03    9.1549        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    6.5586        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    6.0201        .17634E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10001E-03    76.821        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     3.3557        3.2665        .12745E-03   -1.5342    
   9  Prefactor     .10000E-03    1.4363        .86024E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    12.497        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     6.4189        12.522        .15841E-03   -1.5201    
  12  Prefactor     .10000E-03    42.457        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     9.4705        10.621        .12991E-03   -1.5092    
  14  norm          5.6089        2.8656        .86136E-04   -1.5234    
  15  Prefactor     .20040        88.366        .27876E-02   -1.5618    
  16  norm          2.6907        1.9620        .85258E-04   -1.5380    
  17  Prefactor     11.403        19.851        .11854E-03   -1.5032    
  18  Normalizat    1.0947        .23233        .23670E-03   -.89922    
  19  Prefactor     .88208        .19385        .22535E-03   -.96770    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.307e-10
Minuit parameter uncertainties:
  1  1.06237e-05
  2  7.73933
  3  15.8713
  4  2.18442e-05
  5  4.9602e-06
  6  7.89588e-07
  7  0.00171494
  8  3.26664
  9  6.57858e-07
  10  8.52227e-06
  11  12.5276
  12  0.000296837
  13  10.6231
  14  2.86568
  15  8.42668
  16  1.96208
  17  19.8623
  18  0.232545
  19  0.193997
Done.

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

Extracting fit parameters...

4FGL J1357.1+1921
   Spectrum: PowerLaw
267    Prefactor:  6.419e+00  1.253e+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:  8.821e-01  1.940e-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.095e+00  2.325e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/62987/likelihoodResults_446947201_447206401_4FGL_J1357.1+1921_daily_bin801.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): 102
logL (Free Index) = 5417.52553917
delta logL = 0.749896614968

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5417.40348113
delta logL = 0.871954659565

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .69328E-02   1.0000         .10000E-03   10000.    
     2 'Index     '    8.8367       1.0000          .0000       10.000    
     3 'Normalizat'    1.0237       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .92980       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=   5417.403     FROM MIGRAD    STATUS=CONVERGED     55 CALLS      370 TOTAL
                     EDM=   .14E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .68072E-02    .10498        .93576E-03    .12157E-01
   2  Index         8.8494        8.7431        .28428        .68231E-04
   3  Normalizat    1.0230        .49435E-01    .42858E-01    .86463E-05
   4  Prefactor     .93048        .42923E-01    .45384E-01    .18318E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0068072
  Index      = 8.84941
  Normalizat = 1.02302
  Prefactor  = 0.930484
 **********
 **   18 **HESSE 
 **********

 FCN=   5417.403     FROM HESSE     STATUS=NOT POSDEF    31 CALLS      401 TOTAL
                     EDM=   .17E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .68072E-02    .23531        .48808E-05   -1.5692    
   2  Index         8.8494        9.4112        .12752E-02    .87866    
   3  Normalizat    1.0230        .22197        .24372E-03   -.92263    
   4  Prefactor     .93048        .18863        .21998E-03   -.95084    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.70057e-10
Minuit parameter uncertainties:
  1  0.079455
  2  8.14788
  3  0.22217
  4  0.188764
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/62987': 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) = 5417.40347238
delta logL = 0.871963407117

Extracting fit parameters...

4FGL J1357.1+1921
   Spectrum: PowerLaw
267    Prefactor:  6.807e-03  7.945e-02  1.000e-04  1.000e+04 ( 1.000e-12)
268        Index:  8.849e+00  8.148e+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:  9.305e-01  1.888e-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.023e+00  2.222e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.17
Ra Dec: 209.290 19.361
Photon Index (Free Index): 8.85 +/- 8.15
Photon Flux (Free Index): 6.83e-08 +/- 5.70e-08
Energy Flux (Free Index): 7.79e-06 +/- 6.90e-06

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/62987/cmap_HighResolution_446947201_447206401_4FGL_J1357.1+1921_daily_bin801.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.02e-02', comment='SUCCESS', energy_flux2='7.79e-06', dlogl='8.72e-01', photon_flux2='6.83e-08', job_status='DONE', time_completed='2021-09-08 18:03:03.765742', photon_index_error2='8.15', photon_index2='8.85', ts='0.30', fit_tolerance='1e-08', GAL='0.88', photon_index_error='0.00', photon_flux_upper_limit='1.29e-07', energy_flux_error2='6.90e-06', EG='1.09', time_epoch_completed='1631149383.77', return_code='0', job_id='62987', GAL2='0.93', EG2='1.02', return_code2='102', photon_flux_error2='5.70e-08', ts2='2.17', photon_index='2.76' WHERE bin_id='801' AND source_name='4FGL J1357.1+1921' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  8 18:03:03 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0217>
Subject: Job 62987: <4FGL_J1357.1+1921_daily_bin801> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1357.1+1921_daily_bin801 209.29 19.3608 446947201 447206401 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 :                                   506.35 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             212.36 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   738 sec.
    Turnaround time :                            739 sec.

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

