/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 184 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_bin113
RA = 209.29, Dec = 19.3608
tmin = 268617601, tmax = 268876801
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='60919', job_status='RUN', time_executed='2021-09-08 17:48:36.328610', time_epoch_executed='1631148516.33' WHERE source_name='4FGL J1357.1+1921' and cadence='daily' and bin_id='113'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/60919

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/60919/ft1_4FGL_J1357.1+1921_daily_bin113.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/60919/ft2_4FGL_J1357.1+1921_daily_bin113.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/60919/ft1_4FGL_J1357.1+1921_daily_bin113.fits outfile=/scratch/kocevski/60919/ft1_filteredMKT_4FGL_J1357.1+1921_daily_bin113.fits ra=209.29 dec=19.3608 rad=12.0 tmin=268617601.0 tmax=268876801.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.53
user 1.33
sys 0.16

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/60919/ft1_filtered_4FGL_J1357.1+1921_daily_bin113.fits" evtable="EVENTS" scfile=/scratch/kocevski/60919/ft2_4FGL_J1357.1+1921_daily_bin113.fits sctable="SC_DATA" outfile=/scratch/kocevski/60919/ltcube_268617601_268876801_4FGL_J1357.1+1921_daily_bin113.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/60919/ft2_4FGL_J1357.1+1921_daily_bin113.fits
.....................!
real 14.44
user 14.05
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/60919/ft1_filtered_4FGL_J1357.1+1921_daily_bin113.fits evtable="EVENTS" scfile=/scratch/kocevski/60919/ft2_4FGL_J1357.1+1921_daily_bin113.fits sctable="SC_DATA" expcube=/scratch/kocevski/60919/ltcube_268617601_268876801_4FGL_J1357.1+1921_daily_bin113.fits outfile=/scratch/kocevski/60919/expmap_268617601_268876801_4FGL_J1357.1+1921_daily_bin113.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/60919/ltcube_268617601_268876801_4FGL_J1357.1+1921_daily_bin113.fits
.....................!
real 189.91
user 184.98
sys 4.49

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/60919/ft1_filtered_4FGL_J1357.1+1921_daily_bin113.fits scfile=/scratch/kocevski/60919/ft2_4FGL_J1357.1+1921_daily_bin113.fits outfile=/scratch/kocevski/60919/cmap_268617601_268876801_4FGL_J1357.1+1921_daily_bin113.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.57
user 0.38
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/60919/ft1_filtered_4FGL_J1357.1+1921_daily_bin113.fits scfile=/scratch/kocevski/60919/ft2_4FGL_J1357.1+1921_daily_bin113.fits outfile=/scratch/kocevski/60919/cmap_HighResolution_268617601_268876801_4FGL_J1357.1+1921_daily_bin113.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.38
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    16.070       1.0000         .10000E-03   10000.    
     2 'norm      '    2.6397       1.0000         .10000E-03   10000.    
     3 'Prefactor '    16.599       1.0000         .10000E-03   10000.    
     4 'norm      '    8.1126       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .19557       1.0000         .10000E-03   10000.    
     6 'Prefactor '    8.9501       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .11897E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10834E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    13.489       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10024E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    18.053       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    1.2708       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .17659       1.0000         .10000E-03   10000.    
    18 'Normalizat'    .79649       1.0000         .10000E-01   10.000    
    19 'Prefactor '    1.2800       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5090E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   8527.110     FROM MIGRAD    STATUS=CONVERGED     97 CALLS     1623 TOTAL
                     EDM=   .37E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          16.069        1.2154        .22345E-06   -.14157E-02
   2  norm          2.6388        4.4411        .10856E-05    .10182E-02
   3  Prefactor     16.589        1.0957        .89531E-07   -.50986E-03
   4  norm          8.1122        3.6444       -.64969E-06   -.48558E-02
   5  Prefactor     .26944        26.266        .66137E-05    .13596E-02
   6  Prefactor     8.9448        10.043        .26258E-05   -.77074E-03
   7  Prefactor     .10214E-03    62.975       -.16499E-04** at limit **
   8  Prefactor     .10000E-03    2.8973       -.31597E-05** at limit **
   9  Prefactor     .10000E-03    4.4400       -.31602E-05** at limit **
  10  Prefactor     13.489        2.1079        .45796E-06   -.39523E-03
  11  Prefactor     .10000E-03    2.2436       -.58748E-06** at limit **
  12  Prefactor     .10000E-03    15.377       -.10481E-06** at limit **
  13  Prefactor     .10000E-03    2.0545       -.74782E-06** at limit **
  14  norm          18.054        3.7046       -.40308E-07   -.94994E-04
  15  Prefactor     .10000E-03    5.0111        .59284E-05** at limit **
  16  norm          1.2710        1.9542        .17657E-06    .28666E-05
  17  Prefactor     .10036E-03    420.17        .40282E-04** at limit **
  18  Normalizat    .79656        .19238        .42628E-05    .19804E-04
  19  Prefactor     1.2799        .16913       -.15810E-05    .13153E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 16.0689
  norm       = 2.63879
  Prefactor  = 16.5892
  norm       = 8.1122
  Prefactor  = 0.269441
  Prefactor  = 8.94477
  Prefactor  = 0.000102135
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 13.4889
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 18.0536
  Prefactor  = 0.0001
  norm       = 1.271
  Prefactor  = 0.000100358
  Normalizat = 0.796555
  Prefactor  = 1.27989
 **********
 **   18 **HESSE 
 **********

 FCN=   8527.110     FROM HESSE     STATUS=OK           328 CALLS     1951 TOTAL
                     EDM=   .69E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          16.069        16.570        .24978E-02   -1.4906    
   2  norm          2.6388        5.0705        .62738E-02   -1.5383    
   3  Prefactor     16.589        26.392        .24576E-02   -1.4893    
   4  norm          8.1122        8.5544        .35191E-02   -1.5138    
   5  Prefactor     .26944        8.9900        .99574E-01   -1.5604    
   6  Prefactor     8.9448        11.088        .33494E-02   -1.5110    
   7  Prefactor     .10214E-03    82.924        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    2.8230        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    2.0058        .45312E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     13.489        11.168        .27265E-02   -1.4973    
  11  Prefactor     .10000E-03    2.2395        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    15.281        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    2.0444        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          18.054        3.7133        .23566E-02   -1.4858    
  15  Prefactor     .10000E-03    4.8750        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          1.2710        1.9943        .98664E-02   -1.5482    
  17  Prefactor     .10036E-03    18.719        .12906       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Normalizat    .79656        .16205        .67062E-01   -1.0020    
  19  Prefactor     1.2799        .14056        .47637E-01   -.83907    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.91274e-08
