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


Performing analysis on: 4FGL_J1357.1+1921_daily_bin554
RA = 209.29, Dec = 19.3608
tmin = 382924801, tmax = 383184001
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='62622', job_status='RUN', time_executed='2021-09-08 17:53:26.413387', time_epoch_executed='1631148806.41' WHERE source_name='4FGL J1357.1+1921' and cadence='daily' and bin_id='554'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/62622

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/62622/ft1_4FGL_J1357.1+1921_daily_bin554.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/62622/ft2_4FGL_J1357.1+1921_daily_bin554.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/62622/ft1_4FGL_J1357.1+1921_daily_bin554.fits outfile=/scratch/kocevski/62622/ft1_filteredMKT_4FGL_J1357.1+1921_daily_bin554.fits ra=209.29 dec=19.3608 rad=12.0 tmin=382924801.0 tmax=383184001.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 4.46
user 4.20
sys 0.24

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/62622/ft2_4FGL_J1357.1+1921_daily_bin554.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/62622/ft1_filteredMKT_4FGL_J1357.1+1921_daily_bin554.fits evtable="EVENTS" outfile="/scratch/kocevski/62622/ft1_filtered_4FGL_J1357.1+1921_daily_bin554.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.50
user 0.32
sys 0.17

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/62622/ft1_filtered_4FGL_J1357.1+1921_daily_bin554.fits" evtable="EVENTS" scfile=/scratch/kocevski/62622/ft2_4FGL_J1357.1+1921_daily_bin554.fits sctable="SC_DATA" outfile=/scratch/kocevski/62622/ltcube_382924801_383184001_4FGL_J1357.1+1921_daily_bin554.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/62622/ft2_4FGL_J1357.1+1921_daily_bin554.fits
.....................!
real 12.04
user 11.63
sys 0.35

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/62622/ft1_filtered_4FGL_J1357.1+1921_daily_bin554.fits evtable="EVENTS" scfile=/scratch/kocevski/62622/ft2_4FGL_J1357.1+1921_daily_bin554.fits sctable="SC_DATA" expcube=/scratch/kocevski/62622/ltcube_382924801_383184001_4FGL_J1357.1+1921_daily_bin554.fits outfile=/scratch/kocevski/62622/expmap_382924801_383184001_4FGL_J1357.1+1921_daily_bin554.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/62622/ltcube_382924801_383184001_4FGL_J1357.1+1921_daily_bin554.fits
.....................!
real 191.65
user 186.03
sys 5.24

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/62622/ft1_filtered_4FGL_J1357.1+1921_daily_bin554.fits scfile=/scratch/kocevski/62622/ft2_4FGL_J1357.1+1921_daily_bin554.fits outfile=/scratch/kocevski/62622/cmap_382924801_383184001_4FGL_J1357.1+1921_daily_bin554.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.54
user 0.36
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/62622/ft1_filtered_4FGL_J1357.1+1921_daily_bin554.fits scfile=/scratch/kocevski/62622/ft2_4FGL_J1357.1+1921_daily_bin554.fits outfile=/scratch/kocevski/62622/cmap_HighResolution_382924801_383184001_4FGL_J1357.1+1921_daily_bin554.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.39
sys 0.14

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10182E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    18.287       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10191E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    20.348       1.0000         .10000E-03   10000.    
     5 'Prefactor '    16.024       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    2.2484       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .38790       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10110E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    1.1304       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .21357E-02   1.0000         .10000E-03   10000.    
    13 'Prefactor '    2.5841       1.0000         .10000E-03   10000.    
    14 'norm      '    2.1258       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .15925E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    1.4399       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
    18 'Normalizat'    1.1624       1.0000         .10000E-01   10.000    
    19 'Prefactor '    1.1347       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.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   6576.026     FROM MIGRAD    STATUS=FAILED       706 CALLS     2246 TOTAL
                     EDM=   .27E-07    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    40.395        .18142E-02** at limit **
   2  norm          18.286        10.563        .93659E-04    .57050E-05
   3  Prefactor     .10000E-03    101.20        .18142E-02** at limit **
   4  norm          20.346        14.313        .88792E-04   -.18950E-04
   5  Prefactor     16.021        20.205        .10005E-03   -.10681E-04
   6  Prefactor     .10000E-03    9.1343        .18142E-02** at limit **
   7  Prefactor     .10000E-03    25.122        .18142E-02** at limit **
   8  Prefactor     2.2479        4.3900        .22620E-03    .29332E-04
   9  Prefactor     .38059        9.5101        .25379E-02    .27536E-03
  10  Prefactor     .10000E-03    22.007        .36285E-03** at limit **
  11  Prefactor     1.1293        38.410        .43947E-02    .12998E-02
  12  Prefactor     .10000E-03    203.09        .66448E-02** at limit **
  13  Prefactor     2.5960        6.4404        .12693E-02    .43270E-04
  14  norm          2.1256        1.8519        .99829E-04   -.92244E-05
  15  Prefactor     .10000E-03    15.641        .30762E-02** at limit **
  16  norm          1.4397        2.1211        .13967E-03   -.39071E-05
  17  Prefactor     .10000E-03    9.8169        .18142E-02** at limit **
  18  Normalizat    1.1624        .23509        .26384E-03   -.10945E-04
  19  Prefactor     1.1347        .19592        .23095E-03   -.35935E-05
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   6576.026     FROM SIMPLEX   STATUS=UNCHANGED   1003 CALLS     3249 TOTAL
                     EDM=   .19E-04    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    40.395        .98801E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          18.286        10.563        .21034E-06   -1.4852    
   3  Prefactor     .10000E-03    101.20        .75324E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          20.346        14.313        .20998E-06   -1.4806    
   5  Prefactor     16.021        20.205        .21135E-06   -1.4907    
   6  Prefactor     .10000E-03    9.1343        .44573E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    25.122        .29432E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     2.2479        4.3900        .21894E-06   -1.5408    
   9  Prefactor     .38059        9.5101        .22285E-06   -1.5585    
  10  Prefactor     .10000E-03    22.007        .68092E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     1.1293        38.410        .22560E-06   -1.5495    
  12  Prefactor     .10000E-03    203.09        .14183E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     2.5960        6.4404        .21787E-06   -1.5386    
  14  norm          2.1256        1.8519        .21867E-06   -1.5416    
  15  Prefactor     .10000E-03    15.641        .28144E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          1.4397        2.1211        .21950E-06   -1.5468    
  17  Prefactor     .10000E-03    9.8169        .49348E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Normalizat    1.1624        .23509        .12398E-06   -.87773    
  19  Prefactor     1.1347        .19592        .12510E-06   -.88364    
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   6576.026     FROM MIGRAD    STATUS=CONVERGED    261 CALLS     3510 TOTAL
                     EDM=   .22E-12    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    40.434        .36285E-03** at limit **
   2  norm          18.286        10.562        .37464E-05    .24277E-06
   3  Prefactor     .10000E-03    101.24        .36285E-03** at limit **
   4  norm          20.346        14.313        .35517E-05    .38411E-06
   5  Prefactor     16.021        20.201        .40022E-05    .11362E-06
   6  Prefactor     .10000E-03    9.1347        .36285E-03** at limit **
   7  Prefactor     .10000E-03    25.123        .36285E-03** at limit **
   8  Prefactor     2.2479        4.3883        .45240E-04    .12565E-05
   9  Prefactor     .38055        9.5095        .10151E-03    .67195E-06
  10  Prefactor     .10000E-03    22.008        .72569E-04** at limit **
  11  Prefactor     1.1293        37.970        .87894E-03    .21471E-05
  12  Prefactor     .10000E-03    211.35        .26579E-02** at limit **
  13  Prefactor     2.5959        6.4329        .50772E-04    .58218E-05
  14  norm          2.1256        1.8517        .39932E-05    .56941E-06
  15  Prefactor     .10000E-03    15.873        .61524E-03** at limit **
  16  norm          1.4397        2.1207        .55867E-05    .40699E-05
  17  Prefactor     .10000E-03    9.8171        .36285E-03** at limit **
  18  Normalizat    1.1624        .23455        .10554E-04    .10557E-04
  19  Prefactor     1.1347        .19597        .92380E-05    .13291E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  norm       = 18.2864
  Prefactor  = 0.0001
  norm       = 20.3457
  Prefactor  = 16.0213
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 2.24794
  Prefactor  = 0.380551
  Prefactor  = 0.0001
  Prefactor  = 1.12929
  Prefactor  = 0.0001
  Prefactor  = 2.59595
  norm       = 2.12563
  Prefactor  = 0.0001
  norm       = 1.43971
  Prefactor  = 0.0001
  Normalizat = 1.16239
  Prefactor  = 1.13474
 **********
 **   18 **HESSE 
 **********

 FCN=   6576.026     FROM HESSE     STATUS=OK           250 CALLS     3760 TOTAL
                     EDM=   .21E-12    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    40.436        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          18.286        10.562        .37464E-05   -1.4852    
   3  Prefactor     .10000E-03    101.24        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          20.346        14.313        .35517E-05   -1.4806    
   5  Prefactor     16.021        20.199        .40022E-05   -1.4907    
   6  Prefactor     .10000E-03    9.1347        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    25.124        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     2.2479        4.3882        .90479E-05   -1.5408    
   9  Prefactor     .38055        9.5083        .40606E-05   -1.5585    
  10  Prefactor     .10000E-03    22.009        .14514E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     1.1293        37.809        .35157E-04   -1.5495    
  12  Prefactor     .10000E-03    212.94        .53159E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     2.5959        6.4328        .20309E-05   -1.5386    
  14  norm          2.1256        1.8515        .79863E-06   -1.5416    
  15  Prefactor     .10000E-03    15.882        .12305E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          1.4397        2.1206        .11173E-05   -1.5468    
  17  Prefactor     .10000E-03    9.8171        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Normalizat    1.1624        .23471        .21107E-05   -.87773    
  19  Prefactor     1.1347        .19622        .18476E-05   -.88364    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.08331e-13
