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


Performing analysis on: 4FGL_J1357.1+1921_daily_bin450
RA = 209.29, Dec = 19.3608
tmin = 355968001, tmax = 356227201
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='61453', job_status='RUN', time_executed='2021-09-08 17:49:14.586357', time_epoch_executed='1631148554.59' WHERE source_name='4FGL J1357.1+1921' and cadence='daily' and bin_id='450'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/61453

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/61453/ft1_4FGL_J1357.1+1921_daily_bin450.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/61453/ft2_4FGL_J1357.1+1921_daily_bin450.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/61453/ft1_4FGL_J1357.1+1921_daily_bin450.fits outfile=/scratch/kocevski/61453/ft1_filteredMKT_4FGL_J1357.1+1921_daily_bin450.fits ra=209.29 dec=19.3608 rad=12.0 tmin=355968001.0 tmax=356227201.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.53
user 3.29
sys 0.22

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/61453/ft2_4FGL_J1357.1+1921_daily_bin450.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/61453/ft1_filteredMKT_4FGL_J1357.1+1921_daily_bin450.fits evtable="EVENTS" outfile="/scratch/kocevski/61453/ft1_filtered_4FGL_J1357.1+1921_daily_bin450.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.52
user 0.35
sys 0.16

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/61453/ft1_filtered_4FGL_J1357.1+1921_daily_bin450.fits" evtable="EVENTS" scfile=/scratch/kocevski/61453/ft2_4FGL_J1357.1+1921_daily_bin450.fits sctable="SC_DATA" outfile=/scratch/kocevski/61453/ltcube_355968001_356227201_4FGL_J1357.1+1921_daily_bin450.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/61453/ft2_4FGL_J1357.1+1921_daily_bin450.fits
.....................!
real 12.80
user 12.42
sys 0.36

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/61453/ft1_filtered_4FGL_J1357.1+1921_daily_bin450.fits evtable="EVENTS" scfile=/scratch/kocevski/61453/ft2_4FGL_J1357.1+1921_daily_bin450.fits sctable="SC_DATA" expcube=/scratch/kocevski/61453/ltcube_355968001_356227201_4FGL_J1357.1+1921_daily_bin450.fits outfile=/scratch/kocevski/61453/expmap_355968001_356227201_4FGL_J1357.1+1921_daily_bin450.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/61453/ltcube_355968001_356227201_4FGL_J1357.1+1921_daily_bin450.fits
.....................!
real 189.47
user 184.73
sys 4.43

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/61453/ft1_filtered_4FGL_J1357.1+1921_daily_bin450.fits scfile=/scratch/kocevski/61453/ft2_4FGL_J1357.1+1921_daily_bin450.fits outfile=/scratch/kocevski/61453/cmap_355968001_356227201_4FGL_J1357.1+1921_daily_bin450.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.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/61453/ft1_filtered_4FGL_J1357.1+1921_daily_bin450.fits scfile=/scratch/kocevski/61453/ft2_4FGL_J1357.1+1921_daily_bin450.fits outfile=/scratch/kocevski/61453/cmap_HighResolution_355968001_356227201_4FGL_J1357.1+1921_daily_bin450.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=500 nypix=500 binsz=0.1 coordsys="CEL" xref=209.29 yref=19.3608 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

This is gtbin version HEAD
real 0.53
user 0.38
sys 0.14

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10130E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    21.918       1.0000         .10000E-03   10000.    
     3 'Prefactor '    1.3528       1.0000         .10000E-03   10000.    
     4 'norm      '    .19972E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    9.4234       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10191E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10042E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    6.7282       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10014E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10404E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10015E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    10.117       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .12059       1.0000         .10000E-03   10000.    
    16 'norm      '    3.6637       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .81374       1.0000         .10000E-03   10000.    
    18 'Normalizat'    1.1646       1.0000         .10000E-01   10.000    
    19 'Prefactor '    .85698       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=   5460.115     FROM MIGRAD    STATUS=CONVERGED    402 CALLS     1653 TOTAL
                     EDM=   .15E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY= 10.4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    46.697       -.21353E-05** at limit **
   2  norm          21.927        8.4672       -.11312E-07    .16283E-03
   3  Prefactor     1.2843        209.11        .25700E-04    .94836E-04
   4  norm          .10000E-03    17.949       -.58422E-06** at limit **
   5  Prefactor     9.4298        15.318       -.11498E-06    .11026E-03
   6  Prefactor     .10001E-03    25.080       -.42349E-05** at limit **
   7  Prefactor     .10002E-03    69.320       -.48992E-05** at limit **
   8  Prefactor     .10000E-03    4.8100       -.51138E-06** at limit **
   9  Prefactor     6.7286        4.4260       -.12554E-06   -.15788E-03
  10  Prefactor     .10000E-03    3.7418       -.97316E-07** at limit **
  11  Prefactor     .10000E-03    4.3403       -.26626E-06** at limit **
  12  Prefactor     .10001E-03    29.752        .45086E-05** at limit **
  13  Prefactor     .10000E-03    3.2958       -.15885E-06** at limit **
  14  norm          10.117        3.5883        .11873E-07    .49111E-04
  15  Prefactor     .16297        7.5162        .24013E-05    .18811E-03
  16  norm          3.6615        2.9625       -.87685E-06    .13087E-02
  17  Prefactor     .75991        241.61       -.73403E-04    .51069E-04
  18  Normalizat    1.1646        .19140        .11033E-05   -.24935E-03
  19  Prefactor     .85686        .16121        .19468E-06   -.31567E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.000100001
  norm       = 21.9271
  Prefactor  = 1.28429
  norm       = 0.0001
  Prefactor  = 9.42983
  Prefactor  = 0.000100007
  Prefactor  = 0.000100016
  Prefactor  = 0.0001
  Prefactor  = 6.72863
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100011
  Prefactor  = 0.0001
  norm       = 10.1172
  Prefactor  = 0.162968
  norm       = 3.66145
  Prefactor  = 0.759906
  Normalizat = 1.16459
  Prefactor  = 0.856855
 **********
 **   18 **HESSE 
 **********

 FCN=   5460.115     FROM HESSE     STATUS=OK           270 CALLS     1923 TOTAL
                     EDM=   .49E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    48.531        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          21.927        8.4414        .85556E-04   -1.4771    
   3  Prefactor     1.2843        226.49        .37600E-02   -1.5481    
   4  norm          .10000E-03    18.504        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     9.4298        15.345        .13055E-03   -1.5094    
   6  Prefactor     .10001E-03    25.687        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10002E-03    70.239        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    5.0356        .31643E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     6.7286        4.4275        .12246E-03   -1.5189    
  10  Prefactor     .10000E-03    3.7445        .13960E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    4.3576        .15036E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10001E-03    30.389        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    3.3240        .13092E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          10.117        3.5891        .80634E-04   -1.5072    
  15  Prefactor     .16297        78.466        .36593E-02   -1.5627    
  16  norm          3.6615        3.0172        .55165E-03   -1.5325    
  17  Prefactor     .75991        240.25        .78649E-02   -1.5534    
  18  Normalizat    1.1646        .23067        .23930E-03   -.87704    
  19  Prefactor     .85686        .19367        .23309E-03   -.97665    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.94631e-09
