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


Performing analysis on: 4FGL_J1357.1+1921_daily_bin1338
RA = 209.29, Dec = 19.3608
tmin = 586137601, tmax = 586396801
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='66223', job_status='RUN', time_executed='2021-09-08 18:01:01.799927', time_epoch_executed='1631149261.8' WHERE source_name='4FGL J1357.1+1921' and cadence='daily' and bin_id='1338'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/66223

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

Retrieving the FT1 file...

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

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

Retrieving 41 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/66223/ft1_4FGL_J1357.1+1921_daily_bin1338.fits


Retrieving the FT1 file...

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

Retrieving 41 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/66223/ft2_4FGL_J1357.1+1921_daily_bin1338.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/66223/ft1_4FGL_J1357.1+1921_daily_bin1338.fits outfile=/scratch/kocevski/66223/ft1_filteredMKT_4FGL_J1357.1+1921_daily_bin1338.fits ra=209.29 dec=19.3608 rad=12.0 tmin=586137601.0 tmax=586396801.0 emin=100.0 emax=100000.0 zmin=0.0 zmax=90.0 evclass=128 evtype="INDEF" convtype=-1 phasemin=0.0 phasemax=1.0 evtable="EVENTS" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

Done.
real 4.49
user 4.27
sys 0.20

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/66223/ft2_4FGL_J1357.1+1921_daily_bin1338.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/66223/ft1_filteredMKT_4FGL_J1357.1+1921_daily_bin1338.fits evtable="EVENTS" outfile="/scratch/kocevski/66223/ft1_filtered_4FGL_J1357.1+1921_daily_bin1338.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.16

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/66223/ft1_filtered_4FGL_J1357.1+1921_daily_bin1338.fits evtable="EVENTS" scfile=/scratch/kocevski/66223/ft2_4FGL_J1357.1+1921_daily_bin1338.fits sctable="SC_DATA" expcube=/scratch/kocevski/66223/ltcube_586137601_586396801_4FGL_J1357.1+1921_daily_bin1338.fits outfile=/scratch/kocevski/66223/expmap_586137601_586396801_4FGL_J1357.1+1921_daily_bin1338.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/66223/ltcube_586137601_586396801_4FGL_J1357.1+1921_daily_bin1338.fits
.....................!
real 190.38
user 185.61
sys 4.07

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/66223/ft1_filtered_4FGL_J1357.1+1921_daily_bin1338.fits scfile=/scratch/kocevski/66223/ft2_4FGL_J1357.1+1921_daily_bin1338.fits outfile=/scratch/kocevski/66223/cmap_586137601_586396801_4FGL_J1357.1+1921_daily_bin1338.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=160 nypix=160 binsz=0.25 coordsys="CEL" xref=209.29 yref=19.3608 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

