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


Performing analysis on: 4FGL_J1357.1+1921_daily_bin497
RA = 209.29, Dec = 19.3608
tmin = 368150401, tmax = 368409601
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='61527', job_status='RUN', time_executed='2021-09-08 17:50:04.000294', time_epoch_executed='1631148604.0' WHERE source_name='4FGL J1357.1+1921' and cadence='daily' and bin_id='497'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/61527

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/61527/ft1_4FGL_J1357.1+1921_daily_bin497.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/61527/ft2_4FGL_J1357.1+1921_daily_bin497.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/61527/ft1_4FGL_J1357.1+1921_daily_bin497.fits outfile=/scratch/kocevski/61527/ft1_filteredMKT_4FGL_J1357.1+1921_daily_bin497.fits ra=209.29 dec=19.3608 rad=12.0 tmin=368150401.0 tmax=368409601.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.32
user 3.10
sys 0.21

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/61527/ft1_filtered_4FGL_J1357.1+1921_daily_bin497.fits" evtable="EVENTS" scfile=/scratch/kocevski/61527/ft2_4FGL_J1357.1+1921_daily_bin497.fits sctable="SC_DATA" outfile=/scratch/kocevski/61527/ltcube_368150401_368409601_4FGL_J1357.1+1921_daily_bin497.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/61527/ft2_4FGL_J1357.1+1921_daily_bin497.fits
.....................!
real 11.66
user 11.31
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/61527/ft1_filtered_4FGL_J1357.1+1921_daily_bin497.fits evtable="EVENTS" scfile=/scratch/kocevski/61527/ft2_4FGL_J1357.1+1921_daily_bin497.fits sctable="SC_DATA" expcube=/scratch/kocevski/61527/ltcube_368150401_368409601_4FGL_J1357.1+1921_daily_bin497.fits outfile=/scratch/kocevski/61527/expmap_368150401_368409601_4FGL_J1357.1+1921_daily_bin497.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/61527/ltcube_368150401_368409601_4FGL_J1357.1+1921_daily_bin497.fits
.....................!
real 191.45
user 185.80
sys 5.28

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/61527/ft1_filtered_4FGL_J1357.1+1921_daily_bin497.fits scfile=/scratch/kocevski/61527/ft2_4FGL_J1357.1+1921_daily_bin497.fits outfile=/scratch/kocevski/61527/cmap_368150401_368409601_4FGL_J1357.1+1921_daily_bin497.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.38
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/61527/ft1_filtered_4FGL_J1357.1+1921_daily_bin497.fits scfile=/scratch/kocevski/61527/ft2_4FGL_J1357.1+1921_daily_bin497.fits outfile=/scratch/kocevski/61527/cmap_HighResolution_368150401_368409601_4FGL_J1357.1+1921_daily_bin497.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.37
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    5.4970       1.0000         .10000E-03   10000.    
     2 'norm      '    13.323       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10111E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    21.630       1.0000         .10000E-03   10000.    
     5 'Prefactor '    12.663       1.0000         .10000E-03   10000.    
     6 'Prefactor '    44.944       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    2.5783       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    6.3981       1.0000         .10000E-03   10000.    
    12 'Prefactor '    14.419       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10892E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    12.010       1.0000         .10000E-03   10000.    
    15 'Prefactor '    5.3921       1.0000         .10000E-03   10000.    
    16 'norm      '    1.8557       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    18 'Normalizat'    1.0480       1.0000         .10000E-01   10.000    
    19 'Prefactor '    1.0590       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=   6452.991     FROM MIGRAD    STATUS=CONVERGED    373 CALLS     1636 TOTAL
                     EDM=   .14E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          5.4965        14.528       -.45218E-06   -.48160E-04
   2  norm          13.323        8.0098       -.36924E-06   -.25529E-04
   3  Prefactor     .10000E-03    37.209       -.12373E-04** at limit **
   4  norm          21.628        11.932       -.86429E-07   -.18722E-04
   5  Prefactor     12.662        15.503       -.77043E-07   -.89665E-05
   6  Prefactor     44.942        23.597       -.12600E-05    .26624E-05
   7  Prefactor     .10000E-03    34.997        .12862E-04** at limit **
   8  Prefactor     .10000E-03    1.7550       -.55561E-08** at limit **
   9  Prefactor     2.5782        2.5066        .38269E-07    .20952E-03
  10  Prefactor     .10000E-03    3.8846        .98979E-08** at limit **
  11  Prefactor     6.3976        13.097       -.51189E-06   -.82317E-04
  12  Prefactor     14.420        15.711        .18775E-06    .62201E-05
  13  Prefactor     .10000E-03    7.7650        .71347E-09** at limit **
  14  norm          12.011        3.9661       -.98454E-07   -.42398E-05
  15  Prefactor     5.3920        5.2041       -.52986E-06   -.18546E-03
  16  norm          1.8563        2.7605       -.30450E-06   -.71109E-03
  17  Prefactor     .10000E-03    23.082       -.95444E-06** at limit **
  18  Normalizat    1.0481        .19399        .67458E-06   -.57153E-05
  19  Prefactor     1.0588        .16358        .56225E-07    .46560E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 5.4965
  norm       = 13.3233
  Prefactor  = 0.0001
  norm       = 21.6282
  Prefactor  = 12.6621
  Prefactor  = 44.9416
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 2.5782
  Prefactor  = 0.0001
  Prefactor  = 6.39758
  Prefactor  = 14.4198
  Prefactor  = 0.0001
  norm       = 12.0105
  Prefactor  = 5.39196
  norm       = 1.85633
  Prefactor  = 0.0001
  Normalizat = 1.0481
  Prefactor  = 1.05879
 **********
 **   18 **HESSE 
 **********

 FCN=   6452.991     FROM HESSE     STATUS=OK           274 CALLS     1910 TOTAL
                     EDM=   .28E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          5.4965        14.528        .17137E-03   -1.5239    
   2  norm          13.323        8.0097        .10974E-03   -1.4978    
   3  Prefactor     .10000E-03    37.090        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          21.628        11.967        .86124E-04   -1.4778    
   5  Prefactor     12.662        15.508        .11256E-03   -1.4996    
   6  Prefactor     44.942        23.670        .59804E-04   -1.4366    
   7  Prefactor     .10000E-03    34.622        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    1.7803        .10390E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     2.5782        2.5182        .12232E-03   -1.5387    
  10  Prefactor     .10000E-03    3.8922        .15462E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     6.3976        13.156        .15868E-03   -1.5202    
  12  Prefactor     14.420        15.711        .10548E-03   -1.4948    
  13  Prefactor     .10000E-03    8.0914        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          12.011        3.9665        .88328E-04   -1.5015    
  15  Prefactor     5.3920        5.2112        .17306E-03   -1.5244    
  16  norm          1.8563        2.7751        .15694E-03   -1.5435    
  17  Prefactor     .10000E-03    23.142        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Normalizat    1.0481        .23074        .26836E-03   -.91436    
  19  Prefactor     1.0588        .19409        .23233E-03   -.90795    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.82993e-10
