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


Performing analysis on: 4FGL_J1357.1+1921_daily_bin539
RA = 209.29, Dec = 19.3608
tmin = 379036801, tmax = 379296001
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='61593', job_status='RUN', time_executed='2021-09-08 17:48:45.179885', time_epoch_executed='1631148525.18' WHERE source_name='4FGL J1357.1+1921' and cadence='daily' and bin_id='539'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/61593

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/61593/ft1_4FGL_J1357.1+1921_daily_bin539.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/61593/ft2_4FGL_J1357.1+1921_daily_bin539.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/61593/ft1_4FGL_J1357.1+1921_daily_bin539.fits outfile=/scratch/kocevski/61593/ft1_filteredMKT_4FGL_J1357.1+1921_daily_bin539.fits ra=209.29 dec=19.3608 rad=12.0 tmin=379036801.0 tmax=379296001.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.43
user 3.22
sys 0.20

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/61593/ft1_filtered_4FGL_J1357.1+1921_daily_bin539.fits evtable="EVENTS" scfile=/scratch/kocevski/61593/ft2_4FGL_J1357.1+1921_daily_bin539.fits sctable="SC_DATA" expcube=/scratch/kocevski/61593/ltcube_379036801_379296001_4FGL_J1357.1+1921_daily_bin539.fits outfile=/scratch/kocevski/61593/expmap_379036801_379296001_4FGL_J1357.1+1921_daily_bin539.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/61593/ltcube_379036801_379296001_4FGL_J1357.1+1921_daily_bin539.fits
.....................!
real 188.79
user 184.54
sys 3.96

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/61593/ft1_filtered_4FGL_J1357.1+1921_daily_bin539.fits scfile=/scratch/kocevski/61593/ft2_4FGL_J1357.1+1921_daily_bin539.fits outfile=/scratch/kocevski/61593/cmap_379036801_379296001_4FGL_J1357.1+1921_daily_bin539.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.39
sys 0.12

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/61593/ft1_filtered_4FGL_J1357.1+1921_daily_bin539.fits scfile=/scratch/kocevski/61593/ft2_4FGL_J1357.1+1921_daily_bin539.fits outfile=/scratch/kocevski/61593/cmap_HighResolution_379036801_379296001_4FGL_J1357.1+1921_daily_bin539.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.40
sys 0.13

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    10.380       1.0000         .10000E-03   10000.    
     2 'norm      '    12.620       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    29.631       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .64175E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .56707       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    7.8122       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10027E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    2.5250       1.0000         .10000E-03   10000.    
    15 'Prefactor '    2.1010       1.0000         .10000E-03   10000.    
    16 'norm      '    3.6610       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .95938E-03   1.0000         .10000E-03   10000.    
    18 'Normalizat'    1.0240       1.0000         .10000E-01   10.000    
    19 'Prefactor '    .94272       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=   6256.889     FROM MIGRAD    STATUS=CONVERGED    383 CALLS     1633 TOTAL
                     EDM=   .19E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          10.381        10.489       -.79925E-06    .45659E-04
   2  norm          12.622        8.4280        .10725E-06    .28179E-05
   3  Prefactor     .10000E-03    9.3886       -.12648E-07** at limit **
   4  norm          29.637        12.899        .67785E-07   -.27732E-04
   5  Prefactor     .10000E-03    10.850        .11757E-06** at limit **
   6  Prefactor     .10000E-03    6.6905        .27245E-07** at limit **
   7  Prefactor     .10000E-03    66.763        .13510E-05** at limit **
   8  Prefactor     .10000E-03    .95372        .10830E-07** at limit **
   9  Prefactor     .56629        2.9931        .19413E-05   -.47831E-04
  10  Prefactor     .10000E-03    6.0336        .10215E-07** at limit **
  11  Prefactor     7.8103        11.634        .31660E-06   -.32428E-05
  12  Prefactor     .10000E-03    15.086       -.47323E-07** at limit **
  13  Prefactor     .10000E-03    9.3522       -.22756E-06** at limit **
  14  norm          2.5255        2.0834        .58043E-07   -.33566E-05
  15  Prefactor     2.0955        6.4914        .60287E-06    .22973E-04
  16  norm          3.6596        2.6698       -.13875E-06    .76277E-04
  17  Prefactor     .10000E-03    149.47       -.60828E-05** at limit **
  18  Normalizat    1.0237        .17973       -.49984E-06   -.86930E-05
  19  Prefactor     .94275        .15067       -.30314E-06   -.23908E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 10.3806
  norm       = 12.6217
  Prefactor  = 0.0001
  norm       = 29.6371
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 0.566291
  Prefactor  = 0.0001
  Prefactor  = 7.81032
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 2.52546
  Prefactor  = 2.0955
  norm       = 3.65959
  Prefactor  = 0.000100002
  Normalizat = 1.02369
  Prefactor  = 0.942755
 **********
 **   18 **HESSE 
 **********

 FCN=   6256.889     FROM HESSE     STATUS=OK           268 CALLS     1901 TOTAL
                     EDM=   .37E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          10.381        10.481        .62182E-03   -1.5063    
   2  norm          12.622        8.4327        .11276E-03   -1.4997    
   3  Prefactor     .10000E-03    9.3928        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          29.637        12.925        .73602E-04   -1.4619    
   5  Prefactor     .10000E-03    10.901        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    6.6979        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    68.284        .21028E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    .95543        .75437E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .56629        3.0082        .26853E-03   -1.5557    
  10  Prefactor     .10000E-03    6.0581        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     7.8103        11.642        .14346E-03   -1.5149    
  12  Prefactor     .10000E-03    15.115        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    9.5269        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          2.5255        2.0781        .10050E-03   -1.5390    
  15  Prefactor     2.0955        6.4774        .28471E-03   -1.5418    
  16  norm          3.6596        2.6589        .10566E-03   -1.5325    
  17  Prefactor     .10000E-03    155.03        .41579E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Normalizat    1.0237        .21271        .24845E-03   -.92241    
  19  Prefactor     .94275        .17866        .22097E-03   -.94663    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.72638e-11
