/nfs/farm/g/glast/g/LCRepository/bin/miniconda2/envs/fermitools_v1.0.5/lib/python2.7/site-packages/matplotlib/font_manager.py:281: UserWarning: Matplotlib is building the font cache using fc-list. This may take a moment.
  'Matplotlib is building the font cache using fc-list. '
/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 49 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 = 7664
number of fields = 27
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J1357.1+1921_daily_bin393
RA = 209.29, Dec = 19.3608
tmin = 341193601, tmax = 341452801
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='61370', job_status='RUN', time_executed='2021-09-08 17:47:03.593410', time_epoch_executed='1631148423.59' WHERE source_name='4FGL J1357.1+1921' and cadence='daily' and bin_id='393'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/61370

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/61370/ft1_4FGL_J1357.1+1921_daily_bin393.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/61370/ft2_4FGL_J1357.1+1921_daily_bin393.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/61370/ft1_4FGL_J1357.1+1921_daily_bin393.fits outfile=/scratch/kocevski/61370/ft1_filteredMKT_4FGL_J1357.1+1921_daily_bin393.fits ra=209.29 dec=19.3608 rad=12.0 tmin=341193601.0 tmax=341452801.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.41
user 3.19
sys 0.20

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/61370/ft1_filtered_4FGL_J1357.1+1921_daily_bin393.fits" evtable="EVENTS" scfile=/scratch/kocevski/61370/ft2_4FGL_J1357.1+1921_daily_bin393.fits sctable="SC_DATA" outfile=/scratch/kocevski/61370/ltcube_341193601_341452801_4FGL_J1357.1+1921_daily_bin393.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/61370/ft2_4FGL_J1357.1+1921_daily_bin393.fits
.....................!
real 11.79
user 11.45
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/61370/ft1_filtered_4FGL_J1357.1+1921_daily_bin393.fits evtable="EVENTS" scfile=/scratch/kocevski/61370/ft2_4FGL_J1357.1+1921_daily_bin393.fits sctable="SC_DATA" expcube=/scratch/kocevski/61370/ltcube_341193601_341452801_4FGL_J1357.1+1921_daily_bin393.fits outfile=/scratch/kocevski/61370/expmap_341193601_341452801_4FGL_J1357.1+1921_daily_bin393.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/61370/ltcube_341193601_341452801_4FGL_J1357.1+1921_daily_bin393.fits
.....................!
real 191.05
user 186.37
sys 4.20

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/61370/ft1_filtered_4FGL_J1357.1+1921_daily_bin393.fits scfile=/scratch/kocevski/61370/ft2_4FGL_J1357.1+1921_daily_bin393.fits outfile=/scratch/kocevski/61370/cmap_341193601_341452801_4FGL_J1357.1+1921_daily_bin393.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/61370/ft1_filtered_4FGL_J1357.1+1921_daily_bin393.fits scfile=/scratch/kocevski/61370/ft2_4FGL_J1357.1+1921_daily_bin393.fits outfile=/scratch/kocevski/61370/cmap_HighResolution_341193601_341452801_4FGL_J1357.1+1921_daily_bin393.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/61370/ft1_filtered_4FGL_J1357.1+1921_daily_bin393.fits evtable="EVENTS" scfile=/scratch/kocevski/61370/ft2_4FGL_J1357.1+1921_daily_bin393.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/61370/Model_4FGL_J1357.1+1921_daily_bin393.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/61370/ft1_filtered_4FGL_J1357.1+1921_daily_bin393.fits.....................!
real 45.21
user 43.84
sys 1.19

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    13.810       1.0000         .10000E-03   10000.    
     2 'norm      '    13.013       1.0000         .10000E-03   10000.    
     3 'Prefactor '    8.6605       1.0000         .10000E-03   10000.    
     4 'norm      '    .10021E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    24.582       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .17037E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    2.7246       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10042E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    9.7943       1.0000         .10000E-03   10000.    
    12 'Prefactor '    15.687       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    17.472       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .92280       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'Normalizat'    1.4200       1.0000         .10000E-01   10.000    
    19 'Prefactor '    .71041       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=   5569.590     FROM MIGRAD    STATUS=CONVERGED    377 CALLS     1593 TOTAL
                     EDM=   .16E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          13.811        14.800       -.50464E-06    .36753E-04
   2  norm          13.014        7.4892        .46483E-08   -.90570E-04
   3  Prefactor     8.6588        27.528       -.10918E-05   -.39103E-05
   4  norm          .10000E-03    4.2001        .94087E-07** at limit **
   5  Prefactor     24.582        19.364       -.66721E-07   -.97947E-05
   6  Prefactor     .10000E-03    8.2149        .63559E-06** at limit **
   7  Prefactor     .10000E-03    108.17       -.12953E-05** at limit **
   8  Prefactor     .10000E-03    1.5049       -.61813E-07** at limit **
   9  Prefactor     2.7223        4.9811       -.60487E-05    .21261E-03
  10  Prefactor     .10000E-03    11.873        .27907E-05** at limit **
  11  Prefactor     9.7964        12.523       -.28697E-05    .13608E-03
  12  Prefactor     15.690        24.172        .15932E-06   -.17133E-04
  13  Prefactor     .10000E-03    3.6551        .18831E-07** at limit **
  14  norm          17.473        4.5081       -.67651E-06    .67586E-03
  15  Prefactor     .10000E-03    1.1595       -.66541E-07** at limit **
  16  norm          .92331        1.7292       -.11782E-06   -.65589E-03
  17  Prefactor     .10000E-03    10.944       -.30520E-05** at limit **
  18  Normalizat    1.4199        .19585        .85261E-06    .26768E-04
  19  Prefactor     .71037        .16656        .17282E-05    .14441E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 13.8105
  norm       = 13.0144
  Prefactor  = 8.65881
  norm       = 0.0001
  Prefactor  = 24.5817
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 2.72225
  Prefactor  = 0.0001
  Prefactor  = 9.79638
  Prefactor  = 15.6896
  Prefactor  = 0.0001
  norm       = 17.4729
  Prefactor  = 0.0001
  norm       = 0.923305
  Prefactor  = 0.0001
  Normalizat = 1.41989
  Prefactor  = 0.710367
 **********
 **   18 **HESSE 
 **********

 FCN=   5569.590     FROM HESSE     STATUS=OK           266 CALLS     1859 TOTAL
                     EDM=   .25E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          13.811        14.799        .10778E-03   -1.4965    
   2  norm          13.014        7.4997        .11104E-03   -1.4986    
   3  Prefactor     8.6588        27.528        .13621E-03   -1.5119    
   4  norm          .10000E-03    4.2247        .14926E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     24.582        19.396        .80794E-04   -1.4716    
   6  Prefactor     .10000E-03    8.2197        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    108.94        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    1.5136        .89405E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     2.7223        5.1547        .22394E-03   -1.5378    
  10  Prefactor     .10000E-03    11.948        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     9.7964        12.547        .12804E-03   -1.5082    
  12  Prefactor     15.690        24.172        .10112E-03   -1.4916    
  13  Prefactor     .10000E-03    3.7125        .13931E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          17.473        4.4967        .77458E-04   -1.4872    
  15  Prefactor     .10000E-03    1.1613        .78480E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .92331        1.4135        .13044E-02   -1.5516    
  17  Prefactor     .10000E-03    10.924        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Normalizat    1.4199        .23121        .22808E-03   -.80055    
  19  Prefactor     .71037        .19536        .26263E-03   -1.0312    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.5458e-10
