/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 144 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 = 7394
number of fields = 27
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J1357.1+1921_daily_bin447
RA = 209.29, Dec = 19.3608
tmin = 355190401, tmax = 355449601
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='61449', job_status='RUN', time_executed='2021-09-08 17:48:44.458799', time_epoch_executed='1631148524.46' WHERE source_name='4FGL J1357.1+1921' and cadence='daily' and bin_id='447'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/61449

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/61449/ft1_4FGL_J1357.1+1921_daily_bin447.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/61449/ft2_4FGL_J1357.1+1921_daily_bin447.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/61449/ft1_4FGL_J1357.1+1921_daily_bin447.fits outfile=/scratch/kocevski/61449/ft1_filteredMKT_4FGL_J1357.1+1921_daily_bin447.fits ra=209.29 dec=19.3608 rad=12.0 tmin=355190401.0 tmax=355449601.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.39
user 3.20
sys 0.17

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/61449/ft2_4FGL_J1357.1+1921_daily_bin447.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/61449/ft1_filteredMKT_4FGL_J1357.1+1921_daily_bin447.fits evtable="EVENTS" outfile="/scratch/kocevski/61449/ft1_filtered_4FGL_J1357.1+1921_daily_bin447.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/61449/ft1_filtered_4FGL_J1357.1+1921_daily_bin447.fits" evtable="EVENTS" scfile=/scratch/kocevski/61449/ft2_4FGL_J1357.1+1921_daily_bin447.fits sctable="SC_DATA" outfile=/scratch/kocevski/61449/ltcube_355190401_355449601_4FGL_J1357.1+1921_daily_bin447.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/61449/ft2_4FGL_J1357.1+1921_daily_bin447.fits
.....................!
real 13.98
user 13.58
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/61449/ft1_filtered_4FGL_J1357.1+1921_daily_bin447.fits evtable="EVENTS" scfile=/scratch/kocevski/61449/ft2_4FGL_J1357.1+1921_daily_bin447.fits sctable="SC_DATA" expcube=/scratch/kocevski/61449/ltcube_355190401_355449601_4FGL_J1357.1+1921_daily_bin447.fits outfile=/scratch/kocevski/61449/expmap_355190401_355449601_4FGL_J1357.1+1921_daily_bin447.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/61449/ltcube_355190401_355449601_4FGL_J1357.1+1921_daily_bin447.fits
.....................!
real 192.19
user 187.40
sys 4.29

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/61449/ft1_filtered_4FGL_J1357.1+1921_daily_bin447.fits scfile=/scratch/kocevski/61449/ft2_4FGL_J1357.1+1921_daily_bin447.fits outfile=/scratch/kocevski/61449/cmap_355190401_355449601_4FGL_J1357.1+1921_daily_bin447.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.52
user 0.35
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/61449/ft1_filtered_4FGL_J1357.1+1921_daily_bin447.fits scfile=/scratch/kocevski/61449/ft2_4FGL_J1357.1+1921_daily_bin447.fits outfile=/scratch/kocevski/61449/cmap_HighResolution_355190401_355449601_4FGL_J1357.1+1921_daily_bin447.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.62
user 0.38
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

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      '    29.658       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10051E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    12.611       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10039E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    4.7760       1.0000         .10000E-03   10000.    
     9 'Prefactor '    5.8017       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    15.589       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10152E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    23.839       1.0000         .10000E-03   10000.    
    14 'norm      '    3.8879       1.0000         .10000E-03   10000.    
    15 'Prefactor '    11.518       1.0000         .10000E-03   10000.    
    16 'norm      '    .17227       1.0000         .10000E-03   10000.    
    17 'Prefactor '    35.202       1.0000         .10000E-03   10000.    
    18 'Normalizat'    1.1584       1.0000         .10000E-01   10.000    
    19 'Prefactor '    .75348       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=   5424.112     FROM MIGRAD    STATUS=CONVERGED    381 CALLS     2406 TOTAL
                     EDM=   .68E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    7.6107        .90712E-02** at limit **
   2  norm          29.658        9.3582        .18392E-02    .34053E-03
   3  Prefactor     .10001E-03    71.406        .90712E-02** at limit **
   4  norm          12.611        8.5936        .28200E-02    .69089E-03
   5  Prefactor     .10000E-03    9.6078        .90712E-02** at limit **
   6  Prefactor     .10001E-03    72.199        .90712E-02** at limit **
   7  Prefactor     .10000E-03    16.130        .90712E-02** at limit **
   8  Prefactor     4.7760        3.6196        .46025E-02    .48886E-04
   9  Prefactor     5.8019        4.0346        .41685E-02   -.17757E-04
  10  Prefactor     .10000E-03    3.4371        .90712E-02** at limit **
  11  Prefactor     15.591        14.113        .25361E-02   -.36028E-03
  12  Prefactor     .10000E-03    51.494        .90712E-02** at limit **
  13  Prefactor     23.838        10.930        .20510E-02    .12605E-04
  14  norm          3.8880        2.4969        .51158E-02   -.13311E-04
  15  Prefactor     11.518        8.2330        .29510E-02   -.95419E-03
  16  norm          .17211        1.9826        .98503E-02    .24397E-02
  17  Prefactor     35.202        43.633        .16886E-02    .36615E-03
  18  Normalizat    1.1584        .19311        .54110E-01   -.27818E-04
  19  Prefactor     .75346        .16131        .43109E-01   -.12166E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  norm       = 29.6583
  Prefactor  = 0.000100011
  norm       = 12.6113
  Prefactor  = 0.0001
  Prefactor  = 0.000100012
  Prefactor  = 0.0001
  Prefactor  = 4.77601
  Prefactor  = 5.80193
  Prefactor  = 0.0001
  Prefactor  = 15.5907
  Prefactor  = 0.0001
  Prefactor  = 23.8384
  norm       = 3.88803
  Prefactor  = 11.5175
  norm       = 0.172105
  Prefactor  = 35.2018
  Normalizat = 1.15837
  Prefactor  = 0.753465
 **********
 **   18 **HESSE 
 **********

 FCN=   5424.112     FROM HESSE     STATUS=OK           266 CALLS     2672 TOTAL
                     EDM=   .23E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    7.6233        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          29.658        9.3708        .73570E-04   -1.4618    
   3  Prefactor     .10001E-03    72.396        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          12.611        8.6006        .11280E-03   -1.4998    
   5  Prefactor     .10000E-03    9.6223        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10001E-03    73.476        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    16.133        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     4.7760        3.6205        .11852E-03   -1.5271    
   9  Prefactor     5.8019        4.0345        .11993E-03   -1.5226    
  10  Prefactor     .10000E-03    3.4401        .13335E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     15.591        14.190        .10144E-03   -1.4918    
  12  Prefactor     .10000E-03    51.770        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     23.838        10.924        .82040E-04   -1.4731    
  14  norm          3.8880        2.4985        .90365E-04   -1.5314    
  15  Prefactor     11.518        8.2228        .11804E-03   -1.5029    
  16  norm          .17211        2.0550        .20089E-03   -1.5625    
  17  Prefactor     35.202        43.588        .67543E-04   -1.4521    
  18  Normalizat    1.1584        .22889        .23926E-03   -.87899    
  19  Prefactor     .75346        .19001        .24718E-03   -1.0147    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.30801e-09