This is gtbin version HEAD
real 0.54
user 0.35
sys 0.17

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/66223/ft1_filtered_4FGL_J1357.1+1921_daily_bin1338.fits scfile=/scratch/kocevski/66223/ft2_4FGL_J1357.1+1921_daily_bin1338.fits outfile=/scratch/kocevski/66223/cmap_HighResolution_586137601_586396801_4FGL_J1357.1+1921_daily_bin1338.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.36
sys 0.17

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    16.958       1.0000         .10000E-03   10000.    
     2 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    12.147       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10021E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10264E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10361E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10040E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    4.0559       1.0000         .10000E-03   10000.    
    10 'Prefactor '    17.860       1.0000         .10000E-03   10000.    
    11 'Prefactor '    35.163       1.0000         .10000E-03   10000.    
    12 'Prefactor '    118.52       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .11425E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    4.8905       1.0000         .10000E-03   10000.    
    15 'Prefactor '    10.730       1.0000         .10000E-03   10000.    
    16 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10089E-03   1.0000         .10000E-03   10000.    
    18 'Normalizat'    1.1995       1.0000         .10000E-01   10.000    
    19 'Prefactor '    .91529       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=   4769.726     FROM MIGRAD    STATUS=CONVERGED    372 CALLS     1605 TOTAL
                     EDM=   .76E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          16.954        21.266       -.47535E-06    .10995E-05
   2  norm          .10000E-03    3.0497        .69080E-08** at limit **
   3  Prefactor     .10000E-03    12.739        .19279E-05** at limit **
   4  norm          12.144        9.6645       -.88922E-06   -.51794E-05
   5  Prefactor     .10000E-03    12.276       -.16237E-05** at limit **
   6  Prefactor     .10000E-03    29.197       -.23023E-05** at limit **
   7  Prefactor     .10000E-03    87.440        .74863E-04** at limit **
   8  Prefactor     .10000E-03    3.1087       -.70183E-07** at limit **
   9  Prefactor     4.0563        4.7216       -.27739E-05   -.28309E-03
  10  Prefactor     17.857        18.672        .15141E-05   -.32902E-04
  11  Prefactor     35.151        21.867       -.49903E-06    .18816E-04
  12  Prefactor     118.51        52.096       -.10383E-04    .31750E-04
  13  Prefactor     .10000E-03    6.8689        .25274E-06** at limit **
  14  norm          4.8906        3.0736       -.96641E-07    .16194E-04
  15  Prefactor     10.726        11.207        .79477E-06    .22531E-03
  16  norm          .10000E-03    1.5181       -.58093E-07** at limit **
  17  Prefactor     .10000E-03    106.32       -.92047E-04** at limit **
  18  Normalizat    1.2001        .23807        .19999E-05    .72654E-04
  19  Prefactor     .91481        .18891        .69592E-06    .12393E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 16.9544
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 12.1436
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 4.05632
  Prefactor  = 17.8569
  Prefactor  = 35.1512
  Prefactor  = 118.507
  Prefactor  = 0.0001
  norm       = 4.89062
  Prefactor  = 10.7265
  norm       = 0.0001
  Prefactor  = 0.000100002
  Normalizat = 1.20009
  Prefactor  = 0.914814
 **********
 **   18 **HESSE 
 **********

 FCN=   4769.726     FROM HESSE     STATUS=OK           268 CALLS     1873 TOTAL
                     EDM=   .16E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          16.954        21.269        .97261E-04   -1.4884    
   2  norm          .10000E-03    3.0558        .11775E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    12.744        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          12.144        9.6798        .11493E-03   -1.5011    
   5  Prefactor     .10000E-03    12.284        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    29.337        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    87.602        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    3.1239        .11890E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     4.0563        4.7247        .15660E-03   -1.5305    
  10  Prefactor     17.857        18.666        .94773E-04   -1.4863    
  11  Prefactor     35.151        21.959        .67581E-04   -1.4521    
  12  Prefactor     118.51        52.139        .18481E-03   -1.3526    
  13  Prefactor     .10000E-03    6.8937        .17656E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          4.8906        3.0741        .93109E-04   -1.5266    
  15  Prefactor     10.726        11.211        .12231E-03   -1.5053    
  16  norm          .10000E-03    1.5303        .83060E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    106.73        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Normalizat    1.2001        .28500        .27032E-03   -.86600    
  19  Prefactor     .91481        .22493        .24823E-03   -.95625    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.61128e-10
Minuit parameter uncertainties:
  1  21.2786
  2  8.88132e-07
  3  7.13005e-06
  4  9.68109
  5  8.1676e-06
  6  4.19328e-05
  7  0.000198149
  8  6.63277e-06
  9  4.72514
  10  18.6722
  11  21.9639
  12  52.1591
  13  6.19612e-05
  14  3.07415
  15  11.2127
  16  1.24918e-06
  17  0.000803984
  18  0.28537
  19  0.225164
Done.

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

Extracting fit parameters...

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

GAL_V02
   Spectrum: PowerLaw
506    Prefactor:  9.148e-01  2.252e-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.200e+00  2.854e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 3.92
Ra Dec: 209.290 19.361
Photon Index (Fixed Index): 2.76 +/- 0.00
Photon Flux (Fixed Index): 1.37e-07 +/- 8.53e-08
Energy Flux (Fixed Index): 3.15e-05 +/- 1.97e-05

