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


Performing analysis on: 4FGL_J1357.1+1921_daily_bin1142
RA = 209.29, Dec = 19.3608
tmin = 535334401, tmax = 535593601
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='65926', job_status='RUN', time_executed='2021-09-08 18:00:36.313031', time_epoch_executed='1631149236.31' WHERE source_name='4FGL J1357.1+1921' and cadence='daily' and bin_id='1142'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/65926

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/65926/ft1_4FGL_J1357.1+1921_daily_bin1142.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/65926/ft2_4FGL_J1357.1+1921_daily_bin1142.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/65926/ft1_4FGL_J1357.1+1921_daily_bin1142.fits outfile=/scratch/kocevski/65926/ft1_filteredMKT_4FGL_J1357.1+1921_daily_bin1142.fits ra=209.29 dec=19.3608 rad=12.0 tmin=535334401.0 tmax=535593601.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 5.12
user 4.86
sys 0.22

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/65926/ft1_filtered_4FGL_J1357.1+1921_daily_bin1142.fits" evtable="EVENTS" scfile=/scratch/kocevski/65926/ft2_4FGL_J1357.1+1921_daily_bin1142.fits sctable="SC_DATA" outfile=/scratch/kocevski/65926/ltcube_535334401_535593601_4FGL_J1357.1+1921_daily_bin1142.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/65926/ft2_4FGL_J1357.1+1921_daily_bin1142.fits
.....................!
real 11.62
user 11.24
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/65926/ft1_filtered_4FGL_J1357.1+1921_daily_bin1142.fits evtable="EVENTS" scfile=/scratch/kocevski/65926/ft2_4FGL_J1357.1+1921_daily_bin1142.fits sctable="SC_DATA" expcube=/scratch/kocevski/65926/ltcube_535334401_535593601_4FGL_J1357.1+1921_daily_bin1142.fits outfile=/scratch/kocevski/65926/expmap_535334401_535593601_4FGL_J1357.1+1921_daily_bin1142.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/65926/ltcube_535334401_535593601_4FGL_J1357.1+1921_daily_bin1142.fits
.....................!
real 191.80
user 186.41
sys 5.02

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/65926/ft1_filtered_4FGL_J1357.1+1921_daily_bin1142.fits scfile=/scratch/kocevski/65926/ft2_4FGL_J1357.1+1921_daily_bin1142.fits outfile=/scratch/kocevski/65926/cmap_535334401_535593601_4FGL_J1357.1+1921_daily_bin1142.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.15

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

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10025E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10543E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    .10006E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    18.544       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .17996E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10172E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    2.9493       1.0000         .10000E-03   10000.    
     9 'Prefactor '    2.7944       1.0000         .10000E-03   10000.    
    10 'Prefactor '    2.6259       1.0000         .10000E-03   10000.    
    11 'Prefactor '    30.719       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .14761E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .36085E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    .18864E-02   1.0000         .10000E-03   10000.    
    15 'Prefactor '    8.0277       1.0000         .10000E-03   10000.    
    16 'norm      '    10.335       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10021E-03   1.0000         .10000E-03   10000.    
    18 'Normalizat'    1.1049       1.0000         .10000E-01   10.000    
    19 'Prefactor '    1.1176       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=   6387.745     FROM MIGRAD    STATUS=CONVERGED    399 CALLS     1905 TOTAL
                     EDM=   .63E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    9.9976        .41409E-06** at limit **
   2  norm          .10000E-03    2.6019       -.64482E-07** at limit **
   3  Prefactor     .10000E-03    15.544        .19024E-04** at limit **
   4  norm          .10000E-03    5.5847        .10377E-07** at limit **
   5  Prefactor     18.553        28.809        .26888E-05    .12425E-03
   6  Prefactor     .10000E-03    24.596       -.17658E-04** at limit **
   7  Prefactor     .10000E-03    14.543       -.16721E-04** at limit **
   8  Prefactor     2.9507        3.5393       -.12665E-06   -.11231E-03
   9  Prefactor     2.7926        5.0226        .49925E-06   -.65051E-03
  10  Prefactor     2.6192        22.213        .56821E-05   -.10860E-03
  11  Prefactor     30.726        15.074       -.15512E-05   -.55503E-04
  12  Prefactor     .10000E-03    135.62       -.12712E-04** at limit **
  13  Prefactor     .10002E-03    5.8374        .22112E-05** at limit **
  14  norm          .10008E-03    1.3103        .41514E-06** at limit **
  15  Prefactor     8.0143        8.4976       -.19651E-05   -.74982E-03
  16  norm          10.336        3.8137        .88250E-07   -.29413E-03
  17  Prefactor     .10000E-03    31.452        .14894E-04** at limit **
  18  Normalizat    1.1043        .20043        .23901E-06   -.16286E-03
  19  Prefactor     1.1180        .16809       -.23494E-07   -.25465E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 18.5529
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 2.95072
  Prefactor  = 2.79256
  Prefactor  = 2.61922
  Prefactor  = 30.7265
  Prefactor  = 0.0001
  Prefactor  = 0.000100019
  norm       = 0.000100082
  Prefactor  = 8.01426
  norm       = 10.3358
  Prefactor  = 0.0001
  Normalizat = 1.10431
  Prefactor  = 1.11801
 **********
 **   18 **HESSE 
 **********

 FCN=   6387.745     FROM HESSE     STATUS=OK           270 CALLS     2175 TOTAL
                     EDM=   .58E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    10.012        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .10000E-03    2.6116        .12588E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    15.505        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          .10000E-03    5.6401        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     18.553        28.997        .93008E-04   -1.4846    
   6  Prefactor     .10000E-03    24.712        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    14.519        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     2.9507        3.5359        .15911E-03   -1.5364    
   9  Prefactor     2.7926        5.0002        .22857E-03   -1.5374    
  10  Prefactor     2.6192        21.939        .25166E-03   -1.5384    
  11  Prefactor     30.726        15.113        .72291E-04   -1.4599    
  12  Prefactor     .10000E-03    139.26        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10002E-03    21.725        .35448E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .10008E-03    18.667        .17645E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     8.0143        8.1414        .14151E-03   -1.5142    
  16  norm          10.336        3.8129        .90911E-04   -1.5065    
  17  Prefactor     .10000E-03    31.540        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Normalizat    1.1043        .23620        .27637E-03   -.89614    
  19  Prefactor     1.1180        .19691        .23206E-03   -.88893    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.83924e-09
