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


Performing analysis on: 4FGL_J1357.1+1921_daily_bin22
RA = 209.29, Dec = 19.3608
tmin = 245030401, tmax = 245289601
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='59759', job_status='RUN', time_executed='2021-09-08 17:44:36.593109', time_epoch_executed='1631148276.59' WHERE source_name='4FGL J1357.1+1921' and cadence='daily' and bin_id='22'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/59759

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/59759/ft1_4FGL_J1357.1+1921_daily_bin22.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/59759/ft2_4FGL_J1357.1+1921_daily_bin22.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/59759/ft1_4FGL_J1357.1+1921_daily_bin22.fits outfile=/scratch/kocevski/59759/ft1_filteredMKT_4FGL_J1357.1+1921_daily_bin22.fits ra=209.29 dec=19.3608 rad=12.0 tmin=245030401.0 tmax=245289601.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.46
user 1.26
sys 0.18

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/59759/ft1_filtered_4FGL_J1357.1+1921_daily_bin22.fits" evtable="EVENTS" scfile=/scratch/kocevski/59759/ft2_4FGL_J1357.1+1921_daily_bin22.fits sctable="SC_DATA" outfile=/scratch/kocevski/59759/ltcube_245030401_245289601_4FGL_J1357.1+1921_daily_bin22.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/59759/ft2_4FGL_J1357.1+1921_daily_bin22.fits
.....................!
real 13.96
user 13.50
sys 0.37

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/59759/ft1_filtered_4FGL_J1357.1+1921_daily_bin22.fits evtable="EVENTS" scfile=/scratch/kocevski/59759/ft2_4FGL_J1357.1+1921_daily_bin22.fits sctable="SC_DATA" expcube=/scratch/kocevski/59759/ltcube_245030401_245289601_4FGL_J1357.1+1921_daily_bin22.fits outfile=/scratch/kocevski/59759/expmap_245030401_245289601_4FGL_J1357.1+1921_daily_bin22.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/59759/ltcube_245030401_245289601_4FGL_J1357.1+1921_daily_bin22.fits
.....................!
real 191.89
user 185.90
sys 5.52

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/59759/ft1_filtered_4FGL_J1357.1+1921_daily_bin22.fits scfile=/scratch/kocevski/59759/ft2_4FGL_J1357.1+1921_daily_bin22.fits outfile=/scratch/kocevski/59759/cmap_245030401_245289601_4FGL_J1357.1+1921_daily_bin22.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.56
user 0.37
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/59759/ft1_filtered_4FGL_J1357.1+1921_daily_bin22.fits scfile=/scratch/kocevski/59759/ft2_4FGL_J1357.1+1921_daily_bin22.fits outfile=/scratch/kocevski/59759/cmap_HighResolution_245030401_245289601_4FGL_J1357.1+1921_daily_bin22.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.55
user 0.39
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    7.3833       1.0000         .10000E-03   10000.    
     2 'norm      '    .10009E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    28.413       1.0000         .10000E-03   10000.    
     5 'Prefactor '    4.2351       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    86.137       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    10.039       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .95777E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    57.059       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    5.2714       1.0000         .10000E-03   10000.    
    15 'Prefactor '    11.444       1.0000         .10000E-03   10000.    
    16 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    6.8445       1.0000         .10000E-03   10000.    
    18 'Normalizat'    .94467       1.0000         .10000E-01   10.000    
    19 'Prefactor '    1.0825       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=   6377.995     FROM MIGRAD    STATUS=CONVERGED    370 CALLS     1863 TOTAL
                     EDM=   .17E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          7.3839        12.737        .17916E-06    .61439E-04
   2  norm          .10000E-03    2.6382        .17758E-06** at limit **
   3  Prefactor     .10000E-03    13.252       -.66935E-06** at limit **
   4  norm          28.414        10.769        .13426E-07   -.16183E-05
   5  Prefactor     4.2373        18.193        .72978E-06    .11079E-03
   6  Prefactor     .10000E-03    7.5048        .45247E-06** at limit **
   7  Prefactor     86.141        58.967       -.39803E-06    .14103E-04
   8  Prefactor     .10000E-03    2.3277        .11990E-06** at limit **
   9  Prefactor     .10000E-03    1.2481        .86041E-07** at limit **
  10  Prefactor     10.039        12.743        .27889E-06    .70874E-04
  11  Prefactor     .10000E-03    21.513       -.14418E-04** at limit **
  12  Prefactor     57.063        30.328       -.58908E-06    .17422E-04
  13  Prefactor     .10000E-03    5.2462        .42236E-06** at limit **
  14  norm          5.2715        2.6920        .14154E-06   -.99609E-05
  15  Prefactor     11.445        7.4024        .18903E-06    .16897E-03
  16  norm          .10000E-03    1.1299       -.17189E-06** at limit **
  17  Prefactor     6.8391        25.556        .32978E-05    .20697E-04
  18  Normalizat    .94455        .19476       -.17584E-05   -.11968E-03
  19  Prefactor     1.0825        .16305        .42099E-06   -.76234E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 7.38394
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 28.414
  Prefactor  = 4.23728
  Prefactor  = 0.0001
  Prefactor  = 86.1415
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 10.0387
  Prefactor  = 0.0001
  Prefactor  = 57.0632
  Prefactor  = 0.0001
  norm       = 5.27148
  Prefactor  = 11.4453
  norm       = 0.0001
  Prefactor  = 6.83907
  Normalizat = 0.944546
  Prefactor  = 1.08254
 **********
 **   18 **HESSE 
 **********

 FCN=   6377.995     FROM HESSE     STATUS=OK           270 CALLS     2133 TOTAL
                     EDM=   .34E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          7.3839        12.729        .14760E-03   -1.5164    
   2  norm          .10000E-03    2.6453        .12662E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    13.270        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          28.414        10.795        .75160E-04   -1.4641    
   5  Prefactor     4.2373        18.211        .19580E-03   -1.5296    
   6  Prefactor     .10000E-03    7.5243        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     86.141        58.928        .43286E-04   -1.3849    
   8  Prefactor     .10000E-03    2.3873        .23796E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    1.2526        .87144E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     10.039        12.751        .12646E-03   -1.5074    
  11  Prefactor     .10000E-03    21.322        .37754E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     57.063        30.313        .53108E-04   -1.4196    
  13  Prefactor     .10000E-03    5.3206        .17857E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          5.2715        2.6944        .90633E-04   -1.5249    
  15  Prefactor     11.445        7.3958        .11842E-03   -1.5031    
  16  norm          .10000E-03    1.1675        .16582E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     6.8391        25.644        .15336E-03   -1.5185    
  18  Normalizat    .94455        .22650        .27151E-03   -.94912    
  19  Prefactor     1.0825        .19091        .21976E-03   -.90027    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.41428e-10