Minuit parameter uncertainties:
  1  14.8026
  2  7.50024
  3  27.5679
  4  1.02382e-05
  5  19.4008
  6  3.00962e-05
  7  0.000476731
  8  1.66046e-06
  9  5.15551
  10  6.02736e-05
  11  12.5505
  12  24.1866
  13  9.67587e-06
  14  4.4968
  15  6.37339e-08
  16  1.41355
  17  0.000118458
  18  0.231376
  19  0.19555
Done.

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

Extracting fit parameters...

4FGL J1357.1+1921
   Spectrum: PowerLaw
267    Prefactor:  9.796e+00  1.255e+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.104e-01  1.955e-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.420e+00  2.314e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/61370/likelihoodResults_341193601_341452801_4FGL_J1357.1+1921_daily_bin393.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) = 5569.5028923
delta logL = 0.0871518290032

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5569.49451994
delta logL = 0.0955241937036

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    12.522       1.0000         .10000E-03   10000.    
     2 'Index     '    2.3402       1.0000          .0000       10.000    
     3 'Normalizat'    1.4323       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .69996       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=   5569.495     FROM MIGRAD    STATUS=CONVERGED     89 CALLS      302 TOTAL
                     EDM=   .27E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     12.525        14.845        .11320E-03   -.29426E-04
   2  Index         2.3405        .83685        .11002E-01    .21400E-05
   3  Normalizat    1.4324        .22893        .22724E-03    .33850E-04
   4  Prefactor     .70010        .19363        .26432E-03   -.39741E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 12.5248
  Index      = 2.34055
  Normalizat = 1.43239
  Prefactor  = 0.700101
 **********
 **   18 **HESSE 
 **********

 FCN=   5569.495     FROM HESSE     STATUS=OK            25 CALLS      327 TOTAL
                     EDM=   .27E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     12.525        14.818        .45280E-05   -1.5000    
   2  Index         2.3405        .83550        .44008E-03   -.56083    
   3  Normalizat    1.4324        .22913        .45448E-04   -.79696    
   4  Prefactor     .70010        .19372        .10573E-04   -1.0352    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.68751e-11
Minuit parameter uncertainties:
  1  14.8223
  2  0.84102
  3  0.229298
  4  0.193903
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/61370': 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) = 5569.49451784
delta logL = 0.0955262878915

Extracting fit parameters...

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

GAL_V02
   Spectrum: PowerLaw
506    Prefactor:  7.001e-01  1.939e-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.432e+00  2.293e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.74
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/61370/cmap_HighResolution_341193601_341452801_4FGL_J1357.1+1921_daily_bin393.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.11e-02', job_status='DONE', photon_flux_upper_limit='1.41e-07', time_completed='2021-09-08 17:56:15.298794', job_id='61370', GAL2='0.70', fit_tolerance='1e-08', EG2='1.43', EG='1.42', time_epoch_completed='1631148975.3', return_code2='0', ts='0.74', comment='SUCCESS', return_code='0', GAL='0.71', dlogl='9.55e-02', ts2='0.92', photon_index_error='0.00', photon_index='2.76' WHERE bin_id='393' AND source_name='4FGL J1357.1+1921' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  8 17:56:15 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0244>
Subject: Job 61370: <4FGL_J1357.1+1921_daily_bin393> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1357.1+1921_daily_bin393 209.29 19.3608 341193601 341452801 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 :                                   501.29 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             271.00 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   614 sec.
    Turnaround time :                            616 sec.

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