Minuit parameter uncertainties:
  1  3.78854e-07
  2  10.5632
  3  1.7315e-06
  4  14.3158
  5  20.2076
  6  7.519e-08
  7  2.59463e-07
  8  4.3888
  9  3.80458
  10  1.02353e-07
  11  13.077
  12  1.21438e-06
  13  6.43453
  14  1.85158
  15  3.9985e-06
  16  2.12073
  17  1.91953e-08
  18  0.234918
  19  0.196345
Done.

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

Extracting fit parameters...

4FGL J1357.1+1921
   Spectrum: PowerLaw
267    Prefactor:  1.129e+00  1.308e+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:  1.135e+00  1.963e-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.162e+00  2.349e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/62622/likelihoodResults_382924801_383184001_4FGL_J1357.1+1921_daily_bin554.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) = 6575.84789311
delta logL = 0.178091569248

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6575.84711365
delta logL = 0.17887103065

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .86987       1.0000         .10000E-03   10000.    
     2 'Index     '    4.8882       1.0000          .0000       10.000    
     3 'Normalizat'    1.1189       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1558       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=   6575.847     FROM MIGRAD    STATUS=CONVERGED     59 CALLS      242 TOTAL
                     EDM=   .72E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .86322        25.415        .12698E-01    .75782E-03
   2  Index         4.8934        7.1863        .22754        .45849E-04
   3  Normalizat    1.1189        .34711E-01    .60672E-01   -.80952E-04
   4  Prefactor     1.1558        .30217E-01    .51820E-01   -.10898E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.863223
  Index      = 4.89338
  Normalizat = 1.11889
  Prefactor  = 1.15582
 **********
 **   18 **HESSE 
 **********

 FCN=   6575.847     FROM HESSE     STATUS=NOT POSDEF    31 CALLS      273 TOTAL
                     EDM=   .18E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .86322        106.29        .11586E-03   -1.5522    
   2  Index         4.8934        5.5154        .12510E-01   -.21325E-01
   3  Normalizat    1.1189        .17499        .26834E-03   -.89148    
   4  Prefactor     1.1558        .15063        .22910E-03   -.87702    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.7704e-09
