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


Performing analysis on: 4FGL_J1357.1+1921_daily_bin500
RA = 209.29, Dec = 19.3608
tmin = 368928001, tmax = 369187201
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='61532', job_status='RUN', time_executed='2021-09-08 17:50:03.467856', time_epoch_executed='1631148603.47' WHERE source_name='4FGL J1357.1+1921' and cadence='daily' and bin_id='500'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/61532

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/61532/ft1_4FGL_J1357.1+1921_daily_bin500.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/61532/ft2_4FGL_J1357.1+1921_daily_bin500.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/61532/ft1_4FGL_J1357.1+1921_daily_bin500.fits outfile=/scratch/kocevski/61532/ft1_filteredMKT_4FGL_J1357.1+1921_daily_bin500.fits ra=209.29 dec=19.3608 rad=12.0 tmin=368928001.0 tmax=369187201.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.35
user 3.13
sys 0.20

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/61532/ft1_filtered_4FGL_J1357.1+1921_daily_bin500.fits" evtable="EVENTS" scfile=/scratch/kocevski/61532/ft2_4FGL_J1357.1+1921_daily_bin500.fits sctable="SC_DATA" outfile=/scratch/kocevski/61532/ltcube_368928001_369187201_4FGL_J1357.1+1921_daily_bin500.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/61532/ft2_4FGL_J1357.1+1921_daily_bin500.fits
.....................!
real 11.97
user 11.62
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/61532/ft1_filtered_4FGL_J1357.1+1921_daily_bin500.fits evtable="EVENTS" scfile=/scratch/kocevski/61532/ft2_4FGL_J1357.1+1921_daily_bin500.fits sctable="SC_DATA" expcube=/scratch/kocevski/61532/ltcube_368928001_369187201_4FGL_J1357.1+1921_daily_bin500.fits outfile=/scratch/kocevski/61532/expmap_368928001_369187201_4FGL_J1357.1+1921_daily_bin500.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/61532/ltcube_368928001_369187201_4FGL_J1357.1+1921_daily_bin500.fits
.....................!
real 191.11
user 185.77
sys 4.88

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/61532/ft1_filtered_4FGL_J1357.1+1921_daily_bin500.fits scfile=/scratch/kocevski/61532/ft2_4FGL_J1357.1+1921_daily_bin500.fits outfile=/scratch/kocevski/61532/cmap_368928001_369187201_4FGL_J1357.1+1921_daily_bin500.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.52
user 0.36
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/61532/ft1_filtered_4FGL_J1357.1+1921_daily_bin500.fits scfile=/scratch/kocevski/61532/ft2_4FGL_J1357.1+1921_daily_bin500.fits outfile=/scratch/kocevski/61532/cmap_HighResolution_368928001_369187201_4FGL_J1357.1+1921_daily_bin500.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.38
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    12.910       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    9.7796       1.0000         .10000E-03   10000.    
     5 'Prefactor '    11.966       1.0000         .10000E-03   10000.    
     6 'Prefactor '    6.4195       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10862E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    8.0142       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 '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    6.1718       1.0000         .10000E-03   10000.    
    14 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    12.493       1.0000         .10000E-03   10000.    
    16 'norm      '    .72080       1.0000         .10000E-03   10000.    
    17 'Prefactor '    18.173       1.0000         .10000E-03   10000.    
    18 'Normalizat'    .90632       1.0000         .10000E-01   10.000    
    19 'Prefactor '    1.1038       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=   5774.341     FROM MIGRAD    STATUS=CONVERGED    386 CALLS     1849 TOTAL
                     EDM=   .62E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    9.2281        .90712E-02** at limit **
   2  norm          12.910        8.4176        .27871E-02   -.33289E-03
   3  Prefactor     .10000E-03    44.457        .90712E-02** at limit **
   4  norm          9.7802        8.9065        .32035E-02   -.20171E-03
   5  Prefactor     11.967        16.747        .28952E-02    .59134E-04
   6  Prefactor     6.4209        14.632        .39603E-02    .11549E-02
   7  Prefactor     .10001E-03    125.42        .90712E-02** at limit **
   8  Prefactor     8.0147        4.3241        .35408E-02    .30519E-03
   9  Prefactor     .10000E-03    1.9968        .90712E-02** at limit **
  10  Prefactor     .10000E-03    16.790        .90712E-02** at limit **
  11  Prefactor     .10000E-03    3.9312        .90712E-02** at limit **
  12  Prefactor     .10000E-03    27.537        .90712E-02** at limit **
  13  Prefactor     6.1722        7.2578        .40399E-02    .83956E-03
  14  norm          .10000E-03    .89361        .90712E-02** at limit **
  15  Prefactor     12.495        7.7428        .28332E-02   -.80177E-03
  16  norm          .72018        1.8338        .33046E-01    .61556E-03
  17  Prefactor     18.177        26.980        .23488E-02   -.15540E-03
  18  Normalizat    .90626        .18796        .44982E-01   -.21914E-04
  19  Prefactor     1.1038        .16420        .37443E-01   -.10128E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  norm       = 12.9099
  Prefactor  = 0.0001
  norm       = 9.7802
  Prefactor  = 11.9673
  Prefactor  = 6.42087
  Prefactor  = 0.000100007
  Prefactor  = 8.01468
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 6.17224
  norm       = 0.0001
  Prefactor  = 12.4953
  norm       = 0.720183
  Prefactor  = 18.177
  Normalizat = 0.906258
  Prefactor  = 1.10377
 **********
 **   18 **HESSE 
 **********

 FCN=   5774.341     FROM HESSE     STATUS=OK           268 CALLS     2117 TOTAL
                     EDM=   .14E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    9.2500        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          12.910        8.4256        .11148E-03   -1.4989    
   3  Prefactor     .10000E-03    44.858        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          9.7802        8.9129        .12814E-03   -1.5082    
   5  Prefactor     11.967        16.746        .11581E-03   -1.5016    
   6  Prefactor     6.4209        14.619        .79205E-03   -1.5201    
   7  Prefactor     .10001E-03    126.38        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     8.0147        4.3313        .11226E-03   -1.5142    
   9  Prefactor     .10000E-03    2.0105        .10485E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    16.991        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    3.9456        .14712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    27.819        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     6.1722        7.2437        .16160E-03   -1.5211    
  14  norm          .10000E-03    .90236        .70135E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     12.495        7.7059        .11333E-03   -1.5001    
  16  norm          .72018        1.6139        .15703E-02   -1.5538    
  17  Prefactor     18.177        26.955        .93952E-04   -1.4855    
  18  Normalizat    .90626        .21983        .26195E-03   -.96241    
  19  Prefactor     1.1038        .19210        .21162E-03   -.89346    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.42171e-09