Minuit parameter uncertainties:
  1  14.5376
  2  8.01038
  3  7.31803e-05
  4  11.9684
  5  15.5127
  6  23.6752
  7  3.14966e-05
  8  4.85604e-07
  9  2.51831
  10  1.04028e-06
  11  13.1623
  12  15.7154
  13  5.34452e-06
  14  3.96662
  15  5.21165
  16  2.77526
  17  6.2879e-06
  18  0.230961
  19  0.194224
Done.

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

Extracting fit parameters...

4FGL J1357.1+1921
   Spectrum: PowerLaw
267    Prefactor:  6.398e+00  1.316e+01  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.059e+00  1.942e-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.048e+00  2.310e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.26
Ra Dec: 209.290 19.361
Photon Flux Upper Limit: 1.30e-07 ph cm-2 s-1
Energy Flux Upper Limit: 1.03e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/61527/likelihoodResults_368150401_368409601_4FGL_J1357.1+1921_daily_bin497.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) = 6452.84239977
delta logL = 0.148849050268

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6452.81661151
delta logL = 0.174637315027

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    4.0000       1.0000         .10000E-03   10000.    
     2 'Index     '    3.7683       1.0000          .0000       10.000    
     3 'Normalizat'    1.0187       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0747       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.
 MACHINE ACCURACY LIMITS FURTHER IMPROVEMENT.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   6452.817     FROM MIGRAD    STATUS=CONVERGED     86 CALLS      240 TOTAL
                     EDM=   .55E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     4.0001        14.057        .19829E-03    .10433E-02
   2  Index         3.7687        2.6499        .41631E-02   -.19553E-05
   3  Normalizat    1.0187        .22811        .27161E-03    .66971E-06
   4  Prefactor     1.0747        .19440        .23080E-03    .24629E-06
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 4.0001
  Index      = 3.76869
  Normalizat = 1.01872
  Prefactor  = 1.07474
 **********
 **   18 **HESSE 
 **********

 FCN=   6452.817     FROM HESSE     STATUS=OK            25 CALLS      265 TOTAL
                     EDM=   .36E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     4.0001        11.284        .79316E-05   -1.5308    
   2  Index         3.7687        2.1679        .16653E-03   -.24882    
   3  Normalizat    1.0187        .22821        .10864E-04   -.92406    
   4  Prefactor     1.0747        .19399        .92318E-05   -.90278    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.63578e-09
Minuit parameter uncertainties:
  1  11.2898
  2  2.24761
  3  0.228429
  4  0.194119
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/61527': 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) = 6452.81661145
delta logL = 0.174637372979

Extracting fit parameters...

4FGL J1357.1+1921
   Spectrum: PowerLaw
267    Prefactor:  4.000e+00  1.129e+01  1.000e-04  1.000e+04 ( 1.000e-12)
268        Index:  3.769e+00  2.248e+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.075e+00  1.941e-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.019e+00  2.284e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.26
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/61527/cmap_HighResolution_368150401_368409601_4FGL_J1357.1+1921_daily_bin497.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.03e-02', job_status='DONE', photon_flux_upper_limit='1.30e-07', time_completed='2021-09-08 17:59:01.414034', job_id='61527', GAL2='1.07', fit_tolerance='1e-08', EG2='1.02', EG='1.05', time_epoch_completed='1631149141.41', return_code2='0', ts='0.26', comment='SUCCESS', return_code='0', GAL='1.06', dlogl='1.75e-01', ts2='0.63', photon_index_error='0.00', photon_index='2.76' WHERE bin_id='497' AND source_name='4FGL J1357.1+1921' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  8 17:59:01 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0155>
Subject: Job 61527: <4FGL_J1357.1+1921_daily_bin497> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1357.1+1921_daily_bin497 209.29 19.3608 368150401 368409601 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 :                                   531.27 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             290.36 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   765 sec.
    Turnaround time :                            768 sec.

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