Minuit parameter uncertainties:
  1  1.04608e-06
  2  9.37127
  3  0.00177659
  4  8.60141
  5  2.66529e-07
  6  0.00184492
  7  8.30612e-06
  8  3.62064
  9  4.03471
  10  2.19803e-06
  11  14.1926
  12  0.000100055
  13  10.9247
  14  2.49861
  15  8.22361
  16  1.18913
  17  43.6271
  18  0.229087
  19  0.190178
Done.

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

Extracting fit parameters...

4FGL J1357.1+1921
   Spectrum: PowerLaw
267    Prefactor:  1.559e+01  1.419e+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.535e-01  1.902e-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.158e+00  2.291e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.52
Ra Dec: 209.290 19.361
Photon Index (Fixed Index): 2.76 +/- 0.00
Photon Flux (Fixed Index): 6.06e-08 +/- 5.51e-08
Energy Flux (Fixed Index): 1.40e-05 +/- 1.27e-05

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

Saving results to:
/scratch/kocevski/61449/likelihoodResults_355190401_355449601_4FGL_J1357.1+1921_daily_bin447.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) = 5422.82238112
delta logL = 1.28963150709

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5422.76424271
delta logL = 1.34776991487

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .95130       1.0000         .10000E-03   10000.    
     2 'Index     '    5.6583       1.0000          .0000       10.000    
     3 'Normalizat'    1.0641       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .81657       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=   5422.764     FROM MIGRAD    STATUS=CONVERGED     50 CALLS      263 TOTAL
                     EDM=   .33E-10    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .94851        7.9956        .86192E-02    .10678E-02
   2  Index         5.6606        3.4729        .13117        .71968E-04
   3  Normalizat    1.0639        .58690E-01    .39700E-01   -.79533E-04
   4  Prefactor     .81670        .50292E-01    .43932E-01   -.50325E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.948507
  Index      = 5.66062
  Normalizat = 1.06386
  Prefactor  = 0.816696
 **********
 **   18 **HESSE 
 **********

 FCN=   5422.764     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      296 TOTAL
                     EDM=   .27E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .94851        14.566        .38772E-04   -1.5513    
   2  Index         5.6606        7.4714        .53215E-02    .13251    
   3  Normalizat    1.0639        .20358        .24773E-03   -.90921    
   4  Prefactor     .81670        .17124        .23828E-03   -.99116    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 2.68107e-09
