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


Performing analysis on: 4FGL_J1357.1+1921_daily_bin663
RA = 209.29, Dec = 19.3608
tmin = 411177601, tmax = 411436801
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='62782', job_status='RUN', time_executed='2021-09-08 17:53:03.918472', time_epoch_executed='1631148783.92' WHERE source_name='4FGL J1357.1+1921' and cadence='daily' and bin_id='663'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/62782

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/62782/ft1_4FGL_J1357.1+1921_daily_bin663.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/62782/ft2_4FGL_J1357.1+1921_daily_bin663.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/62782/ft1_4FGL_J1357.1+1921_daily_bin663.fits outfile=/scratch/kocevski/62782/ft1_filteredMKT_4FGL_J1357.1+1921_daily_bin663.fits ra=209.29 dec=19.3608 rad=12.0 tmin=411177601.0 tmax=411436801.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 6.66
user 6.36
sys 0.25

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/62782/ft1_filtered_4FGL_J1357.1+1921_daily_bin663.fits" evtable="EVENTS" scfile=/scratch/kocevski/62782/ft2_4FGL_J1357.1+1921_daily_bin663.fits sctable="SC_DATA" outfile=/scratch/kocevski/62782/ltcube_411177601_411436801_4FGL_J1357.1+1921_daily_bin663.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/62782/ft2_4FGL_J1357.1+1921_daily_bin663.fits
.....................!
real 12.84
user 12.11
sys 0.37

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/62782/ft1_filtered_4FGL_J1357.1+1921_daily_bin663.fits evtable="EVENTS" scfile=/scratch/kocevski/62782/ft2_4FGL_J1357.1+1921_daily_bin663.fits sctable="SC_DATA" expcube=/scratch/kocevski/62782/ltcube_411177601_411436801_4FGL_J1357.1+1921_daily_bin663.fits outfile=/scratch/kocevski/62782/expmap_411177601_411436801_4FGL_J1357.1+1921_daily_bin663.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/62782/ltcube_411177601_411436801_4FGL_J1357.1+1921_daily_bin663.fits
.....................!
real 190.12
user 185.51
sys 4.20

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/62782/ft1_filtered_4FGL_J1357.1+1921_daily_bin663.fits scfile=/scratch/kocevski/62782/ft2_4FGL_J1357.1+1921_daily_bin663.fits outfile=/scratch/kocevski/62782/cmap_411177601_411436801_4FGL_J1357.1+1921_daily_bin663.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.55
user 0.36
sys 0.16

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

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    6.2380       1.0000         .10000E-03   10000.    
     2 'norm      '    5.3518       1.0000         .10000E-03   10000.    
     3 'Prefactor '    15.296       1.0000         .10000E-03   10000.    
     4 'norm      '    .57046       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    7.1569       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    3.2467       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .97228       1.0000         .10000E-03   10000.    
    12 'Prefactor '    37.289       1.0000         .10000E-03   10000.    
    13 'Prefactor '    2.5009       1.0000         .10000E-03   10000.    
    14 'norm      '    9.3841       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .38771       1.0000         .10000E-03   10000.    
    16 'norm      '    2.0409       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    18 'Normalizat'    .78826       1.0000         .10000E-01   10.000    
    19 'Prefactor '    1.2006       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=   12318.78     FROM MIGRAD    STATUS=CONVERGED    389 CALLS     1654 TOTAL
                     EDM=   .27E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          6.2384        7.9136        .85115E-07    .81407E-05
   2  norm          5.3520        4.1790       -.91304E-06   -.24303E-03
   3  Prefactor     15.295        17.234       -.47131E-06   -.25898E-04
   4  norm          .57144        2.8711        .64126E-07   -.58961E-03
   5  Prefactor     .10000E-03    5.6822       -.32217E-06** at limit **
   6  Prefactor     7.1578        10.882       -.54119E-07   -.31152E-05
   7  Prefactor     .10000E-03    20.467       -.87815E-06** at limit **
   8  Prefactor     .10000E-03    1.0641        .59556E-08** at limit **
   9  Prefactor     3.2472        2.5914        .15413E-06   -.53210E-05
  10  Prefactor     .10000E-03    2.9868        .38269E-07** at limit **
  11  Prefactor     .97188        4.8065        .15893E-05   -.44500E-03
  12  Prefactor     37.283        18.951       -.20058E-05   -.17029E-03
  13  Prefactor     2.4998        3.4193        .30297E-06   -.53573E-04
  14  norm          9.3843        2.2494       -.21017E-07   -.21858E-04
  15  Prefactor     .40565        1.5388       -.14482E-06    .18976E-03
  16  norm          2.0406        1.4729        .24260E-07    .25033E-05
  17  Prefactor     .10000E-03    27.587       -.61239E-06** at limit **
  18  Normalizat    .78815        .12714        .55265E-06   -.30755E-04
  19  Prefactor     1.2006        .11223       -.37640E-06    .66692E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 6.23841
  norm       = 5.35205
  Prefactor  = 15.2949
  norm       = 0.571435
  Prefactor  = 0.0001
  Prefactor  = 7.15785
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 3.24718
  Prefactor  = 0.0001
  Prefactor  = 0.971878
  Prefactor  = 37.2831
  Prefactor  = 2.49976
  norm       = 9.38434
  Prefactor  = 0.405654
  norm       = 2.04057
  Prefactor  = 0.0001
  Normalizat = 0.788148
  Prefactor  = 1.20058
 **********
 **   18 **HESSE 
 **********

 FCN=   12318.78     FROM HESSE     STATUS=OK           272 CALLS     1926 TOTAL
                     EDM=   .14E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          6.2384        7.9103        .16072E-03   -1.5208    
   2  norm          5.3520        4.1488        .17372E-03   -1.5245    
   3  Prefactor     15.295        17.258        .10241E-03   -1.4926    
   4  norm          .57144        4.1744        .43247E-03   -1.5557    
   5  Prefactor     .10000E-03    5.6936        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     7.1578        10.895        .14994E-03   -1.5173    
   7  Prefactor     .10000E-03    20.561        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    1.0757        .11176E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     3.2472        2.5910        .15455E-03   -1.5348    
  10  Prefactor     .10000E-03    3.0073        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .97188        6.2422        .52269E-03   -1.5511    
  12  Prefactor     37.283        19.281        .65633E-04   -1.4486    
  13  Prefactor     2.4998        3.3862        .22568E-03   -1.5392    
  14  norm          9.3843        2.2506        .78800E-04   -1.5095    
  15  Prefactor     .40565        7.1534        .24484E-02   -1.5581    
  16  norm          2.0406        1.4692        .10985E-03   -1.5422    
  17  Prefactor     .10000E-03    28.549        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Normalizat    .78815        .14783        .27692E-03   -1.0051    
  19  Prefactor     1.2006        .13125        .20353E-03   -.86313    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.39237e-09