Minuit parameter uncertainties:
  1  10.4828
  2  8.43346
  3  7.02915e-06
  4  12.9266
  5  2.56769e-05
  6  3.61958e-06
  7  0.000554053
  8  4.03965e-07
  9  2.61034
  10  1.17082e-06
  11  11.6456
  12  1.1519e-05
  13  4.16224e-06
  14  2.07817
  15  6.47954
  16  2.65894
  17  0.00103533
  18  0.212891
  19  0.178768
Done.

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

Extracting fit parameters...

4FGL J1357.1+1921
   Spectrum: PowerLaw
267    Prefactor:  7.810e+00  1.165e+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.428e-01  1.788e-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.024e+00  2.129e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.53
Ra Dec: 209.290 19.361
Photon Flux Upper Limit: 1.26e-07 ph cm-2 s-1
Energy Flux Upper Limit: 9.94e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/61593/likelihoodResults_379036801_379296001_4FGL_J1357.1+1921_daily_bin539.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) = 6256.88235935
delta logL = 0.00685696853088

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6256.68856752
delta logL = 0.200648799598

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .97440E-01   1.0000         .10000E-03   10000.    
     2 'Index     '    6.5853       1.0000          .0000       10.000    
     3 'Normalizat'    .99228       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .96985       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=   6256.689     FROM MIGRAD    STATUS=CONVERGED     53 CALLS      260 TOTAL
                     EDM=   .49E-10    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .96802E-01    1.8300        .61009E-02    .41533E-02
   2  Index         6.5917        7.3767        .21304        .11571E-03
   3  Normalizat    .99208        .34128E-01    .46070E-01   -.54464E-04
   4  Prefactor     .97006        .29408E-01    .45889E-01   -.39927E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0968023
  Index      = 6.59167
  Normalizat = 0.992081
  Prefactor  = 0.970064
 **********
 **   18 **HESSE 
 **********

 FCN=   6256.689     FROM HESSE     STATUS=NOT POSDEF    35 CALLS      295 TOTAL
                     EDM=   .22E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .96802E-01    6.2548        .28331E-03   -1.5646    
   2  Index         6.5917        7.9338        .10561E-01    .32397    
   3  Normalizat    .99208        .13823        .25191E-03   -.93296    
   4  Prefactor     .97006        .11757        .21819E-03   -.93734    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 2.20554e-10
Minuit parameter uncertainties:
  1  1.55561
  2  11.5637
  3  0.13828
  4  0.117603
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/61593': 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) = 6256.6885646
delta logL = 0.200651717248

Extracting fit parameters...

4FGL J1357.1+1921
   Spectrum: PowerLaw
267    Prefactor:  9.680e-02  1.556e+00  1.000e-04  1.000e+04 ( 1.000e-12)
268        Index:  6.592e+00  1.156e+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.701e-01  1.176e-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.921e-01  1.383e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.53
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/61593/cmap_HighResolution_379036801_379296001_4FGL_J1357.1+1921_daily_bin539.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='9.94e-03', job_status='DONE', photon_flux_upper_limit='1.26e-07', time_completed='2021-09-08 17:58:14.791529', job_id='61593', GAL2='0.97', fit_tolerance='1e-08', EG2='0.99', EG='1.02', time_epoch_completed='1631149094.79', return_code2='102', ts='0.53', comment='SUCCESS', return_code='0', GAL='0.94', dlogl='2.01e-01', ts2='0.97', photon_index_error='0.00', photon_index='2.76' WHERE bin_id='539' AND source_name='4FGL J1357.1+1921' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  8 17:58:14 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0216>
Subject: Job 61593: <4FGL_J1357.1+1921_daily_bin539> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1357.1+1921_daily_bin539 209.29 19.3608 379036801 379296001 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 :                                   522.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             271.74 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   714 sec.
    Turnaround time :                            715 sec.

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