Minuit parameter uncertainties:
  1  7.43566
  2  5.75313
  3  0.20373
  4  0.171348
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/61449': 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) = 5422.7642419
delta logL = 1.34777073024

Extracting fit parameters...

4FGL J1357.1+1921
   Spectrum: PowerLaw
267    Prefactor:  9.485e-01  7.436e+00  1.000e-04  1.000e+04 ( 1.000e-12)
268        Index:  5.661e+00  5.753e+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.167e-01  1.713e-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.064e+00  2.037e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 4.46
Ra Dec: 209.290 19.361
Photon Index (Free Index): 5.66 +/- 5.75
Photon Flux (Free Index): 1.19e-07 +/- 7.24e-08
Energy Flux (Free Index): 1.52e-05 +/- 1.22e-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/61449/cmap_HighResolution_355190401_355449601_4FGL_J1357.1+1921_daily_bin447.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.33e-02', comment='SUCCESS', photon_flux='6.06e-08', energy_flux2='1.52e-05', photon_flux_error='5.51e-08', dlogl='1.35e+00', energy_flux='1.40e-05', photon_flux2='1.19e-07', job_status='DONE', time_completed='2021-09-08 17:58:44.087871', photon_index_error2='5.75', photon_index2='5.66', ts='1.52', fit_tolerance='1e-08', GAL='0.75', photon_index_error='0.00', photon_flux_upper_limit='1.68e-07', energy_flux_error2='1.22e-05', EG='1.16', time_epoch_completed='1631149124.09', return_code='0', job_id='61449', GAL2='0.82', EG2='1.06', return_code2='102', energy_flux_error='1.27e-05', photon_flux_error2='7.24e-08', ts2='4.46', photon_index='2.76' WHERE bin_id='447' AND source_name='4FGL J1357.1+1921' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  8 17:58:44 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0032>
Subject: Job 61449: <4FGL_J1357.1+1921_daily_bin447> in cluster <slac> Done

Job <4FGL_J1357.1+1921_daily_bin447> was submitted from host <rhel6-64m> by user <kocevski> in cluster <slac> at Wed Sep  8 17:46:08 2021
Job was executed on host(s) <bullet0032>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep  8 17:46:09 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:09 2021
Terminated at Wed Sep  8 17:58:44 2021
Results reported at Wed Sep  8 17:58:44 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1357.1+1921_daily_bin447 209.29 19.3608 355190401 355449601 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 :                                   548.37 sec.
    Max Memory :                                 1186 MB
    Average Memory :                             302.39 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   755 sec.
    Turnaround time :                            756 sec.

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

