/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 239 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 = 7403
number of fields = 27
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J1357.1+1921_daily_bin248
RA = 209.29, Dec = 19.3608
tmin = 303609601, tmax = 303868801
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='61142', job_status='RUN', time_executed='2021-09-08 17:49:50.847500', time_epoch_executed='1631148590.85' WHERE source_name='4FGL J1357.1+1921' and cadence='daily' and bin_id='248'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/61142

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/61142/ft1_4FGL_J1357.1+1921_daily_bin248.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/61142/ft2_4FGL_J1357.1+1921_daily_bin248.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/61142/ft1_4FGL_J1357.1+1921_daily_bin248.fits outfile=/scratch/kocevski/61142/ft1_filteredMKT_4FGL_J1357.1+1921_daily_bin248.fits ra=209.29 dec=19.3608 rad=12.0 tmin=303609601.0 tmax=303868801.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.18
sys 0.23

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/61142/ft1_filtered_4FGL_J1357.1+1921_daily_bin248.fits" evtable="EVENTS" scfile=/scratch/kocevski/61142/ft2_4FGL_J1357.1+1921_daily_bin248.fits sctable="SC_DATA" outfile=/scratch/kocevski/61142/ltcube_303609601_303868801_4FGL_J1357.1+1921_daily_bin248.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/61142/ft2_4FGL_J1357.1+1921_daily_bin248.fits
.....................!
real 12.02
user 11.63
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/61142/ft1_filtered_4FGL_J1357.1+1921_daily_bin248.fits evtable="EVENTS" scfile=/scratch/kocevski/61142/ft2_4FGL_J1357.1+1921_daily_bin248.fits sctable="SC_DATA" expcube=/scratch/kocevski/61142/ltcube_303609601_303868801_4FGL_J1357.1+1921_daily_bin248.fits outfile=/scratch/kocevski/61142/expmap_303609601_303868801_4FGL_J1357.1+1921_daily_bin248.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/61142/ltcube_303609601_303868801_4FGL_J1357.1+1921_daily_bin248.fits
.....................!
real 190.75
user 185.29
sys 5.09

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/61142/ft1_filtered_4FGL_J1357.1+1921_daily_bin248.fits scfile=/scratch/kocevski/61142/ft2_4FGL_J1357.1+1921_daily_bin248.fits outfile=/scratch/kocevski/61142/cmap_303609601_303868801_4FGL_J1357.1+1921_daily_bin248.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.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/61142/ft1_filtered_4FGL_J1357.1+1921_daily_bin248.fits scfile=/scratch/kocevski/61142/ft2_4FGL_J1357.1+1921_daily_bin248.fits outfile=/scratch/kocevski/61142/cmap_HighResolution_303609601_303868801_4FGL_J1357.1+1921_daily_bin248.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/61142/ft1_filtered_4FGL_J1357.1+1921_daily_bin248.fits evtable="EVENTS" scfile=/scratch/kocevski/61142/ft2_4FGL_J1357.1+1921_daily_bin248.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/61142/Model_4FGL_J1357.1+1921_daily_bin248.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/61142/ft1_filtered_4FGL_J1357.1+1921_daily_bin248.fits....................!
real 50.65
user 49.28
sys 1.22

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10095E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    1.6766       1.0000         .10000E-03   10000.    
     3 'Prefactor '    14.070       1.0000         .10000E-03   10000.    
     4 'norm      '    39.303       1.0000         .10000E-03   10000.    
     5 'Prefactor '    20.397       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10284E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    1.5231       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10272E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    61.484       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10319E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    11.442       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10158E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    1.2381       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .13939E-02   1.0000         .10000E-03   10000.    
    18 'Normalizat'    1.2519       1.0000         .10000E-01   10.000    
    19 'Prefactor '    .92991       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=   6486.839     FROM MIGRAD    STATUS=CONVERGED    662 CALLS     2432 TOTAL
                     EDM=   .47E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    7.5601        .18142E-02** at limit **
   2  norm          1.6810        15.315        .32543E-03    .14987E-04
   3  Prefactor     14.081        20.470        .10678E-03   -.16076E-04
   4  norm          39.285        14.880        .63935E-04   -.25627E-03
   5  Prefactor     20.397        21.916        .88685E-04   -.28202E-05
   6  Prefactor     .10000E-03    17.076        .18142E-02** at limit **
   7  Prefactor     .10000E-03    57.126        .18142E-02** at limit **
   8  Prefactor     1.5244        4.3732        .26985E-03   -.23293E-03
   9  Prefactor     .10000E-03    2.2241        .11676E-02** at limit **
  10  Prefactor     .10000E-03    7.4556        .18142E-02** at limit **
  11  Prefactor     .10000E-03    3.7023        .15118E-02** at limit **
  12  Prefactor     61.454        42.145        .51172E-04    .44033E-04
  13  Prefactor     .10000E-03    4.1484        .15929E-02** at limit **
  14  norm          11.442        3.2576        .75371E-04   -.23530E-04
  15  Prefactor     .10000E-03    2.6398        .12738E-02** at limit **
  16  norm          1.2382        2.2006        .15512E-03   -.22631E-03
  17  Prefactor     .10000E-03    26.042        .11934    ** at limit **
  18  Normalizat    1.2519        .23206        .25209E-03   -.69901E-05
  19  Prefactor     .92974        .18998        .24525E-03   -.25490E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  norm       = 1.68095
  Prefactor  = 14.0808
  norm       = 39.2851
  Prefactor  = 20.3969
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 1.52441
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 61.4536
  Prefactor  = 0.0001
  norm       = 11.4423
  Prefactor  = 0.0001
  norm       = 1.23819
  Prefactor  = 0.0001
  Normalizat = 1.25193
  Prefactor  = 0.929743
 **********
 **   18 **HESSE 
 **********

 FCN=   6486.839     FROM HESSE     STATUS=OK           258 CALLS     2690 TOTAL
                     EDM=   .47E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    7.5602        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          1.6810        15.236        .13017E-04   -1.5449    
   3  Prefactor     14.081        20.467        .42713E-05   -1.4957    
   4  norm          39.285        14.847        .12787E-04   -1.4454    
   5  Prefactor     20.397        21.916        .35474E-05   -1.4804    
   6  Prefactor     .10000E-03    17.078        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    57.133        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     1.5244        4.3723        .10794E-04   -1.5461    
   9  Prefactor     .10000E-03    2.2244        .23353E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    7.4568        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    3.7025        .30235E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     61.454        42.143        .10234E-04   -1.4139    
  13  Prefactor     .10000E-03    4.1497        .31858E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          11.442        3.2576        .30148E-05   -1.5031    
  15  Prefactor     .10000E-03    2.6401        .25476E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          1.2382        2.2005        .62049E-05   -1.5485    
  17  Prefactor     .10000E-03    25.274        .12210       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Normalizat    1.2519        .23225        .10084E-04   -.85013    
  19  Prefactor     .92974        .19016        .49050E-04   -.95109    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.73864e-10