Minuit parameter uncertainties:
  1  1.3244e-06
  2  5.63491e-07
  3  6.19412e-06
  4  8.77366e-07
  5  29.0187
  6  5.50532e-05
  7  4.01663e-06
  8  3.53614
  9  5.0009
  10  15.1681
  11  15.1145
  12  0.000356714
  13  0.00127446
  14  0.0024756
  15  8.14249
  16  3.813
  17  1.95039e-07
  18  0.236421
  19  0.197037
Done.

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

Extracting fit parameters...

4FGL J1357.1+1921
   Spectrum: PowerLaw
267    Prefactor:  3.073e+01  1.511e+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.118e+00  1.970e-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.104e+00  2.364e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 7.60
Ra Dec: 209.290 19.361
Photon Index (Fixed Index): 2.76 +/- 0.00
Photon Flux (Fixed Index): 1.19e-07 +/- 5.87e-08
Energy Flux (Fixed Index): 2.75e-05 +/- 1.35e-05

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) = 6387.5488674
delta logL = 0.196550875661

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6387.5434579
delta logL = 0.201960384614

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    25.922       1.0000         .10000E-03   10000.    
     2 'Index     '    3.1363       1.0000          .0000       10.000    
     3 'Normalizat'    1.0728       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1354       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=   6387.543     FROM MIGRAD    STATUS=CONVERGED     93 CALLS      305 TOTAL
                     EDM=   .21E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     25.929        16.684        .78681E-04    .47971E-04
   2  Index         3.1361        .65998        .64837E-02    .33059E-03
   3  Normalizat    1.0728        .23474        .27970E-03   -.13820E-04
   4  Prefactor     1.1355        .19461        .23055E-03   -.28206E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 25.929
  Index      = 3.13611
  Normalizat = 1.07277
  Prefactor  = 1.13545
 **********
 **   18 **HESSE 
 **********

 FCN=   6387.543     FROM HESSE     STATUS=OK            25 CALLS      330 TOTAL
                     EDM=   .94E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     25.929        16.039        .31473E-05   -1.4689    
   2  Index         3.1361        .63403        .12967E-02   -.38200    
   3  Normalizat    1.0728        .23480        .11188E-04   -.90631    
   4  Prefactor     1.1355        .19466        .92220E-05   -.88341    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.35713e-12
Minuit parameter uncertainties:
  1  16.0414
  2  0.636016
  3  0.235029
  4  0.194781
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/65926': 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) = 6387.54345769
delta logL = 0.201960589315

Extracting fit parameters...

4FGL J1357.1+1921
   Spectrum: PowerLaw
267    Prefactor:  2.593e+01  1.604e+01  1.000e-04  1.000e+04 ( 1.000e-12)
268        Index:  3.136e+00  6.360e-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.135e+00  1.948e-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.073e+00  2.350e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 8.03
Ra Dec: 209.290 19.361
Photon Index (Free Index): 3.14 +/- 0.64
Photon Flux (Free Index): 1.48e-07 +/- 7.78e-08
Energy Flux (Free Index): 2.78e-05 +/- 1.27e-05

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/65926/cmap_HighResolution_535334401_535593601_4FGL_J1357.1+1921_daily_bin1142.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='1.19e-07', energy_flux2='2.78e-05', photon_flux_error='5.87e-08', dlogl='2.02e-01', energy_flux='2.75e-05', photon_flux2='1.48e-07', job_status='DONE', time_completed='2021-09-08 18:09:18.523901', photon_index_error2='0.64', photon_index2='3.14', ts='7.60', fit_tolerance='1e-08', GAL='1.12', photon_index_error='0.00', energy_flux_error2='1.27e-05', EG='1.10', time_epoch_completed='1631149758.52', return_code='0', job_id='65926', GAL2='1.14', EG2='1.07', return_code2='0', energy_flux_error='1.35e-05', photon_flux_error2='7.78e-08', ts2='8.03', photon_index='2.76' WHERE bin_id='1142' AND source_name='4FGL J1357.1+1921' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  8 18:09:18 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0064>
Subject: Job 65926: <4FGL_J1357.1+1921_daily_bin1142> in cluster <slac> Done

Job <4FGL_J1357.1+1921_daily_bin1142> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Wed Sep  8 18:00:22 2021
Job was executed on host(s) <bullet0064>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep  8 18:00:24 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Wed Sep  8 18:00:24 2021
Terminated at Wed Sep  8 18:09:19 2021
Results reported at Wed Sep  8 18:09:19 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1357.1+1921_daily_bin1142 209.29 19.3608 535334401 535593601 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 :                                   514.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             337.89 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   534 sec.
    Turnaround time :                            537 sec.

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

