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


Performing analysis on: 4FGL_J1357.1+1921_daily_bin41
RA = 209.29, Dec = 19.3608
tmin = 249955201, tmax = 250214401
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='59788', job_status='RUN', time_executed='2021-09-08 17:42:36.615928', time_epoch_executed='1631148156.62' WHERE source_name='4FGL J1357.1+1921' and cadence='daily' and bin_id='41'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/59788

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/59788/ft1_4FGL_J1357.1+1921_daily_bin41.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/59788/ft2_4FGL_J1357.1+1921_daily_bin41.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/59788/ft1_4FGL_J1357.1+1921_daily_bin41.fits outfile=/scratch/kocevski/59788/ft1_filteredMKT_4FGL_J1357.1+1921_daily_bin41.fits ra=209.29 dec=19.3608 rad=12.0 tmin=249955201.0 tmax=250214401.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.43
user 1.25
sys 0.17

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/59788/ft1_filtered_4FGL_J1357.1+1921_daily_bin41.fits" evtable="EVENTS" scfile=/scratch/kocevski/59788/ft2_4FGL_J1357.1+1921_daily_bin41.fits sctable="SC_DATA" outfile=/scratch/kocevski/59788/ltcube_249955201_250214401_4FGL_J1357.1+1921_daily_bin41.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/59788/ft2_4FGL_J1357.1+1921_daily_bin41.fits
.....................!
real 12.68
user 12.35
sys 0.30

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/59788/ft1_filtered_4FGL_J1357.1+1921_daily_bin41.fits evtable="EVENTS" scfile=/scratch/kocevski/59788/ft2_4FGL_J1357.1+1921_daily_bin41.fits sctable="SC_DATA" expcube=/scratch/kocevski/59788/ltcube_249955201_250214401_4FGL_J1357.1+1921_daily_bin41.fits outfile=/scratch/kocevski/59788/expmap_249955201_250214401_4FGL_J1357.1+1921_daily_bin41.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/59788/ltcube_249955201_250214401_4FGL_J1357.1+1921_daily_bin41.fits
.....................!
real 191.17
user 186.79
sys 4.06

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/59788/ft1_filtered_4FGL_J1357.1+1921_daily_bin41.fits scfile=/scratch/kocevski/59788/ft2_4FGL_J1357.1+1921_daily_bin41.fits outfile=/scratch/kocevski/59788/cmap_249955201_250214401_4FGL_J1357.1+1921_daily_bin41.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.37
sys 0.14

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

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

This is gtbin version HEAD
real 0.53
user 0.38
sys 0.14

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10013E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    .22588       1.0000         .10000E-03   10000.    
     3 'Prefactor '    41.630       1.0000         .10000E-03   10000.    
     4 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    18.466       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .54611E-01   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    3.4529       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10315E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    6.8199       1.0000         .10000E-03   10000.    
    15 'Prefactor '    2.4504       1.0000         .10000E-03   10000.    
    16 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    18 'Normalizat'    1.1868       1.0000         .10000E-01   10.000    
    19 'Prefactor '    .91717       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=   7660.724     FROM MIGRAD    STATUS=CONVERGED    430 CALLS     1717 TOTAL
                     EDM=   .61E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    19.405       -.97636E-06** at limit **
   2  norm          .25328        4.6748       -.21639E-05    .38435E-03
   3  Prefactor     41.632        29.381       -.66226E-05    .14331E-04
   4  norm          .10000E-03    1.7233        .21417E-07** at limit **
   5  Prefactor     18.475        14.990       -.69669E-05   -.11274E-03
   6  Prefactor     .10050E-03    12.841        .19526E-05** at limit **
   7  Prefactor     .10000E-03    9.1218        .87115E-08** at limit **
   8  Prefactor     .10000E-03    1.4987        .12269E-07** at limit **
   9  Prefactor     .10000E-03    1.5171       -.28056E-07** at limit **
  10  Prefactor     3.4539        11.352        .21830E-05   -.12552E-03
  11  Prefactor     .10000E-03    6.6649       -.63252E-06** at limit **
  12  Prefactor     .10000E-03    5.6269        .96559E-09** at limit **
  13  Prefactor     .10000E-03    2.0817        .22600E-07** at limit **
  14  norm          6.8200        2.3730       -.22122E-07    .11048E-03
  15  Prefactor     2.4528        5.5380       -.14148E-05   -.74727E-03
  16  norm          .10000E-03    .97471       -.13341E-07** at limit **
  17  Prefactor     .10000E-03    13.545        .13950E-06** at limit **
  18  Normalizat    1.1868        .16368        .13994E-05    .21194E-03
  19  Prefactor     .91718        .13394       -.60610E-07    .31856E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  norm       = 0.253284
  Prefactor  = 41.6322
  norm       = 0.0001
  Prefactor  = 18.4752
  Prefactor  = 0.000100504
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 3.45385
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 6.82003
  Prefactor  = 2.45276
  norm       = 0.0001
  Prefactor  = 0.0001
  Normalizat = 1.18676
  Prefactor  = 0.917179
 **********
 **   18 **HESSE 
 **********

 FCN=   7660.724     FROM HESSE     STATUS=OK           272 CALLS     1989 TOTAL
                     EDM=   .32E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    19.453        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .25328        27.384        .35478E-02   -1.5607    
   3  Prefactor     41.632        29.295        .62129E-04   -1.4417    
   4  norm          .10000E-03    1.7249        .11218E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     18.475        15.100        .46602E-03   -1.4848    
   6  Prefactor     .10050E-03    16.378        .93778E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    9.1232        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    1.5140        .10462E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    1.5298        .10526E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     3.4539        11.275        .21765E-03   -1.5336    
  11  Prefactor     .10000E-03    36.806        .42346E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    5.6299        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    2.0862        .12324E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          6.8200        2.3733        .77349E-04   -1.5186    
  15  Prefactor     2.4528        5.6368        .26132E-03   -1.5395    
  16  norm          .10000E-03    1.8033        .16738E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    13.563        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Normalizat    1.1868        .19220        .23897E-03   -.87013    
  19  Prefactor     .91718        .15936        .22757E-03   -.95543    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.21044e-09