Minuit parameter uncertainties:
  1  0.000457106
  2  8.44188
  3  34.2412
  4  9.66395e-05
  5  15.3509
  6  0.000878113
  7  0.00213368
  8  3.41177e-05
  9  4.42767
  10  9.64272e-06
  11  2.28764e-05
  12  0.00114417
  13  1.30944e-05
  14  3.5892
  15  7.15913
  16  3.01728
  17  27.1319
  18  0.230868
  19  0.193828
Done.

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

Extracting fit parameters...

4FGL J1357.1+1921
   Spectrum: PowerLaw
267    Prefactor:  1.000e-04  2.288e-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:  8.569e-01  1.938e-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.165e+00  2.309e-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.19e-08 ph cm-2 s-1
Energy Flux Upper Limit: 5.68e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/61453/likelihoodResults_355968001_356227201_4FGL_J1357.1+1921_daily_bin450.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) = 5460.11643125
delta logL = -0.00109142207202

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5460.11533984
delta logL = -1.09284883365e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.7562       1.0000          .0000       10.000    
     3 'Normalizat'    1.1646       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .85687       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=   5460.115     FROM MIGRAD    STATUS=CONVERGED     88 CALLS      240 TOTAL
                     EDM=   .56E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10003E-03    172.86        .15037E-02** at limit **
   2  Index         2.7417        8.2535        .50000        .21968E-05
   3  Normalizat    1.1646        .31209E-01    .23930E-03   -.31308E-04
   4  Prefactor     .85686        .26645E-01    .23309E-03   -.20241E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100028
  Index      = 2.74174
  Normalizat = 1.16459
  Prefactor  = 0.856856
 **********
 **   18 **HESSE 
 **********

 FCN=   5460.115     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      269 TOTAL
                     EDM=   .28E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10003E-03    637.99        .30074E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.7417        7.2802        .50000       -.46862    
   3  Normalizat    1.1646        .74452E-01    .95720E-05   -.87704    
   4  Prefactor     .85686        .63559E-01    .93237E-05   -.97665    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 2.75364e-09
Minuit parameter uncertainties:
  1  0.00856855
  2  1985.84
  3  0.0744584
  4  0.0635643
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/61453': 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) = 5460.11533983
delta logL = 5.8989826357e-09

Extracting fit parameters...

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

GAL_V02
   Spectrum: PowerLaw
506    Prefactor:  8.569e-01  6.356e-02  0.000e+00  1.000e+01 ( 1.000e+00)
507        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
508        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
505   Normalization:  1.165e+00  7.446e-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/61453/cmap_HighResolution_355968001_356227201_4FGL_J1357.1+1921_daily_bin450.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.68e-03', job_status='DONE', photon_flux_upper_limit='7.19e-08', time_completed='2021-09-08 17:58:07.631010', job_id='61453', GAL2='0.86', fit_tolerance='1e-08', EG2='1.16', EG='1.16', time_epoch_completed='1631149087.63', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.86', dlogl='5.90e-09', ts2='-0.00', photon_index_error='0.00', photon_index='2.76' WHERE bin_id='450' AND source_name='4FGL J1357.1+1921' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  8 17:58:07 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0240>
Subject: Job 61453: <4FGL_J1357.1+1921_daily_bin450> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1357.1+1921_daily_bin450 209.29 19.3608 355968001 356227201 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 :                                   497.19 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             260.67 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   718 sec.
    Turnaround time :                            720 sec.

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