Minuit parameter uncertainties:
  1  16.5751
  2  5.07134
  3  26.4108
  4  8.55573
  5  3.11267
  6  11.0908
  7  0.0266498
  8  7.33628e-06
  9  1.08324e-05
  10  11.1701
  11  2.11385e-06
  12  0.000114914
  13  3.10591e-06
  14  3.71334
  15  2.79563e-05
  16  1.99444
  17  0.00517795
  18  0.16215
  19  0.140603
Done.

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

Extracting fit parameters...

4FGL J1357.1+1921
   Spectrum: PowerLaw
267    Prefactor:  1.000e-04  2.114e-06  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.280e+00  1.406e-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:  7.966e-01  1.622e-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: 4.57e-08 ph cm-2 s-1
Energy Flux Upper Limit: 3.61e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/60919/likelihoodResults_268617601_268876801_4FGL_J1357.1+1921_daily_bin113.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) = 8527.11177977
delta logL = -0.00210920772224

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 8527.1096705
delta logL = 6.25313987257e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.7483       1.0000          .0000       10.000    
     3 'Normalizat'    .79656       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.2799       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5090E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   8527.110     FROM MIGRAD    STATUS=CONVERGED    102 CALLS      257 TOTAL
                     EDM=   .16E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    21.694        .13542E-01** at limit **
   2  Index         2.3380        7.5797        .50000       -.16608E-05
   3  Normalizat    .79656        .11879E-01    .29670E-03    .71269E-04
   4  Prefactor     1.2799        .10484E-01    .21058E-03    .10722E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 2.33799
  Normalizat = 0.796555
  Prefactor  = 1.27989
 **********
 **   18 **HESSE 
 **********

 FCN=   8527.110     FROM HESSE     STATUS=NOT POSDEF    27 CALLS      284 TOTAL
                     EDM=   .14E-06    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    192.31        .14093E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.3380        5.5098        .50000       -.56144    
   3  Normalizat    .79656        .38801E-01    .11868E-04   -1.0020    
   4  Prefactor     1.2799        .34243E-01    .42116E-04   -.83907    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.41099e-07
Minuit parameter uncertainties:
  1  3.67465e-05
  2  938.184
  3  0.0388021
  4  0.0342438
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/60919': 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) = 8527.1096687
delta logL = 1.86025317817e-06

Extracting fit parameters...

4FGL J1357.1+1921
   Spectrum: PowerLaw
267    Prefactor:  1.000e-04  3.675e-05  1.000e-04  1.000e+04 ( 1.000e-12)
268        Index:  2.338e+00  9.382e+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.280e+00  3.424e-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:  7.966e-01  3.880e-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 -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/60919/cmap_HighResolution_268617601_268876801_4FGL_J1357.1+1921_daily_bin113.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.61e-03', job_status='DONE', photon_flux_upper_limit='4.57e-08', time_completed='2021-09-08 17:59:29.526000', job_id='60919', GAL2='1.28', fit_tolerance='1e-08', EG2='0.80', EG='0.80', time_epoch_completed='1631149169.53', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.28', dlogl='1.86e-06', ts2='-0.00', photon_index_error='0.00', photon_index='2.76' WHERE bin_id='113' AND source_name='4FGL J1357.1+1921' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  8 17:59:29 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0032>
Subject: Job 60919: <4FGL_J1357.1+1921_daily_bin113> in cluster <slac> Done

Job <4FGL_J1357.1+1921_daily_bin113> was submitted from host <rhel6-64m> by user <kocevski> in cluster <slac> at Wed Sep  8 17:45:22 2021
Job was executed on host(s) <bullet0032>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep  8 17:45:23 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:45:23 2021
Terminated at Wed Sep  8 17:59:32 2021
Results reported at Wed Sep  8 17:59:32 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1357.1+1921_daily_bin113 209.29 19.3608 268617601 268876801 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 :                                   602.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             284.27 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   846 sec.
    Turnaround time :                            850 sec.

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

