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


Performing analysis on: 4FGL_J1357.1+1921_daily_bin15
RA = 209.29, Dec = 19.3608
tmin = 243216001, tmax = 243475201
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='59749', job_status='RUN', time_executed='2021-09-08 17:41:35.090332', time_epoch_executed='1631148095.09' WHERE source_name='4FGL J1357.1+1921' and cadence='daily' and bin_id='15'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/59749

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

Retrieving the FT1 file...

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

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

Retrieving 44 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/59749/ft1_4FGL_J1357.1+1921_daily_bin15.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/59749/ft2_4FGL_J1357.1+1921_daily_bin15.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/59749/ft1_4FGL_J1357.1+1921_daily_bin15.fits outfile=/scratch/kocevski/59749/ft1_filteredMKT_4FGL_J1357.1+1921_daily_bin15.fits ra=209.29 dec=19.3608 rad=12.0 tmin=243216001.0 tmax=243475201.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 1.37
user 1.19
sys 0.16

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/59749/ft1_filtered_4FGL_J1357.1+1921_daily_bin15.fits evtable="EVENTS" scfile=/scratch/kocevski/59749/ft2_4FGL_J1357.1+1921_daily_bin15.fits sctable="SC_DATA" expcube=/scratch/kocevski/59749/ltcube_243216001_243475201_4FGL_J1357.1+1921_daily_bin15.fits outfile=/scratch/kocevski/59749/expmap_243216001_243475201_4FGL_J1357.1+1921_daily_bin15.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/59749/ltcube_243216001_243475201_4FGL_J1357.1+1921_daily_bin15.fits
.....................!
real 190.66
user 186.01
sys 4.31

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/59749/ft1_filtered_4FGL_J1357.1+1921_daily_bin15.fits scfile=/scratch/kocevski/59749/ft2_4FGL_J1357.1+1921_daily_bin15.fits outfile=/scratch/kocevski/59749/cmap_243216001_243475201_4FGL_J1357.1+1921_daily_bin15.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.38
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/59749/ft1_filtered_4FGL_J1357.1+1921_daily_bin15.fits scfile=/scratch/kocevski/59749/ft2_4FGL_J1357.1+1921_daily_bin15.fits outfile=/scratch/kocevski/59749/cmap_HighResolution_243216001_243475201_4FGL_J1357.1+1921_daily_bin15.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.37
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    3.6469       1.0000         .10000E-03   10000.    
     3 'Prefactor '    9.5005       1.0000         .10000E-03   10000.    
     4 'norm      '    .42889E-02   1.0000         .10000E-03   10000.    
     5 'Prefactor '    4.1828       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10021E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    42.323       1.0000         .10000E-03   10000.    
     8 'Prefactor '    7.2636       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .87209       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .48497E-02   1.0000         .10000E-03   10000.    
    14 'norm      '    7.4771       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10033E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
    18 'Normalizat'    1.0730       1.0000         .10000E-01   10.000    
    19 'Prefactor '    .77917       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=   6523.798     FROM MIGRAD    STATUS=CONVERGED    400 CALLS     1686 TOTAL
                     EDM=   .13E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    9.3135        .11564E-05** at limit **
   2  norm          3.6439        3.6868       -.36815E-06   -.42358E-03
   3  Prefactor     9.5019        24.077        .18023E-05   -.14266E-04
   4  norm          .10052E-03    5.7163        .19464E-05** at limit **
   5  Prefactor     4.1669        13.989       -.52244E-06   -.81858E-04
   6  Prefactor     .10000E-03    7.9346       -.87426E-06** at limit **
   7  Prefactor     42.306        34.185       -.16013E-04   -.10224E-05
   8  Prefactor     7.2638        4.0226       -.19294E-05   -.47986E-04
   9  Prefactor     .10000E-03    1.9610        .12203E-06** at limit **
  10  Prefactor     .10000E-03    3.5663       -.55089E-07** at limit **
  11  Prefactor     .10000E-03    11.987       -.27941E-06** at limit **
  12  Prefactor     .91555        12.384       -.25483E-05    .16222E-03
  13  Prefactor     .10029E-03    5.4160       -.14556E-05** at limit **
  14  norm          7.4770        2.9105       -.78457E-07    .51361E-04
  15  Prefactor     .10000E-03    5.6161        .81318E-07** at limit **
  16  norm          .10000E-03    .68415       -.13133E-07** at limit **
  17  Prefactor     .10000E-03    22.085       -.32761E-05** at limit **
  18  Normalizat    1.0729        .15665        .15091E-05    .51813E-04
  19  Prefactor     .77926        .13098        .38436E-06    .23093E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  norm       = 3.64386
  Prefactor  = 9.50189
  norm       = 0.000100519
  Prefactor  = 4.16694
  Prefactor  = 0.0001
  Prefactor  = 42.306
  Prefactor  = 7.26376
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.915553
  Prefactor  = 0.000100294
  norm       = 7.47701
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Normalizat = 1.07293
  Prefactor  = 0.779255
 **********
 **   18 **HESSE 
 **********

 FCN=   6523.798     FROM HESSE     STATUS=OK           276 CALLS     1962 TOTAL
                     EDM=   .20E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    9.3294        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          3.6439        3.6200        .14809E-03   -1.5326    
   3  Prefactor     9.5019        24.057        .13002E-03   -1.5091    
   4  norm          .10052E-03    37.069        .35891E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     4.1669        13.997        .19706E-03   -1.5300    
   6  Prefactor     .10000E-03    7.9488        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     42.306        34.255        .30810E-03   -1.4406    
   8  Prefactor     7.2638        4.0271        .11705E-03   -1.5169    
   9  Prefactor     .10000E-03    1.9976        .11043E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    3.5734        .14896E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    12.508        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .91555        64.554        .53616E-02   -1.5517    
  13  Prefactor     .10029E-03    46.497        .35362E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          7.4770        2.9103        .83239E-04   -1.5161    
  15  Prefactor     .10000E-03    5.7684        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10000E-03    .68894        .65229E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    22.273        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Normalizat    1.0729        .18120        .22318E-03   -.90626    
  19  Prefactor     .77926        .15322        .21738E-03   -1.0050    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.00435e-08