Minuit parameter uncertainties:
  1  12.7337
  2  2.02193e-05
  3  5.768e-05
  4  10.7957
  5  17.5776
  6  4.78693e-05
  7  58.9682
  8  1.40141e-05
  9  7.13774e-06
  10  12.7541
  11  0.000148638
  12  30.3211
  13  7.82243e-05
  14  2.69443
  15  7.39637
  16  1.1951e-05
  17  25.6857
  18  0.226734
  19  0.191027
Done.

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

Extracting fit parameters...

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

GAL_V02
   Spectrum: PowerLaw
506    Prefactor:  1.083e+00  1.910e-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.445e-01  2.267e-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: 8.22e-08 ph cm-2 s-1
Energy Flux Upper Limit: 6.49e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/59759/likelihoodResults_245030401_245289601_4FGL_J1357.1+1921_daily_bin22.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) = 6377.99474127
delta logL = -0.000221657346628

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6377.99451965
delta logL = -3.37631718139e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10035E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.7425       1.0000          .0000       10.000    
     3 'Normalizat'    .94451       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0826       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=   6377.995     FROM MIGRAD    STATUS=CONVERGED     55 CALLS      218 TOTAL
                     EDM=   .47E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    .96791        .90712E-01** at limit **
   2  Index         2.7293        5.5859        .50000        .48215E-05
   3  Normalizat    .94455        .20554E-02    .45468E-01    .96045E-04
   4  Prefactor     1.0825        .17768E-02    .38289E-01    .99423E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100001
  Index      = 2.72934
  Normalizat = 0.944547
  Prefactor  = 1.08254
 **********
 **   18 **HESSE 
 **********

 FCN=   6377.995     FROM HESSE     STATUS=NOT POSDEF    35 CALLS      253 TOTAL
                     EDM=   .15E-06    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    143.74        .33797E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.7293        5.9982        .50000       -.47140    
   3  Normalizat    .94455        .11742E-01    .27151E-03   -.94912    
   4  Prefactor     1.0825        .10155E-01    .21976E-03   -.90027    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.45245e-07
Minuit parameter uncertainties:
  1  0.000674082
  2  366.319
  3  0.0117423
  4  0.0101545
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/59759': 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) = 6377.99451958
delta logL = 3.57713361154e-08

Extracting fit parameters...

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

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

EG_v02
   Spectrum: FileFunction
505   Normalization:  9.445e-01  1.174e-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/59759/cmap_HighResolution_245030401_245289601_4FGL_J1357.1+1921_daily_bin22.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.49e-03', job_status='DONE', photon_flux_upper_limit='8.22e-08', time_completed='2021-09-08 17:53:35.858382', job_id='59759', GAL2='1.08', fit_tolerance='1e-08', EG2='0.94', EG='0.94', time_epoch_completed='1631148815.86', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.08', dlogl='3.58e-08', ts2='-0.00', photon_index_error='0.00', photon_index='2.76' WHERE bin_id='22' AND source_name='4FGL J1357.1+1921' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  8 17:53:35 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0138>
Subject: Job 59759: <4FGL_J1357.1+1921_daily_bin22> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1357.1+1921_daily_bin22 209.29 19.3608 245030401 245289601 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 :                                   536.33 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             283.33 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   757 sec.
    Turnaround time :                            758 sec.

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