Minuit parameter uncertainties:
  1  8.45691e-06
  2  10.1246
  3  20.4771
  4  14.8485
  5  21.9244
  6  2.01429e-05
  7  0.000136297
  8  4.37319
  9  1.7397e-06
  10  7.49172e-06
  11  2.40613e-06
  12  42.1635
  13  4.51131e-05
  14  3.25769
  15  1.38666e-05
  16  2.20064
  17  0.000157995
  18  0.232439
  19  0.190295
Done.

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

Extracting fit parameters...

4FGL J1357.1+1921
   Spectrum: PowerLaw
267    Prefactor:  1.000e-04  2.406e-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:  9.297e-01  1.903e-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.252e+00  2.324e-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: 6.75e-08 ph cm-2 s-1
Energy Flux Upper Limit: 5.33e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/61142/likelihoodResults_303609601_303868801_4FGL_J1357.1+1921_daily_bin248.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) = 6486.84020327
delta logL = -0.00128356334426

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6486.83891968
delta logL = 3.52220013156e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.7480       1.0000          .0000       10.000    
     3 'Normalizat'    1.2519       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .92976       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.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   6486.839     FROM MIGRAD    STATUS=FAILED        87 CALLS      239 TOTAL
                     EDM=   .28E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10114E-03    129.52        .15175E-02** at limit **
   2  Index         2.6615        6.9593        .50000        .17031E-04
   3  Normalizat    1.2519        .28532E-01    .25209E-03   -.45549E-04
   4  Prefactor     .92975        .24461E-01    .24525E-03   -.27952E-04
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   6486.839     FROM SIMPLEX   STATUS=PROGRESS     127 CALLS      366 TOTAL
                     EDM=   .50E-05    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10105E-03    129.52        .23264E-03** at limit **
   2  Index         2.6614        6.9593        .60252E-04    .17031E-04
   3  Normalizat    1.2519        .28532E-01    .65839E-06   -.45549E-04
   4  Prefactor     .92974        .24461E-01    .82361E-06   -.27952E-04
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   6486.839     FROM MIGRAD    STATUS=CONVERGED     46 CALLS      412 TOTAL
                     EDM=   .33E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    698.52        .30349E-03** at limit **
   2  Index         2.4324        8.2323        .50000       -.79876E-07
   3  Normalizat    1.2519        .91097E-01    .10084E-04     .0000    
   4  Prefactor     .92975        .78098E-01    .98100E-05    .27813E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 2.43243
  Normalizat = 1.25193
  Prefactor  = 0.929746
 **********
 **   18 **HESSE 
 **********

 FCN=   6486.839     FROM HESSE     STATUS=OK            29 CALLS      441 TOTAL
                     EDM=   .14E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    4.5294        .60698E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.4324        5.6751        .50000       -.53927    
   3  Normalizat    1.2519        .21698        .10084E-04   -.85013    
   4  Prefactor     .92975        .18603        .19620E-05   -.95109    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.41651e-11
Minuit parameter uncertainties:
  1  1.59859e-05
  2  136.336
  3  0.217139
  4  0.186155
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/61142': No such file or directory
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6486.83891883
delta logL = 8.77484126249e-07

Extracting fit parameters...

4FGL J1357.1+1921
   Spectrum: PowerLaw
267    Prefactor:  1.000e-04  1.599e-05  1.000e-04  1.000e+04 ( 1.000e-12)
268        Index:  2.432e+00  1.363e+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:  9.297e-01  1.862e-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.252e+00  2.171e-01  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/61142/cmap_HighResolution_303609601_303868801_4FGL_J1357.1+1921_daily_bin248.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.33e-03', job_status='DONE', photon_flux_upper_limit='6.75e-08', time_completed='2021-09-08 17:59:57.471845', job_id='61142', GAL2='0.93', fit_tolerance='1e-08', EG2='1.25', EG='1.25', time_epoch_completed='1631149197.47', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.93', dlogl='8.77e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.76' WHERE bin_id='248' AND source_name='4FGL J1357.1+1921' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  8 17:59:57 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0235>
Subject: Job 61142: <4FGL_J1357.1+1921_daily_bin248> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1357.1+1921_daily_bin248 209.29 19.3608 303609601 303868801 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 :                                   592.34 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             213.30 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   855 sec.
    Turnaround time :                            858 sec.

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

