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


Performing analysis on: 4FGL_J1357.1+1921_daily_bin367
RA = 209.29, Dec = 19.3608
tmin = 334454401, tmax = 334713601
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='61339', job_status='RUN', time_executed='2021-09-08 17:49:19.660458', time_epoch_executed='1631148559.66' WHERE source_name='4FGL J1357.1+1921' and cadence='daily' and bin_id='367'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/61339

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/61339/ft1_4FGL_J1357.1+1921_daily_bin367.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/61339/ft2_4FGL_J1357.1+1921_daily_bin367.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/61339/ft1_4FGL_J1357.1+1921_daily_bin367.fits outfile=/scratch/kocevski/61339/ft1_filteredMKT_4FGL_J1357.1+1921_daily_bin367.fits ra=209.29 dec=19.3608 rad=12.0 tmin=334454401.0 tmax=334713601.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.47
user 3.24
sys 0.21

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/61339/ft1_filtered_4FGL_J1357.1+1921_daily_bin367.fits" evtable="EVENTS" scfile=/scratch/kocevski/61339/ft2_4FGL_J1357.1+1921_daily_bin367.fits sctable="SC_DATA" outfile=/scratch/kocevski/61339/ltcube_334454401_334713601_4FGL_J1357.1+1921_daily_bin367.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/61339/ft2_4FGL_J1357.1+1921_daily_bin367.fits
.....................!
real 11.84
user 11.48
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/61339/ft1_filtered_4FGL_J1357.1+1921_daily_bin367.fits evtable="EVENTS" scfile=/scratch/kocevski/61339/ft2_4FGL_J1357.1+1921_daily_bin367.fits sctable="SC_DATA" expcube=/scratch/kocevski/61339/ltcube_334454401_334713601_4FGL_J1357.1+1921_daily_bin367.fits outfile=/scratch/kocevski/61339/expmap_334454401_334713601_4FGL_J1357.1+1921_daily_bin367.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/61339/ltcube_334454401_334713601_4FGL_J1357.1+1921_daily_bin367.fits
.....................!
real 191.84
user 186.54
sys 4.98

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/61339/ft1_filtered_4FGL_J1357.1+1921_daily_bin367.fits scfile=/scratch/kocevski/61339/ft2_4FGL_J1357.1+1921_daily_bin367.fits outfile=/scratch/kocevski/61339/cmap_334454401_334713601_4FGL_J1357.1+1921_daily_bin367.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.37
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/61339/ft1_filtered_4FGL_J1357.1+1921_daily_bin367.fits scfile=/scratch/kocevski/61339/ft2_4FGL_J1357.1+1921_daily_bin367.fits outfile=/scratch/kocevski/61339/cmap_HighResolution_334454401_334713601_4FGL_J1357.1+1921_daily_bin367.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.53
user 0.38
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10365E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    3.6809       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    61.218       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    2.3868       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    5.6974       1.0000         .10000E-03   10000.    
    14 'norm      '    9.9879       1.0000         .10000E-03   10000.    
    15 'Prefactor '    4.4880       1.0000         .10000E-03   10000.    
    16 'norm      '    .11675E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10017E-03   1.0000         .10000E-03   10000.    
    18 'Normalizat'    1.2080       1.0000         .10000E-01   10.000    
    19 'Prefactor '    .89442       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=   6209.897     FROM MIGRAD    STATUS=CONVERGED    393 CALLS     1856 TOTAL
                     EDM=   .13E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    24.304       -.63164E-05** at limit **
   2  norm          .10000E-03    2.2027        .37120E-08** at limit **
   3  Prefactor     .10000E-03    10.643       -.10865E-07** at limit **
   4  norm          .10000E-03    6.0410       -.30010E-07** at limit **
   5  Prefactor     3.6793        14.754        .19675E-05   -.44585E-03
   6  Prefactor     .10000E-03    20.573        .25126E-05** at limit **
   7  Prefactor     61.204        75.829       -.86523E-05   -.12088E-03
   8  Prefactor     .10000E-03    2.9571        .11567E-07** at limit **
   9  Prefactor     2.3870        3.4173       -.50496E-07   -.83736E-04
  10  Prefactor     .10000E-03    5.0446        .26754E-07** at limit **
  11  Prefactor     .10000E-03    2.8131       -.57900E-07** at limit **
  12  Prefactor     .10000E-03    35.797        .84291E-05** at limit **
  13  Prefactor     5.6956        8.8037        .43624E-06   -.11617E-02
  14  norm          9.9882        3.5143       -.66016E-06   -.67127E-03
  15  Prefactor     4.4890        5.7126        .11044E-05   -.21597E-02
  16  norm          .10000E-03    1.8765       -.12179E-06** at limit **
  17  Prefactor     .10000E-03    50.035       -.60070E-05** at limit **
  18  Normalizat    1.2079        .18494        .31755E-06   -.10833E-04
  19  Prefactor     .89448        .15529        .30022E-06    .37258E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 0.000100001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 3.67929
  Prefactor  = 0.0001
  Prefactor  = 61.2042
  Prefactor  = 0.0001
  Prefactor  = 2.38702
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100003
  Prefactor  = 5.69557
  norm       = 9.98824
  Prefactor  = 4.48901
  norm       = 0.0001
  Prefactor  = 0.000100002
  Normalizat = 1.20794
  Prefactor  = 0.894484
 **********
 **   18 **HESSE 
 **********

 FCN=   6209.897     FROM HESSE     STATUS=OK           262 CALLS     2118 TOTAL
                     EDM=   .67E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    25.102        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .10000E-03    2.2086        .11420E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    10.648        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          .10000E-03    6.0881        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     3.6793        17.196        .10526E-02   -1.5324    
   6  Prefactor     .10000E-03    20.698        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     61.204        77.464        .51282E-04   -1.4142    
   8  Prefactor     .10000E-03    2.9988        .13229E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     2.3870        3.4024        .16841E-03   -1.5399    
  10  Prefactor     .10000E-03    5.0521        .17285E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    2.8171        .12908E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    36.280        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     5.6956        8.8879        .84142E-03   -1.5231    
  14  norm          9.9882        3.5395        .85230E-04   -1.5076    
  15  Prefactor     4.4890        6.7851        .95028E-03   -1.5284    
  16  norm          .10000E-03    3.4789        .20771E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    50.717        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Normalizat    1.2079        .22276        .24798E-03   -.86358    
  19  Prefactor     .89448        .18577        .23488E-03   -.96334    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.66537e-09
