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


Performing analysis on: 4FGL_J1357.1+1921_daily_bin979
RA = 209.29, Dec = 19.3608
tmin = 493084801, tmax = 493344001
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='64510', job_status='RUN', time_executed='2021-09-08 17:55:52.065488', time_epoch_executed='1631148952.07' WHERE source_name='4FGL J1357.1+1921' and cadence='daily' and bin_id='979'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/64510

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/64510/ft1_4FGL_J1357.1+1921_daily_bin979.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/64510/ft2_4FGL_J1357.1+1921_daily_bin979.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/64510/ft1_4FGL_J1357.1+1921_daily_bin979.fits outfile=/scratch/kocevski/64510/ft1_filteredMKT_4FGL_J1357.1+1921_daily_bin979.fits ra=209.29 dec=19.3608 rad=12.0 tmin=493084801.0 tmax=493344001.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.57
user 3.35
sys 0.20

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/64510/ft1_filtered_4FGL_J1357.1+1921_daily_bin979.fits" evtable="EVENTS" scfile=/scratch/kocevski/64510/ft2_4FGL_J1357.1+1921_daily_bin979.fits sctable="SC_DATA" outfile=/scratch/kocevski/64510/ltcube_493084801_493344001_4FGL_J1357.1+1921_daily_bin979.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/64510/ft2_4FGL_J1357.1+1921_daily_bin979.fits
.....................!
real 11.98
user 11.60
sys 0.35

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/64510/ft1_filtered_4FGL_J1357.1+1921_daily_bin979.fits evtable="EVENTS" scfile=/scratch/kocevski/64510/ft2_4FGL_J1357.1+1921_daily_bin979.fits sctable="SC_DATA" expcube=/scratch/kocevski/64510/ltcube_493084801_493344001_4FGL_J1357.1+1921_daily_bin979.fits outfile=/scratch/kocevski/64510/expmap_493084801_493344001_4FGL_J1357.1+1921_daily_bin979.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/64510/ltcube_493084801_493344001_4FGL_J1357.1+1921_daily_bin979.fits
.....................!
real 191.36
user 185.92
sys 4.81

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/64510/ft1_filtered_4FGL_J1357.1+1921_daily_bin979.fits scfile=/scratch/kocevski/64510/ft2_4FGL_J1357.1+1921_daily_bin979.fits outfile=/scratch/kocevski/64510/cmap_493084801_493344001_4FGL_J1357.1+1921_daily_bin979.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.56
user 0.37
sys 0.15

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

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    37.012       1.0000         .10000E-03   10000.    
     2 'norm      '    1.3666       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    16.676       1.0000         .10000E-03   10000.    
     5 'Prefactor '    1.7978       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    95.632       1.0000         .10000E-03   10000.    
     8 'Prefactor '    2.8909       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    12.930       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    17.100       1.0000         .10000E-03   10000.    
    14 'norm      '    5.4703       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .60656       1.0000         .10000E-03   10000.    
    17 'Prefactor '    11.590       1.0000         .10000E-03   10000.    
    18 'Normalizat'    1.0591       1.0000         .10000E-01   10.000    
    19 'Prefactor '    .90853       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=   5329.461     FROM MIGRAD    STATUS=CONVERGED    386 CALLS     1894 TOTAL
                     EDM=   .62E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          37.014        21.726        .17265E-05    .37652E-04
   2  norm          1.3626        6.5116       -.25214E-06   -.15905E-03
   3  Prefactor     .10000E-03    23.471       -.46971E-05** at limit **
   4  norm          16.681        10.890       -.25741E-07   -.18291E-04
   5  Prefactor     1.7970        3.6941        .91582E-06   -.12441E-02
   6  Prefactor     .10000E-03    4.2898        .19921E-06** at limit **
   7  Prefactor     95.630        62.782       -.13663E-05   -.92027E-05
   8  Prefactor     2.8908        3.8381        .14244E-05    .24751E-04
   9  Prefactor     .10000E-03    4.8912       -.40960E-06** at limit **
  10  Prefactor     12.929        17.595       -.42490E-07   -.47132E-04
  11  Prefactor     .10000E-03    15.320        .99899E-05** at limit **
  12  Prefactor     .10000E-03    8.4962        .18178E-05** at limit **
  13  Prefactor     17.100        8.9477        .69167E-07    .41834E-03
  14  norm          5.4703        2.8613       -.17562E-08   -.32470E-04
  15  Prefactor     .10000E-03    11.996       -.76018E-05** at limit **
  16  norm          .61033        2.6970        .51834E-06   -.45463E-04
  17  Prefactor     11.589        36.212       -.31141E-05    .15113E-04
  18  Normalizat    1.0592        .19291       -.23215E-06   -.18236E-04
  19  Prefactor     .90845        .16643       -.37976E-07   -.48430E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 37.0143
  norm       = 1.36264
  Prefactor  = 0.0001
  norm       = 16.6814
  Prefactor  = 1.79704
  Prefactor  = 0.0001
  Prefactor  = 95.63
  Prefactor  = 2.89083
  Prefactor  = 0.0001
  Prefactor  = 12.9291
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 17.1003
  norm       = 5.47029
  Prefactor  = 0.0001
  norm       = 0.610333
  Prefactor  = 11.5887
  Normalizat = 1.05915
  Prefactor  = 0.908454
 **********
 **   18 **HESSE 
 **********

 FCN=   5329.461     FROM HESSE     STATUS=OK           272 CALLS     2166 TOTAL
                     EDM=   .26E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          37.014        21.745        .65877E-04   -1.4490    
   2  norm          1.3626        6.2364        .32200E-03   -1.5475    
   3  Prefactor     .10000E-03    23.547        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          16.681        10.664        .98080E-04   -1.4891    
   5  Prefactor     1.7970        10.815        .15591E-02   -1.5440    
   6  Prefactor     .10000E-03    4.2912        .14767E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     95.630        62.768        .41101E-04   -1.3749    
   8  Prefactor     2.8908        3.8384        .15899E-03   -1.5368    
   9  Prefactor     .10000E-03    5.0142        .31505E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     12.929        17.604        .11140E-03   -1.4989    
  11  Prefactor     .10000E-03    15.650        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    8.5082        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     17.100        8.9304        .96855E-04   -1.4881    
  14  norm          5.4703        2.8605        .86374E-04   -1.5240    
  15  Prefactor     .10000E-03    12.172        .36285E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .61033        4.7247        .21703E-02   -1.5552    
  17  Prefactor     11.589        35.866        .11767E-03   -1.5027    
  18  Normalizat    1.0592        .22370        .24507E-03   -.91074    
  19  Prefactor     .90845        .19252        .22865E-03   -.95846    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.62517e-08