Minuit parameter uncertainties:
  1  1.27211e-05
  2  3.62026
  3  24.0814
  4  0.00878127
  5  14.0077
  6  3.67213e-06
  7  34.2708
  8  4.02727
  9  9.10599e-06
  10  3.56076e-06
  11  4.6977e-05
  12  15.3921
  13  0.00739864
  14  2.91034
  15  1.05348e-05
  16  1.3147e-06
  17  1.13997e-05
  18  0.181307
  19  0.153301
Done.

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

Extracting fit parameters...

4FGL J1357.1+1921
   Spectrum: PowerLaw
267    Prefactor:  1.000e-04  4.698e-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:  7.793e-01  1.533e-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.073e+00  1.813e-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.03e-08 ph cm-2 s-1
Energy Flux Upper Limit: 5.55e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/59749/likelihoodResults_243216001_243475201_4FGL_J1357.1+1921_daily_bin15.txt

Performing a free index iterative likelihood fit...

Freezing all point sources, except source of interest...

Done.

Freeing candidate source...
Done.

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6523.79805443
delta logL = -0.000381784112506

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6523.7976731
delta logL = -4.50559127785e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .11810E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.8014       1.0000          .0000       10.000    
     3 'Normalizat'    1.0730       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .77920       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=   6523.798     FROM MIGRAD    STATUS=FAILED       104 CALLS      260 TOTAL
                     EDM=   .40E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .34504E-03    .22391        .34095E-01** at limit **
   2  Index         4.5221        6.2631        .50000        .41713E-04
   3  Normalizat    1.0729        .17259E-02    .22318E-03    .15779E-02
   4  Prefactor     .77926        .14624E-02    .21738E-03    .11081E-02
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   6523.795     FROM SIMPLEX   STATUS=PROGRESS      66 CALLS      326 TOTAL
                     EDM=   .11E-04    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .17912        .22391        .59637E-03    .46457E-01
   2  Index         4.0345        6.2631        .93433E-02    .41713E-04
   3  Normalizat    1.0727        .17259E-02    .11232E-04    .15779E-02
   4  Prefactor     .77908        .14624E-02    .38678E-05    .11081E-02
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   6523.795     FROM MIGRAD    STATUS=CONVERGED    126 CALLS      452 TOTAL
                     EDM=   .13E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .19712        23.897        .67365E-04    .99569E-05
   2  Index         4.0411        6.4560        .34791E-01    .54213E-04
   3  Normalizat    1.0697        .18411        .89272E-05   -.85833E-04
   4  Prefactor     .78049        .15220        .86953E-05    .41838E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.197124
  Index      = 4.04111
  Normalizat = 1.06968
  Prefactor  = 0.780487
 **********
 **   18 **HESSE 
 **********

 FCN=   6523.795     FROM HESSE     STATUS=OK            25 CALLS      477 TOTAL
                     EDM=   .32E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .19712        12.987        .26946E-05   -1.5797    
   2  Index         4.0411        6.9931        .69582E-02   -.19297    
   3  Normalizat    1.0697        .18415        .17854E-05   -.90731    
   4  Prefactor     .78049        .15232        .17391E-05   -1.0045    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.18498e-11
Minuit parameter uncertainties:
  1  3.1999
  2  7.48926
  3  0.184256
  4  0.152398
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/59749': 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) = 6523.79502127
delta logL = 0.00265137452971

Extracting fit parameters...

4FGL J1357.1+1921
   Spectrum: PowerLaw
267    Prefactor:  1.971e-01  3.200e+00  1.000e-04  1.000e+04 ( 1.000e-12)
268        Index:  4.041e+00  7.489e+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:  7.805e-01  1.524e-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.070e+00  1.843e-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/59749/cmap_HighResolution_243216001_243475201_4FGL_J1357.1+1921_daily_bin15.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.55e-03', job_status='DONE', photon_flux_upper_limit='7.03e-08', time_completed='2021-09-08 17:50:32.702251', job_id='59749', GAL2='0.78', fit_tolerance='1e-08', EG2='1.07', EG='1.07', time_epoch_completed='1631148632.7', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.78', dlogl='2.65e-03', ts2='0.01', photon_index_error='0.00', photon_index='2.76' WHERE bin_id='15' AND source_name='4FGL J1357.1+1921' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  8 17:50:32 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0208>
Subject: Job 59749: <4FGL_J1357.1+1921_daily_bin15> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1357.1+1921_daily_bin15 209.29 19.3608 243216001 243475201 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 :                                   537.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             308.63 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   574 sec.
    Turnaround time :                            576 sec.

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