Minuit parameter uncertainties:
  1  0.000356959
  2  1.35694e-06
  3  2.97278e-06
  4  1.00323e-05
  5  15.9155
  6  0.000128271
  7  77.5923
  8  4.45607e-06
  9  3.40269
  10  5.22787e-06
  11  2.62039e-06
  12  0.000625163
  13  8.88992
  14  3.53962
  15  6.78621
  16  7.27059e-06
  17  0.000588991
  18  0.222931
  19  0.185906
Done.

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

Extracting fit parameters...

4FGL J1357.1+1921
   Spectrum: PowerLaw
267    Prefactor:  1.000e-04  2.620e-06  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.945e-01  1.859e-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.208e+00  2.229e-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: 5.72e-08 ph cm-2 s-1
Energy Flux Upper Limit: 4.52e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/61339/likelihoodResults_334454401_334713601_4FGL_J1357.1+1921_daily_bin367.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) = 6209.89913815
delta logL = -0.00167689883165

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6209.89746122
delta logL = 3.43352439813e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.7503       1.0000          .0000       10.000    
     3 'Normalizat'    1.2079       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .89449       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=   6209.897     FROM MIGRAD    STATUS=CONVERGED    102 CALLS      253 TOTAL
                     EDM=   .12E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    31.362        .12936E-01** at limit **
   2  Index         2.4135        8.6946        .50000       -.11014E-05
   3  Normalizat    1.2079        .15337E-01    .24798E-03    .46900E-04
   4  Prefactor     .89448        .12777E-01    .23488E-03    .53822E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 2.41351
  Normalizat = 1.20794
  Prefactor  = 0.894484
 **********
 **   18 **HESSE 
 **********

 FCN=   6209.897     FROM HESSE     STATUS=NOT POSDEF    27 CALLS      280 TOTAL
                     EDM=   .10E-06    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    274.17        .13270E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.4135        5.0732        .50000       -.54369    
   3  Normalizat    1.2079        .50886E-01    .99191E-05   -.86358    
   4  Prefactor     .89448        .42392E-01    .93954E-05   -.96334    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.04517e-07
Minuit parameter uncertainties:
  1  1.62791e-05
  2  1245.39
  3  0.0508884
  4  0.0423936
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/61339': 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) = 6209.89746029
delta logL = 9.63205820881e-07

Extracting fit parameters...

4FGL J1357.1+1921
   Spectrum: PowerLaw
267    Prefactor:  1.000e-04  1.628e-05  1.000e-04  1.000e+04 ( 1.000e-12)
268        Index:  2.414e+00  1.245e+03  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.945e-01  4.239e-02  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.208e+00  5.089e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 209.290 19.361

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/61339/cmap_HighResolution_334454401_334713601_4FGL_J1357.1+1921_daily_bin367.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.52e-03', job_status='DONE', photon_flux_upper_limit='5.72e-08', time_completed='2021-09-08 17:58:40.159985', job_id='61339', GAL2='0.89', fit_tolerance='1e-08', EG2='1.21', EG='1.21', time_epoch_completed='1631149120.16', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.89', dlogl='9.63e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.76' WHERE bin_id='367' AND source_name='4FGL J1357.1+1921' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  8 17:58:40 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0156>
Subject: Job 61339: <4FGL_J1357.1+1921_daily_bin367> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1357.1+1921_daily_bin367 209.29 19.3608 334454401 334713601 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 :                                   528.24 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             281.75 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   763 sec.
    Turnaround time :                            764 sec.

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