Minuit parameter uncertainties:
  1  0.000101114
  2  8.42639
  3  0.000222009
  4  8.91408
  5  16.7521
  6  14.6267
  7  0.00190873
  8  4.33148
  9  4.60548e-05
  10  2.56773e-05
  11  3.09303e-05
  12  0.000191325
  13  7.24471
  14  1.11028e-08
  15  7.70648
  16  1.61404
  17  26.9726
  18  0.22005
  19  0.192221
Done.

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

Extracting fit parameters...

4FGL J1357.1+1921
   Spectrum: PowerLaw
267    Prefactor:  1.000e-04  3.093e-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.104e+00  1.922e-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.063e-01  2.200e-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: 6.56e-08 ph cm-2 s-1
Energy Flux Upper Limit: 5.18e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/61532/likelihoodResults_368928001_369187201_4FGL_J1357.1+1921_daily_bin500.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) = 5774.34251388
delta logL = -0.00120602107563

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5774.34130782
delta logL = 3.76194293494e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.7467       1.0000          .0000       10.000    
     3 'Normalizat'    .90626       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1038       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=   5774.341     FROM MIGRAD    STATUS=CONVERGED     96 CALLS      244 TOTAL
                     EDM=   .54E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    26.790        .14784E-01** at limit **
   2  Index         2.3679        7.3405        .50000        .38945E-06
   3  Normalizat    .90626        .11284E-01    .26195E-03    .11197E-03
   4  Prefactor     1.1038        .10010E-01    .21162E-03    .14930E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 2.3679
  Normalizat = 0.906257
  Prefactor  = 1.10377
 **********
 **   18 **HESSE 
 **********

 FCN=   5774.341     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      273 TOTAL
                     EDM=   .52E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    260.01        .15420E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.3679        5.9505        .50000       -.55438    
   3  Normalizat    .90626        .37561E-01    .10478E-04   -.96241    
   4  Prefactor     1.1038        .33321E-01    .42324E-04   -.89346    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 5.20429e-09
Minuit parameter uncertainties:
  1  0.000159012
  2  986.559
  3  0.0375619
  4  0.033322
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/61532': 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) = 5774.3413067
delta logL = 1.15862349048e-06

Extracting fit parameters...

4FGL J1357.1+1921
   Spectrum: PowerLaw
267    Prefactor:  1.000e-04  1.590e-04  1.000e-04  1.000e+04 ( 1.000e-12)
268        Index:  2.368e+00  9.866e+02  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.104e+00  3.332e-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:  9.063e-01  3.756e-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/61532/cmap_HighResolution_368928001_369187201_4FGL_J1357.1+1921_daily_bin500.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.18e-03', job_status='DONE', photon_flux_upper_limit='6.56e-08', time_completed='2021-09-08 17:58:56.289564', job_id='61532', GAL2='1.10', fit_tolerance='1e-08', EG2='0.91', EG='0.91', time_epoch_completed='1631149136.29', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.10', dlogl='1.16e-06', ts2='-0.00', photon_index_error='0.00', photon_index='2.76' WHERE bin_id='500' AND source_name='4FGL J1357.1+1921' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  8 17:58:56 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0185>
Subject: Job 61532: <4FGL_J1357.1+1921_daily_bin500> in cluster <slac> Done

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

Your job looked like:

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

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