TS (Fixed Index): 3.92
Ra Dec: 209.290 19.361
Photon Flux Upper Limit: 3.00e-07 ph cm-2 s-1
Energy Flux Upper Limit: 2.37e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/66223/likelihoodResults_586137601_586396801_4FGL_J1357.1+1921_daily_bin1338.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) = 4769.43729202
delta logL = 0.28904627769

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4769.43216515
delta logL = 0.294173143892

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    25.171       1.0000         .10000E-03   10000.    
     2 'Index     '    3.3059       1.0000          .0000       10.000    
     3 'Normalizat'    1.1598       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .94021       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=   4769.432     FROM MIGRAD    STATUS=CONVERGED     57 CALLS      259 TOTAL
                     EDM=   .60E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     25.154        288.95        .19961E-02    .25208E-04
   2  Index         3.3050        6.6414        .15347        .76329E-04
   3  Normalizat    1.1599        .10481        .61979E-01    .12800E-04
   4  Prefactor     .94048        .90432E-01    .45515E-01    .11011E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 25.1536
  Index      = 3.30503
  Normalizat = 1.15989
  Prefactor  = 0.940478
 **********
 **   18 **HESSE 
 **********

 FCN=   4769.432     FROM HESSE     STATUS=OK            33 CALLS      292 TOTAL
                     EDM=   .58E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     25.154        23.422        .79844E-04   -1.4704    
   2  Index         3.3050        .80151        .60769E-02   -.34585    
   3  Normalizat    1.1599        .28260        .27414E-03   -.87852    
   4  Prefactor     .94048        .22594        .24511E-03   -.94741    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.75073e-12
Minuit parameter uncertainties:
  1  23.431
  2  0.805439
  3  0.282971
  4  0.22617
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/66223': 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) = 4769.43215877
delta logL = 0.294179520974

Extracting fit parameters...

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

GAL_V02
   Spectrum: PowerLaw
506    Prefactor:  9.405e-01  2.262e-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.160e+00  2.830e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 4.55
Ra Dec: 209.290 19.361
Photon Index (Free Index): 3.31 +/- 0.81
Photon Flux (Free Index): 1.73e-07 +/- 1.03e-07
Energy Flux (Free Index): 3.04e-05 +/- 1.79e-05

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/66223/cmap_HighResolution_586137601_586396801_4FGL_J1357.1+1921_daily_bin1338.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.37e-02', comment='SUCCESS', photon_flux='1.37e-07', energy_flux2='3.04e-05', photon_flux_error='8.53e-08', dlogl='2.94e-01', energy_flux='3.15e-05', photon_flux2='1.73e-07', job_status='DONE', time_completed='2021-09-08 18:08:52.571276', photon_index_error2='0.81', photon_index2='3.31', ts='3.92', fit_tolerance='1e-08', GAL='0.91', photon_index_error='0.00', photon_flux_upper_limit='3.00e-07', energy_flux_error2='1.79e-05', EG='1.20', time_epoch_completed='1631149732.57', return_code='0', job_id='66223', GAL2='0.94', EG2='1.16', return_code2='0', energy_flux_error='1.97e-05', photon_flux_error2='1.03e-07', ts2='4.55', photon_index='2.76' WHERE bin_id='1338' AND source_name='4FGL J1357.1+1921' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  8 18:08:52 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0205>
Subject: Job 66223: <4FGL_J1357.1+1921_daily_bin1338> in cluster <slac> Done

Job <4FGL_J1357.1+1921_daily_bin1338> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Wed Sep  8 18:00:45 2021
Job was executed on host(s) <bullet0205>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep  8 18:00:47 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:47 2021
Terminated at Wed Sep  8 18:08:53 2021
Results reported at Wed Sep  8 18:08:53 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1357.1+1921_daily_bin1338 209.29 19.3608 586137601 586396801 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 :                                   468.00 sec.
    Max Memory :                                 1255 MB
    Average Memory :                             350.88 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   485 sec.
    Turnaround time :                            488 sec.

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