Minuit parameter uncertainties:
  1  21.7495
  2  5.83103
  3  5.42139e-05
  4  10.6652
  5  8.81927
  6  8.22492e-08
  7  62.8119
  8  3.83873
  9  7.11599e-06
  10  17.6112
  11  3.43643e-05
  12  1.69737e-05
  13  8.93113
  14  2.86054
  15  6.53954e-05
  16  3.39636
  17  35.9329
  18  0.223899
  19  0.192659
Done.

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

Extracting fit parameters...

4FGL J1357.1+1921
   Spectrum: PowerLaw
267    Prefactor:  1.000e-04  3.436e-05  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.085e-01  1.927e-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.059e+00  2.239e-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: 8.87e-08 ph cm-2 s-1
Energy Flux Upper Limit: 7.01e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/64510/likelihoodResults_493084801_493344001_4FGL_J1357.1+1921_daily_bin979.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) = 5329.46138307
delta logL = -0.000305006926283

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5329.46108153
delta logL = -3.46729848388e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .11793E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.7192       1.0000          .0000       10.000    
     3 'Normalizat'    1.0586       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .90891       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=   5329.461     FROM MIGRAD    STATUS=FAILED       106 CALLS      262 TOTAL
                     EDM=   .12E-06    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    656.93        .36285E-02** at limit **
   2  Index         2.2749        5.9736        .50000       -.21860E-05
   3  Normalizat    1.0592        .24628E-01    .24507E-03    .32768E-03
   4  Prefactor     .90845        .21559E-01    .22865E-03    .36470E-03
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   5329.461     FROM SIMPLEX   STATUS=UNCHANGED    191 CALLS      453 TOTAL
                     EDM=   .12E-04    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    656.93        .77663E-03** at limit **
   2  Index         2.2749        5.9736        .19480E-06   -.21860E-05
   3  Normalizat    1.0592        .24628E-01    .54126E-08    .32768E-03
   4  Prefactor     .90845        .21559E-01    .38273E-08    .36470E-03
                               ERR DEF=  .500    

 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=   5329.461     FROM MIGRAD    STATUS=CONVERGED     70 CALLS      523 TOTAL
                     EDM=   .11E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    55.641        .14514E-03** at limit **
   2  Index         2.2747        6.0961        .50000       -.21974E-05
   3  Normalizat    1.0592        .21609        .98027E-05    .32566E-03
   4  Prefactor     .90845        .18917        .91461E-05    .36246E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 2.27474
  Normalizat = 1.05915
  Prefactor  = 0.908455
 **********
 **   18 **HESSE 
 **********

 FCN=   5329.461     FROM HESSE     STATUS=OK            27 CALLS      550 TOTAL
                     EDM=   .49E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    26.755        .29028E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.2747        5.2535        .50000       -.57645    
   3  Normalizat    1.0592        .21642        .19605E-05   -.91074    
   4  Prefactor     .90845        .18944        .18292E-05   -.95846    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.93222e-09
Minuit parameter uncertainties:
  1  0.000139836
  2  131.206
  3  0.216604
  4  0.189582
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/64510': 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) = 5329.46107678
delta logL = 1.28412830236e-06

Extracting fit parameters...

4FGL J1357.1+1921
   Spectrum: PowerLaw
267    Prefactor:  1.000e-04  1.398e-04  1.000e-04  1.000e+04 ( 1.000e-12)
268        Index:  2.275e+00  1.312e+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.085e-01  1.896e-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.059e+00  2.166e-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/64510/cmap_HighResolution_493084801_493344001_4FGL_J1357.1+1921_daily_bin979.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='7.01e-03', job_status='DONE', photon_flux_upper_limit='8.87e-08', time_completed='2021-09-08 18:04:38.050931', job_id='64510', GAL2='0.91', fit_tolerance='1e-08', EG2='1.06', EG='1.06', time_epoch_completed='1631149478.05', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.91', dlogl='1.28e-06', ts2='-0.00', photon_index_error='0.00', photon_index='2.76' WHERE bin_id='979' AND source_name='4FGL J1357.1+1921' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  8 18:04:38 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0123>
Subject: Job 64510: <4FGL_J1357.1+1921_daily_bin979> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1357.1+1921_daily_bin979 209.29 19.3608 493084801 493344001 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 :                                   521.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             290.17 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   538 sec.
    Turnaround time :                            540 sec.

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

