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


Performing analysis on: 4FGL_J1357.1+1921_daily_bin702
RA = 209.29, Dec = 19.3608
tmin = 421286401, tmax = 421545601
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='62840', job_status='RUN', time_executed='2021-09-08 17:50:47.613986', time_epoch_executed='1631148647.61' WHERE source_name='4FGL J1357.1+1921' and cadence='daily' and bin_id='702'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/62840

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

Retrieving the FT1 file...

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

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

Retrieving 48 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/62840/ft1_4FGL_J1357.1+1921_daily_bin702.fits


Retrieving the FT1 file...

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

Retrieving 48 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/62840/ft2_4FGL_J1357.1+1921_daily_bin702.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/62840/ft1_4FGL_J1357.1+1921_daily_bin702.fits outfile=/scratch/kocevski/62840/ft1_filteredMKT_4FGL_J1357.1+1921_daily_bin702.fits ra=209.29 dec=19.3608 rad=12.0 tmin=421286401.0 tmax=421545601.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.62
user 3.42
sys 0.19

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/62840/ft1_filtered_4FGL_J1357.1+1921_daily_bin702.fits evtable="EVENTS" scfile=/scratch/kocevski/62840/ft2_4FGL_J1357.1+1921_daily_bin702.fits sctable="SC_DATA" expcube=/scratch/kocevski/62840/ltcube_421286401_421545601_4FGL_J1357.1+1921_daily_bin702.fits outfile=/scratch/kocevski/62840/expmap_421286401_421545601_4FGL_J1357.1+1921_daily_bin702.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/62840/ltcube_421286401_421545601_4FGL_J1357.1+1921_daily_bin702.fits
.....................!
real 192.00
user 186.34
sys 5.26

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/62840/ft1_filtered_4FGL_J1357.1+1921_daily_bin702.fits scfile=/scratch/kocevski/62840/ft2_4FGL_J1357.1+1921_daily_bin702.fits outfile=/scratch/kocevski/62840/cmap_421286401_421545601_4FGL_J1357.1+1921_daily_bin702.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=160 nypix=160 binsz=0.25 coordsys="CEL" xref=209.29 yref=19.3608 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

This is gtbin version HEAD
real 0.53
user 0.36
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/62840/ft1_filtered_4FGL_J1357.1+1921_daily_bin702.fits scfile=/scratch/kocevski/62840/ft2_4FGL_J1357.1+1921_daily_bin702.fits outfile=/scratch/kocevski/62840/cmap_HighResolution_421286401_421545601_4FGL_J1357.1+1921_daily_bin702.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=500 nypix=500 binsz=0.1 coordsys="CEL" xref=209.29 yref=19.3608 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

This is gtbin version HEAD
real 0.54
user 0.37
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10009E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    9.6084       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .77204E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    4.2935       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10032E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .37968E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10074E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    13.402       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .63414E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .12773E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    9.1402       1.0000         .10000E-03   10000.    
    14 'norm      '    .10007E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .67474E-02   1.0000         .10000E-03   10000.    
    16 'norm      '    2.2819       1.0000         .10000E-03   10000.    
    17 'Prefactor '    41.967       1.0000         .10000E-03   10000.    
    18 'Normalizat'    1.2856       1.0000         .10000E-01   10.000    
    19 'Prefactor '    .89833       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=   6291.146     FROM MIGRAD    STATUS=CONVERGED    697 CALLS     2493 TOTAL
                     EDM=   .42E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    26.836        .18142E-02** at limit **
   2  norm          9.6096        7.8092        .12928E-03   -.37224E-03
   3  Prefactor     .10000E-03    230.33        .68092E-02** at limit **
   4  norm          4.2927        8.9918        .19443E-03   -.19787E-03
   5  Prefactor     .10000E-03    12.249        .18142E-02** at limit **
   6  Prefactor     .10000E-03    7.2727        .18142E-02** at limit **
   7  Prefactor     .10000E-03    22.466        .18142E-02** at limit **
   8  Prefactor     .10680E-03    5.0879        .44353E-01** at limit **
   9  Prefactor     .10000E-03    2.4543        .12087E-02** at limit **
  10  Prefactor     13.402        17.653        .10941E-03   -.15939E-03
  11  Prefactor     .10006E-03    40.531        .40754E-02** at limit **
  12  Prefactor     .10000E-03    45.986        .18142E-02** at limit **
  13  Prefactor     9.1401        9.2939        .13257E-03   -.94102E-03
  14  norm          .10000E-03    1.2670        .86156E-03** at limit **
  15  Prefactor     .10001E-03    10.045        .53281E-01** at limit **
  16  norm          2.2825        2.8437        .14303E-03   -.42088E-03
  17  Prefactor     41.964        31.576        .61880E-04   -.14415E-03
  18  Normalizat    1.2860        .23609        .24846E-03   -.74501E-03
  19  Prefactor     .89781        .19050        .23944E-03   -.11127E-02
                               ERR DEF=  .500    
