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


Performing analysis on: 4FGL_J1357.1+1921_daily_bin820
RA = 209.29, Dec = 19.3608
tmin = 451872001, tmax = 452131201
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='64244', job_status='RUN', time_executed='2021-09-08 17:59:17.900285', time_epoch_executed='1631149157.9' WHERE source_name='4FGL J1357.1+1921' and cadence='daily' and bin_id='820'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/64244

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/64244/ft1_4FGL_J1357.1+1921_daily_bin820.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/64244/ft2_4FGL_J1357.1+1921_daily_bin820.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/64244/ft1_4FGL_J1357.1+1921_daily_bin820.fits outfile=/scratch/kocevski/64244/ft1_filteredMKT_4FGL_J1357.1+1921_daily_bin820.fits ra=209.29 dec=19.3608 rad=12.0 tmin=451872001.0 tmax=452131201.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.59
user 3.17
sys 0.39

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/64244/ft1_filtered_4FGL_J1357.1+1921_daily_bin820.fits" evtable="EVENTS" scfile=/scratch/kocevski/64244/ft2_4FGL_J1357.1+1921_daily_bin820.fits sctable="SC_DATA" outfile=/scratch/kocevski/64244/ltcube_451872001_452131201_4FGL_J1357.1+1921_daily_bin820.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/64244/ft2_4FGL_J1357.1+1921_daily_bin820.fits
.....................!
real 12.63
user 12.06
sys 0.53

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/64244/ft1_filtered_4FGL_J1357.1+1921_daily_bin820.fits evtable="EVENTS" scfile=/scratch/kocevski/64244/ft2_4FGL_J1357.1+1921_daily_bin820.fits sctable="SC_DATA" expcube=/scratch/kocevski/64244/ltcube_451872001_452131201_4FGL_J1357.1+1921_daily_bin820.fits outfile=/scratch/kocevski/64244/expmap_451872001_452131201_4FGL_J1357.1+1921_daily_bin820.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/64244/ltcube_451872001_452131201_4FGL_J1357.1+1921_daily_bin820.fits
.....................!
real 189.79
user 185.38
sys 4.00

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/64244/ft1_filtered_4FGL_J1357.1+1921_daily_bin820.fits scfile=/scratch/kocevski/64244/ft2_4FGL_J1357.1+1921_daily_bin820.fits outfile=/scratch/kocevski/64244/cmap_451872001_452131201_4FGL_J1357.1+1921_daily_bin820.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.54
user 0.37
sys 0.15

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

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10058E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    .10078E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10965E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    .42621       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .43452E-02   1.0000         .10000E-03   10000.    
     6 'Prefactor '    13.365       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    1.0175       1.0000         .10000E-03   10000.    
     9 'Prefactor '    2.8012       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .11734E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    4.8702       1.0000         .10000E-03   10000.    
    12 'Prefactor '    16.550       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10045E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    3.2387       1.0000         .10000E-03   10000.    
    15 'Prefactor '    4.4797       1.0000         .10000E-03   10000.    
    16 'norm      '    6.3849       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    18 'Normalizat'    .78024       1.0000         .10000E-01   10.000    
    19 'Prefactor '    1.1181       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=   5349.567     FROM MIGRAD    STATUS=CONVERGED    401 CALLS     1679 TOTAL
                     EDM=   .64E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    20.180        .71155E-05** at limit **
   2  norm          .10000E-03    4.3226        .24735E-07** at limit **
   3  Prefactor     .10000E-03    73.952       -.31477E-05** at limit **
   4  norm          .42531        4.9986       -.54236E-06   -.40181E-04
   5  Prefactor     .10000E-03    33.378        .12447E-04** at limit **
   6  Prefactor     13.346        14.780        .30613E-05   -.79496E-04
   7  Prefactor     .10000E-03    22.280       -.10106E-04** at limit **
   8  Prefactor     1.0172        2.6870       -.66700E-06   -.10516E-02
   9  Prefactor     2.8001        5.1019       -.44039E-06   -.40246E-03
  10  Prefactor     .10000E-03    26.156       -.31462E-05** at limit **
  11  Prefactor     4.8688        9.9806       -.42061E-06   -.11998E-03
  12  Prefactor     16.546        26.968       -.27089E-05   -.64121E-05
  13  Prefactor     .10000E-03    3.8699       -.13491E-06** at limit **
  14  norm          3.2389        2.2379        .17276E-07   -.12061E-04
  15  Prefactor     4.4785        6.2635        .20766E-05   -.34342E-03
  16  norm          6.3853        2.9803       -.14057E-06   -.88869E-04
  17  Prefactor     .10000E-03    10.978       -.28275E-07** at limit **
  18  Normalizat    .77998        .19253       -.15457E-06    .19744E-04
  19  Prefactor     1.1182        .16858        .96575E-07    .35042E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.42531
  Prefactor  = 0.000100002
  Prefactor  = 13.3463
  Prefactor  = 0.0001
  Prefactor  = 1.01724
  Prefactor  = 2.80013
  Prefactor  = 0.0001
  Prefactor  = 4.8688
  Prefactor  = 16.5464
  Prefactor  = 0.0001
  norm       = 3.23889
  Prefactor  = 4.4785
  norm       = 6.38529
  Prefactor  = 0.0001
  Normalizat = 0.779976
  Prefactor  = 1.1182
 **********
 **   18 **HESSE 
 **********

 FCN=   5349.567     FROM HESSE     STATUS=OK           278 CALLS     1957 TOTAL
                     EDM=   .13E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    20.308        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .10000E-03    7.9582        .27551E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    75.972        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          .42531        34.477        .28947E-02   -1.5578    
   5  Prefactor     .10000E-03    33.547        .38779E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     13.346        14.695        .10956E-03   -1.4977    
   7  Prefactor     .10000E-03    22.226        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     1.0172        2.6040        .19300E-02   -1.5506    
   9  Prefactor     2.8001        5.1190        .21482E-03   -1.5373    
  10  Prefactor     .10000E-03    26.742        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     4.8688        9.9960        .18227E-03   -1.5267    
  12  Prefactor     16.546        26.998        .98452E-04   -1.4894    
  13  Prefactor     .10000E-03    3.8900        .14042E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          3.2389        2.2381        .88274E-04   -1.5348    
  15  Prefactor     4.4785        6.1407        .19024E-03   -1.5285    
  16  norm          6.3853        2.9801        .83193E-04   -1.5203    
  17  Prefactor     .10000E-03    10.983        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Normalizat    .77998        .22539        .26463E-03   -1.0082    
  19  Prefactor     1.1182        .19871        .20252E-03   -.88887    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.27924e-08