Minuit parameter uncertainties:
  1  7.91165
  2  4.14898
  3  17.2641
  4  3.08897
  5  7.38472e-06
  6  10.8975
  7  3.78098e-05
  8  8.53132e-07
  9  2.59112
  10  3.61113e-07
  11  4.92661
  12  19.2842
  13  3.38646
  14  2.25066
  15  3.40699
  16  1.4692
  17  1.3552e-05
  18  0.147908
  19  0.131286
Done.

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

Extracting fit parameters...

4FGL J1357.1+1921
   Spectrum: PowerLaw
267    Prefactor:  9.719e-01  4.927e+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.201e+00  1.313e-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.881e-01  1.479e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.04
Ra Dec: 209.290 19.361
Photon Flux Upper Limit: 5.47e-08 ph cm-2 s-1
Energy Flux Upper Limit: 4.32e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/62782/likelihoodResults_411177601_411436801_4FGL_J1357.1+1921_daily_bin663.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) = 12318.5054214
delta logL = 0.27394135338

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 12318.5040558
delta logL = 0.275306919897

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    3.4506       1.0000         .10000E-03   10000.    
     2 'Index     '    1.8068       1.0000          .0000       10.000    
     3 'Normalizat'    .79537       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1913       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.

 FCN=   12318.50     FROM MIGRAD    STATUS=CONVERGED     64 CALLS      268 TOTAL
                     EDM=   .42E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     3.3738        5.3693         .0000        .97616E-02
   2  Index         1.8027        .49828         .0000       -.10474E-03
   3  Normalizat    .79532        .12373         .0000        .50382E-03
   4  Prefactor     1.1914        .11073         .0000        .10259E-02
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 3.37379
  Index      = 1.80268
  Normalizat = 0.795317
  Prefactor  = 1.19137
 **********
 **   18 **HESSE 
 **********

 FCN=   12318.50     FROM HESSE     STATUS=OK            31 CALLS      299 TOTAL
                     EDM=   .10E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     3.3738        5.4286        .10886E-02   -1.5341    
   2  Index         1.8027        .73879        .13433E-01   -.69380    
   3  Normalizat    .79532        .14469        .27577E-03   -1.0024    
   4  Prefactor     1.1914        .12960        .20418E-03   -.86597    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.04124e-08
Minuit parameter uncertainties:
  1  5.42943
  2  0.743413
  3  0.144756
  4  0.129634
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/62782': 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) = 12318.503961
delta logL = 0.275401787863

Extracting fit parameters...

4FGL J1357.1+1921
   Spectrum: PowerLaw
267    Prefactor:  3.374e+00  5.429e+00  1.000e-04  1.000e+04 ( 1.000e-12)
268        Index:  1.803e+00  7.434e-01  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.191e+00  1.296e-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.953e-01  1.448e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.04
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/62782/cmap_HighResolution_411177601_411436801_4FGL_J1357.1+1921_daily_bin663.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.32e-03', job_status='DONE', photon_flux_upper_limit='5.47e-08', time_completed='2021-09-08 18:06:00.065165', job_id='62782', GAL2='1.19', fit_tolerance='1e-08', EG2='0.80', EG='0.79', time_epoch_completed='1631149560.07', return_code2='0', ts='0.04', comment='SUCCESS', return_code='0', GAL='1.20', dlogl='2.75e-01', ts2='0.60', photon_index_error='0.00', photon_index='2.76' WHERE bin_id='663' AND source_name='4FGL J1357.1+1921' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  8 18:06:00 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0221>
Subject: Job 62782: <4FGL_J1357.1+1921_daily_bin663> in cluster <slac> Done

Job <4FGL_J1357.1+1921_daily_bin663> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Wed Sep  8 17:50:30 2021
Job was executed on host(s) <bullet0221>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep  8 17:50:32 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:50:32 2021
Terminated at Wed Sep  8 18:06:00 2021
Results reported at Wed Sep  8 18:06:00 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1357.1+1921_daily_bin663 209.29 19.3608 411177601 411436801 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 :                                   758.23 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             264.46 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   928 sec.
    Turnaround time :                            930 sec.

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