Final values: 
  norm       = 0.000100002
  norm       = 9.6096
  Prefactor  = 0.0001
  norm       = 4.29271
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000106797
  Prefactor  = 0.0001
  Prefactor  = 13.4016
  Prefactor  = 0.00010006
  Prefactor  = 0.000100001
  Prefactor  = 9.14006
  norm       = 0.0001
  Prefactor  = 0.00010001
  norm       = 2.28254
  Prefactor  = 41.964
  Normalizat = 1.28601
  Prefactor  = 0.897813
 **********
 **   18 **HESSE 
 **********

 FCN=   6291.146     FROM HESSE     STATUS=OK           270 CALLS     2763 TOTAL
                     EDM=   .42E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    26.851        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          9.6096        7.8075        .51712E-05   -1.5088    
   3  Prefactor     .10000E-03    240.19        .27237E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          4.2927        8.9896        .77772E-05   -1.5294    
   5  Prefactor     .10000E-03    12.250        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    7.2729        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    22.467        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10680E-03    4.3343        .49852E-01   -1.5707    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    2.4546        .24174E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     13.402        17.652        .43766E-05   -1.4976    
  11  Prefactor     .10006E-03    40.898        .81508E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    46.012        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     9.1401        9.2850        .53027E-05   -1.5103    
  14  norm          .10000E-03    1.2672        .17231E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10001E-03    8.8673        .57658E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          2.2825        2.8435        .57211E-05   -1.5406    
  17  Prefactor     41.964        31.576        .12376E-04   -1.4411    
  18  Normalizat    1.2860        .23642        .49691E-04   -.83985    
  19  Prefactor     .89781        .19072        .47888E-04   -.96218    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.19664e-09
Minuit parameter uncertainties:
  1  0.000416038
  2  7.80828
  3  0.000475594
  4  8.99241
  5  1.90057e-05
  6  2.67501e-06
  7  6.60424e-05
  8  0.0108565
  9  1.21498e-05
  10  17.6588
  11  0.00314472
  12  0.000334883
  13  9.28649
  14  1.06164e-05
  15  0.000590035
  16  2.84369
  17  31.5888
  18  0.236615
  19  0.190858
Done.

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

Extracting fit parameters...

4FGL J1357.1+1921
   Spectrum: PowerLaw
267    Prefactor:  1.001e-04  3.145e-03  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.978e-01  1.909e-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.286e+00  2.366e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 209.290 19.361
Photon Flux Upper Limit: 1.15e-07 ph cm-2 s-1
Energy Flux Upper Limit: 9.06e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/62840/likelihoodResults_421286401_421545601_4FGL_J1357.1+1921_daily_bin702.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) = 6291.14640986
delta logL = -0.000116647062896

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6291.14629284
delta logL = 3.69764165953e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .12368E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.8658       1.0000          .0000       10.000    
     3 'Normalizat'    1.2861       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .89773       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=   6289.362     FROM MIGRAD    STATUS=CONVERGED    211 CALLS      380 TOTAL
                     EDM=   .22E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .18835E-02    .46747E-01    .58007E-03** at limit **
   2  Index        10.0000        5.3521        .50000    ** at limit **
   3  Normalizat    1.1815        .11166        .58145E-01    .24333E-05
   4  Prefactor     .95507        .90549E-01    .44976E-01   -.40393E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.00188349
  Index      = 10
  Normalizat = 1.18146
  Prefactor  = 0.955073
 **********
 **   18 **HESSE 
 **********

 FCN=   6289.362     FROM HESSE     STATUS=OK            37 CALLS      417 TOTAL
                     EDM=   .47E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .18835E-02    .17878E-02    .23906E-04   -1.5700    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index        10.0000        1.5325        .37771        1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Normalizat    1.1815        .23649        .25715E-03   -.87178    
   4  Prefactor     .95507        .19300        .23281E-03   -.94242    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.68166e-10
Minuit parameter uncertainties:
  1  0.00178777
  2  1.10183e-05
  3  0.236707
  4  0.193136
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/62840': 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) = 6289.36189282
delta logL = 1.78440038382

Extracting fit parameters...

4FGL J1357.1+1921
   Spectrum: PowerLaw
267    Prefactor:  1.883e-03  1.788e-03  1.000e-04  1.000e+04 ( 1.000e-12)
268        Index:  1.000e+01  1.102e-05  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.551e-01  1.931e-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.181e+00  2.367e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 3.72
Ra Dec: 209.290 19.361
Photon Index (Free Index): 10.00 +/- 0.00
Photon Flux (Free Index): 9.68e-08 +/- 8.90e-08
Energy Flux (Free Index): 1.08e-05 +/- 1.00e-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/62840/cmap_HighResolution_421286401_421545601_4FGL_J1357.1+1921_daily_bin702.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='9.06e-03', comment='SUCCESS', energy_flux2='1.08e-05', dlogl='1.78e+00', photon_flux2='9.68e-08', job_status='DONE', time_completed='2021-09-08 18:00:34.328105', photon_index_error2='0.00', photon_index2='10.00', ts='-0.00', fit_tolerance='1e-08', GAL='0.90', photon_index_error='0.00', photon_flux_upper_limit='1.15e-07', energy_flux_error2='1.00e-05', EG='1.29', time_epoch_completed='1631149234.33', return_code='0', job_id='62840', GAL2='0.96', EG2='1.18', return_code2='0', photon_flux_error2='8.90e-08', ts2='3.72', photon_index='2.76' WHERE bin_id='702' AND source_name='4FGL J1357.1+1921' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  8 18:00:34 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0104>
Subject: Job 62840: <4FGL_J1357.1+1921_daily_bin702> in cluster <slac> Done

Job <4FGL_J1357.1+1921_daily_bin702> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Wed Sep  8 17:50:34 2021
Job was executed on host(s) <bullet0104>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep  8 17:50:36 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:36 2021
Terminated at Wed Sep  8 18:00:35 2021
Results reported at Wed Sep  8 18:00:35 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1357.1+1921_daily_bin702 209.29 19.3608 421286401 421545601 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 :                                   582.04 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             337.47 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   598 sec.
    Turnaround time :                            601 sec.

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

