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


Performing analysis on: 4FGL_J1357.1+1921_daily_bin1383
RA = 209.29, Dec = 19.3608
tmin = 597801601, tmax = 598060801
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='66290', job_status='RUN', time_executed='2021-09-08 18:01:08.320801', time_epoch_executed='1631149268.32' WHERE source_name='4FGL J1357.1+1921' and cadence='daily' and bin_id='1383'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/66290

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/66290/ft1_4FGL_J1357.1+1921_daily_bin1383.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/66290/ft2_4FGL_J1357.1+1921_daily_bin1383.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/66290/ft1_4FGL_J1357.1+1921_daily_bin1383.fits outfile=/scratch/kocevski/66290/ft1_filteredMKT_4FGL_J1357.1+1921_daily_bin1383.fits ra=209.29 dec=19.3608 rad=12.0 tmin=597801601.0 tmax=598060801.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.69
user 3.36
sys 0.19

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/66290/ft1_filtered_4FGL_J1357.1+1921_daily_bin1383.fits" evtable="EVENTS" scfile=/scratch/kocevski/66290/ft2_4FGL_J1357.1+1921_daily_bin1383.fits sctable="SC_DATA" outfile=/scratch/kocevski/66290/ltcube_597801601_598060801_4FGL_J1357.1+1921_daily_bin1383.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/66290/ft2_4FGL_J1357.1+1921_daily_bin1383.fits
.....................!
real 16.85
user 16.26
sys 0.45

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/66290/ft1_filtered_4FGL_J1357.1+1921_daily_bin1383.fits evtable="EVENTS" scfile=/scratch/kocevski/66290/ft2_4FGL_J1357.1+1921_daily_bin1383.fits sctable="SC_DATA" expcube=/scratch/kocevski/66290/ltcube_597801601_598060801_4FGL_J1357.1+1921_daily_bin1383.fits outfile=/scratch/kocevski/66290/expmap_597801601_598060801_4FGL_J1357.1+1921_daily_bin1383.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/66290/ltcube_597801601_598060801_4FGL_J1357.1+1921_daily_bin1383.fits
.....................!
real 190.25
user 184.97
sys 4.83

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/66290/ft1_filtered_4FGL_J1357.1+1921_daily_bin1383.fits scfile=/scratch/kocevski/66290/ft2_4FGL_J1357.1+1921_daily_bin1383.fits outfile=/scratch/kocevski/66290/cmap_597801601_598060801_4FGL_J1357.1+1921_daily_bin1383.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.15

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

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    6.4416       1.0000         .10000E-03   10000.    
     2 'norm      '    8.4330       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10130E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .11324E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    10.468       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10074E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    133.15       1.0000         .10000E-03   10000.    
    13 'Prefactor '    3.2377       1.0000         .10000E-03   10000.    
    14 'norm      '    7.0071       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10062E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    4.5729       1.0000         .10000E-03   10000.    
    17 'Prefactor '    37.204       1.0000         .10000E-03   10000.    
    18 'Normalizat'    .98218       1.0000         .10000E-01   10.000    
    19 'Prefactor '    1.1177       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=   5887.866     FROM MIGRAD    STATUS=CONVERGED    384 CALLS     1859 TOTAL
                     EDM=   .12E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          6.4415        18.788       -.58379E-06   -.30569E-04
   2  norm          8.4333        5.9716       -.11587E-06   -.63324E-04
   3  Prefactor     .10000E-03    44.416        .90421E-06** at limit **
   4  norm          .10000E-03    2.3203       -.29863E-08** at limit **
   5  Prefactor     .10000E-03    30.114       -.20011E-06** at limit **
   6  Prefactor     10.458        25.183       -.97506E-05   -.10562E-04
   7  Prefactor     .10000E-03    15.970        .60189E-07** at limit **
   8  Prefactor     .10000E-03    4.3099       -.23204E-07** at limit **
   9  Prefactor     .10000E-03    1.1851       -.49122E-08** at limit **
  10  Prefactor     .10000E-03    7.6441        .39741E-07** at limit **
  11  Prefactor     .10000E-03    7.9988       -.14669E-06** at limit **
  12  Prefactor     133.14        41.139       -.43105E-05    .42357E-05
  13  Prefactor     3.2403        6.8455       -.57176E-07   -.31991E-03
  14  norm          7.0073        2.9707       -.50364E-07    .42739E-04
  15  Prefactor     .10000E-03    4.2078        .94927E-07** at limit **
  16  norm          4.5731        3.6066       -.42804E-07   -.30779E-03
  17  Prefactor     37.199        41.033       -.59676E-05    .73080E-07
  18  Normalizat    .98221        .19548        .22333E-05   -.34882E-04
  19  Prefactor     1.1176        .17030        .18451E-06    .63203E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 6.44147
  norm       = 8.43329
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 10.4583
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 133.142
  Prefactor  = 3.24035
  norm       = 7.00725
  Prefactor  = 0.0001
  norm       = 4.57309
  Prefactor  = 37.1991
  Normalizat = 0.982215
  Prefactor  = 1.11764
 **********
 **   18 **HESSE 
 **********

 FCN=   5887.866     FROM HESSE     STATUS=OK           268 CALLS     2127 TOTAL
                     EDM=   .25E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          6.4415        18.780        .15813E-03   -1.5200    
   2  norm          8.4333        5.9702        .13805E-03   -1.5127    
   3  Prefactor     .10000E-03    44.678        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          .10000E-03    2.3254        .11412E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    30.354        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     10.458        25.291        .12384E-03   -1.5061    
   7  Prefactor     .10000E-03    15.976        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    4.4300        .31088E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    1.1883        .81575E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    7.6950        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    8.1169        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     133.14        40.769        .17449E-03   -1.3395    
  13  Prefactor     3.2403        6.8409        .22511E-03   -1.5348    
  14  norm          7.0073        2.9710        .83630E-04   -1.5178    
  15  Prefactor     .10000E-03    4.2568        .15358E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          4.5731        3.6055        .12294E-03   -1.5280    
  17  Prefactor     37.199        40.912        .65707E-04   -1.4487    
  18  Normalizat    .98221        .22418        .26927E-03   -.93629    
  19  Prefactor     1.1176        .19651        .22489E-03   -.88905    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.53788e-10