Minuit parameter uncertainties:
  1  5.77242e-05
  2  5.26862
  3  29.3051
  4  3.01568e-06
  5  15.103
  6  0.00574998
  7  7.77171e-07
  8  1.61406e-06
  9  3.39478e-06
  10  11.2817
  11  0.000100663
  12  1.68239e-06
  13  3.43578e-06
  14  2.37332
  15  5.63803
  16  2.3269e-06
  17  5.25644e-07
  18  0.192319
  19  0.15944
Done.

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

Extracting fit parameters...

4FGL J1357.1+1921
   Spectrum: PowerLaw
267    Prefactor:  1.000e-04  1.007e-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:  9.172e-01  1.594e-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.187e+00  1.923e-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: 9.38e-08 ph cm-2 s-1
Energy Flux Upper Limit: 7.41e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/59788/likelihoodResults_249955201_250214401_4FGL_J1357.1+1921_daily_bin41.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) = 7660.72431926
delta logL = -0.000128120528643

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 7660.72416065
delta logL = 3.04898512695e-05

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .24272E-02   1.0000         .10000E-03   10000.    
     2 'Index     '    2.9061       1.0000          .0000       10.000    
     3 'Normalizat'    1.1868       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .91711       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=   7659.555     FROM MIGRAD    STATUS=CONVERGED    107 CALLS      275 TOTAL
                     EDM=   .38E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .91834        19.342        .10024E-01   -.14527E-02
   2  Index         5.4169        7.3080        .19490        .13637E-03
   3  Normalizat    1.0889        .10004        .56072E-01    .10556E-03
   4  Prefactor     .96387        .71303E-01    .45223E-01    .93563E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.91834
  Index      = 5.41689
  Normalizat = 1.08887
  Prefactor  = 0.963869
 **********
 **   18 **HESSE 
 **********

 FCN=   7659.555     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      308 TOTAL
                     EDM=   .69E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .91834        21.863        .56715E-04   -1.5900    
   2  Index         5.4169        7.6520        .69051E-02    .83475E-01
   3  Normalizat    1.0889        .18746        .24797E-03   -.90110    
   4  Prefactor     .96387        .15503        .22249E-03   -.93944    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 6.87094e-10
Minuit parameter uncertainties:
  1  8.96477
  2  7.18213
  3  0.187579
  4  0.155104
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/59788': 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) = 7659.55542466
delta logL = 1.16876648156

Extracting fit parameters...

4FGL J1357.1+1921
   Spectrum: PowerLaw
267    Prefactor:  9.183e-01  8.965e+00  1.000e-04  1.000e+04 ( 1.000e-12)
268        Index:  5.417e+00  7.182e+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:  9.639e-01  1.551e-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.089e+00  1.876e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.52
Ra Dec: 209.290 19.361
Photon Index (Free Index): 5.42 +/- 7.18
Photon Flux (Free Index): 8.40e-08 +/- 1.59e-06
Energy Flux (Free Index): 1.08e-05 +/- 2.01e-04

Creating a high resolution counts map...
INFO: Auto-setting vmin to -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/59788/cmap_HighResolution_249955201_250214401_4FGL_J1357.1+1921_daily_bin41.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='7.41e-03', comment='SUCCESS', energy_flux2='1.08e-05', dlogl='1.17e+00', photon_flux2='8.40e-08', job_status='DONE', time_completed='2021-09-08 17:52:10.725355', photon_index_error2='7.18', photon_index2='5.42', ts='-0.00', fit_tolerance='1e-08', GAL='0.92', photon_index_error='0.00', photon_flux_upper_limit='9.38e-08', energy_flux_error2='2.01e-04', EG='1.19', time_epoch_completed='1631148730.73', return_code='0', job_id='59788', GAL2='0.96', EG2='1.09', return_code2='102', photon_flux_error2='1.59e-06', ts2='2.52', photon_index='2.76' WHERE bin_id='41' AND source_name='4FGL J1357.1+1921' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  8 17:52:10 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0290>
Subject: Job 59788: <4FGL_J1357.1+1921_daily_bin41> in cluster <slac> Done

Job <4FGL_J1357.1+1921_daily_bin41> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Wed Sep  8 17:41:00 2021
Job was executed on host(s) <bullet0290>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep  8 17:41:02 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:41:02 2021
Terminated at Wed Sep  8 17:52:11 2021
Results reported at Wed Sep  8 17:52:11 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1357.1+1921_daily_bin41 209.29 19.3608 249955201 250214401 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 :                                   573.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             332.00 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   669 sec.
    Turnaround time :                            671 sec.

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