Minuit parameter uncertainties:
  1  3.22427e-05
  2  4.58022e-05
  3  9.0133e-05
  4  7.66226
  5  0.000501402
  6  14.6991
  7  7.54888e-06
  8  2.6043
  9  5.1198
  10  8.15011e-05
  11  9.99947
  12  27.0179
  13  1.52454e-05
  14  2.23818
  15  6.14157
  16  2.9802
  17  5.92528e-06
  18  0.225657
  19  0.198839
Done.

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

Extracting fit parameters...

4FGL J1357.1+1921
   Spectrum: PowerLaw
267    Prefactor:  4.869e+00  9.999e+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

GAL_V02
   Spectrum: PowerLaw
506    Prefactor:  1.118e+00  1.988e-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.800e-01  2.257e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/64244/likelihoodResults_451872001_452131201_4FGL_J1357.1+1921_daily_bin820.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): 0
logL (Free Index) = 5349.5185968
delta logL = 0.0480655289421

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5349.51414901
delta logL = 0.0525133198607

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    4.0820       1.0000         .10000E-03   10000.    
     2 'Index     '    3.2663       1.0000          .0000       10.000    
     3 'Normalizat'    .76985       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1235       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=   5349.514     FROM MIGRAD    STATUS=CONVERGED    101 CALLS      260 TOTAL
                     EDM=   .11E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     4.0883        10.372        .99774E-03   -.25033E-03
   2  Index         3.2662        1.8874        .14190E-01   -.37638E-04
   3  Normalizat    .76977        .22235        .26625E-03   -.35014E-04
   4  Prefactor     1.1235        .19821        .20210E-03   -.17551E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 4.08828
  Index      = 3.26616
  Normalizat = 0.769769
  Prefactor  = 1.12349
 **********
 **   18 **HESSE 
 **********

 FCN=   5349.514     FROM HESSE     STATUS=OK            25 CALLS      285 TOTAL
                     EDM=   .16E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     4.0883        8.9209        .39910E-04   -1.5304    
   2  Index         3.2662        1.6345        .56760E-03   -.35412    
   3  Normalizat    .76977        .22263        .10650E-04   -1.0120    
   4  Prefactor     1.1235        .19825        .80838E-05   -.88719    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.59856e-10
Minuit parameter uncertainties:
  1  8.92382
  2  1.66952
  3  0.222896
  4  0.198378
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/64244': 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) = 5349.51414851
delta logL = 0.0525138251778

Extracting fit parameters...

4FGL J1357.1+1921
   Spectrum: PowerLaw
267    Prefactor:  4.088e+00  8.924e+00  1.000e-04  1.000e+04 ( 1.000e-12)
268        Index:  3.266e+00  1.670e+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:  1.123e+00  1.984e-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.698e-01  2.229e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.30
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/64244/cmap_HighResolution_451872001_452131201_4FGL_J1357.1+1921_daily_bin820.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='8.77e-03', job_status='DONE', photon_flux_upper_limit='1.11e-07', time_completed='2021-09-08 18:07:42.521829', job_id='64244', GAL2='1.12', fit_tolerance='1e-08', EG2='0.77', EG='0.78', time_epoch_completed='1631149662.52', return_code2='0', ts='0.30', comment='SUCCESS', return_code='0', GAL='1.12', dlogl='5.25e-02', ts2='0.43', photon_index_error='0.00', photon_index='2.76' WHERE bin_id='820' AND source_name='4FGL J1357.1+1921' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  8 18:07:42 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0228>
Subject: Job 64244: <4FGL_J1357.1+1921_daily_bin820> in cluster <slac> Done

Job <4FGL_J1357.1+1921_daily_bin820> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Wed Sep  8 17:55:17 2021
Job was executed on host(s) <bullet0228>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep  8 17:55:19 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:55:19 2021
Terminated at Wed Sep  8 18:07:43 2021
Results reported at Wed Sep  8 18:07:43 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1357.1+1921_daily_bin820 209.29 19.3608 451872001 452131201 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 :                                   498.43 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             228.91 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   743 sec.
    Turnaround time :                            746 sec.

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