Minuit parameter uncertainties:
  1  18.7968
  2  5.9706
  3  7.59361e-05
  4  2.04623e-07
  5  0.000208365
  6  25.3168
  7  7.83398e-06
  8  4.02809e-06
  9  8.6206e-07
  10  7.69169e-06
  11  1.8626e-05
  12  40.7773
  13  6.84252
  14  2.97111
  15  1.98631e-05
  16  3.60569
  17  40.9429
  18  0.224393
  19  0.196642
Done.

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

Extracting fit parameters...

4FGL J1357.1+1921
   Spectrum: PowerLaw
267    Prefactor:  1.000e-04  1.863e-05  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.118e+00  1.966e-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:  9.822e-01  2.244e-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: 7.66e-08 ph cm-2 s-1
Energy Flux Upper Limit: 6.05e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/66290/likelihoodResults_597801601_598060801_4FGL_J1357.1+1921_daily_bin1383.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) = 5887.86695747
delta logL = -0.000587147133956

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5887.86637038
delta logL = -5.15910869581e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10441E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.7952       1.0000          .0000       10.000    
     3 'Normalizat'    .98211       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1178       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=   5887.866     FROM MIGRAD    STATUS=CONVERGED     86 CALLS      236 TOTAL
                     EDM=   .13E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10002E-03    1505.0        .18142E-02** at limit **
   2  Index         2.8384        5.8840        .50000       -.49582E-04
   3  Normalizat    .98222        .85059E-01    .26927E-03   -.11349E-03
   4  Prefactor     1.1176        .75547E-01    .22489E-03   -.26294E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100024
  Index      = 2.83839
  Normalizat = 0.982217
  Prefactor  = 1.11764
 **********
 **   18 **HESSE 
 **********

 FCN=   5887.866     FROM HESSE     STATUS=OK            29 CALLS      265 TOTAL
                     EDM=   .36E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10002E-03    11.156        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.8384        6.4179        .50000       -.44707    
   3  Normalizat    .98222        .21646        .10771E-04   -.93629    
   4  Prefactor     1.1176        .19253        .44977E-04   -.88905    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.6382e-09
Minuit parameter uncertainties:
  1  0.00102726
  2  4.92138
  3  0.216651
  4  0.192654
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/66290': 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) = 5887.86636949
delta logL = 8.35272658151e-07

Extracting fit parameters...

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

GAL_V02
   Spectrum: PowerLaw
506    Prefactor:  1.118e+00  1.927e-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:  9.822e-01  2.167e-01  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/66290/cmap_HighResolution_597801601_598060801_4FGL_J1357.1+1921_daily_bin1383.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.05e-03', job_status='DONE', photon_flux_upper_limit='7.66e-08', time_completed='2021-09-08 18:10:09.803018', job_id='66290', GAL2='1.12', fit_tolerance='1e-08', EG2='0.98', EG='0.98', time_epoch_completed='1631149809.8', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.12', dlogl='8.35e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.76' WHERE bin_id='1383' AND source_name='4FGL J1357.1+1921' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  8 18:10:09 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0206>
Subject: Job 66290: <4FGL_J1357.1+1921_daily_bin1383> in cluster <slac> Done

Job <4FGL_J1357.1+1921_daily_bin1383> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Wed Sep  8 18:00:50 2021
Job was executed on host(s) <bullet0206>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep  8 18:00:52 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Wed Sep  8 18:00:52 2021
Terminated at Wed Sep  8 18:10:12 2021
Results reported at Wed Sep  8 18:10:12 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1357.1+1921_daily_bin1383 209.29 19.3608 597801601 598060801 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 :                                   527.00 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             288.76 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   558 sec.
    Turnaround time :                            562 sec.

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