Minuit parameter uncertainties:
  1  19.191
  2  16.5271
  3  0.17508
  4  0.150687
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/62622': 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) = 6575.84711277
delta logL = 0.178871908741

Extracting fit parameters...

4FGL J1357.1+1921
   Spectrum: PowerLaw
267    Prefactor:  8.632e-01  1.919e+01  1.000e-04  1.000e+04 ( 1.000e-12)
268        Index:  4.893e+00  1.653e+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:  1.156e+00  1.507e-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.119e+00  1.751e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.01
Ra Dec: 209.290 19.361

Creating a high resolution counts map...
INFO: Auto-setting vmin to -2.500e-04 [aplpy.core]
INFO: Auto-setting vmax to  2.775e-03 [aplpy.core]
Saving /scratch/kocevski/62622/cmap_HighResolution_382924801_383184001_4FGL_J1357.1+1921_daily_bin554.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='9.35e-03', job_status='DONE', photon_flux_upper_limit='1.18e-07', time_completed='2021-09-08 18:04:43.149502', job_id='62622', GAL2='1.16', fit_tolerance='1e-08', EG2='1.12', EG='1.16', time_epoch_completed='1631149483.15', return_code2='102', ts='0.01', comment='SUCCESS', return_code='0', GAL='1.13', dlogl='1.79e-01', ts2='0.40', photon_index_error='0.00', photon_index='2.76' WHERE bin_id='554' AND source_name='4FGL J1357.1+1921' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  8 18:04:43 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0284>
Subject: Job 62622: <4FGL_J1357.1+1921_daily_bin554> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1357.1+1921_daily_bin554 209.29 19.3608 382924801 383184001 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 :                                   673.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             324.44 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   864 sec.
    Turnaround time :                            866 sec.

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

