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


Performing analysis on: 4FGL_J1357.1+1921_daily_bin933
RA = 209.29, Dec = 19.3608
tmin = 481161601, tmax = 481420801
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='64439', job_status='RUN', time_executed='2021-09-08 17:58:19.013228', time_epoch_executed='1631149099.01' WHERE source_name='4FGL J1357.1+1921' and cadence='daily' and bin_id='933'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/64439

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/64439/ft1_4FGL_J1357.1+1921_daily_bin933.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/64439/ft2_4FGL_J1357.1+1921_daily_bin933.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/64439/ft1_4FGL_J1357.1+1921_daily_bin933.fits outfile=/scratch/kocevski/64439/ft1_filteredMKT_4FGL_J1357.1+1921_daily_bin933.fits ra=209.29 dec=19.3608 rad=12.0 tmin=481161601.0 tmax=481420801.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.68
user 3.38
sys 0.22

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/64439/ft1_filtered_4FGL_J1357.1+1921_daily_bin933.fits evtable="EVENTS" scfile=/scratch/kocevski/64439/ft2_4FGL_J1357.1+1921_daily_bin933.fits sctable="SC_DATA" expcube=/scratch/kocevski/64439/ltcube_481161601_481420801_4FGL_J1357.1+1921_daily_bin933.fits outfile=/scratch/kocevski/64439/expmap_481161601_481420801_4FGL_J1357.1+1921_daily_bin933.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/64439/ltcube_481161601_481420801_4FGL_J1357.1+1921_daily_bin933.fits
.....................!
real 193.58
user 186.71
sys 5.09

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

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/64439/ft1_filtered_4FGL_J1357.1+1921_daily_bin933.fits scfile=/scratch/kocevski/64439/ft2_4FGL_J1357.1+1921_daily_bin933.fits outfile=/scratch/kocevski/64439/cmap_HighResolution_481161601_481420801_4FGL_J1357.1+1921_daily_bin933.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.58
user 0.38
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10045E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    8.6223       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .13356E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    23.009       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10068E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .45031E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10070E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10025E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    10.244       1.0000         .10000E-03   10000.    
    11 'Prefactor '    11.025       1.0000         .10000E-03   10000.    
    12 'Prefactor '    39.636       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .11148E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    6.0637       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .11185E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    24.166       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10155E-03   1.0000         .10000E-03   10000.    
    18 'Normalizat'    1.5341       1.0000         .10000E-01   10.000    
    19 'Prefactor '    .83026       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5090E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   7739.693     FROM MIGRAD    STATUS=CONVERGED     74 CALLS     1568 TOTAL
                     EDM=   .18E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    6.3253       -.29326E-05** at limit **
   2  norm          8.6274        1.7072        .22862E-06   -.10665E-01
   3  Prefactor     .10012E-03    13.019        .21016E-06** at limit **
   4  norm          23.011        1.1686        .48786E-07   -.54003E-02
   5  Prefactor     .10000E-03    9.2561       -.26736E-05** at limit **
   6  Prefactor     .10714E-03    15.980        .86080E-06** at limit **
   7  Prefactor     .10112E-03    14.875       -.24257E-06** at limit **
   8  Prefactor     .10000E-03    3.2014        .96038E-08** at limit **
   9  Prefactor     .10000E-03    1.4695       -.13921E-06** at limit **
  10  Prefactor     10.252        1.3414       -.32753E-07    .10680E-02
  11  Prefactor     11.042        2.1983       -.74606E-07    .25530E-02
  12  Prefactor     39.575        22.447        .23291E-06    .71263E-02
  13  Prefactor     .10000E-03    5.6204        .59102E-06** at limit **
  14  norm          6.0636        2.5519       -.79507E-06   -.15461E-02
  15  Prefactor     .10000E-03    16.694       -.27477E-05** at limit **
  16  norm          24.172        1.0253        .19584E-07   -.25812E-02
  17  Prefactor     .10037E-03    13.244        .29501E-06** at limit **
  18  Normalizat    1.5339        .24117        .18261E-06    .21761E-03
  19  Prefactor     .83041        .19628        .10783E-05    .21767E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.000100002
  norm       = 8.62737
  Prefactor  = 0.000100121
  norm       = 23.0111
  Prefactor  = 0.000100002
  Prefactor  = 0.000107136
  Prefactor  = 0.000101118
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 10.2518
  Prefactor  = 11.0424
  Prefactor  = 39.5752
  Prefactor  = 0.0001
  norm       = 6.06361
  Prefactor  = 0.000100001
  norm       = 24.1718
  Prefactor  = 0.000100374
  Normalizat = 1.53393
  Prefactor  = 0.830409
 **********
 **   18 **HESSE 
 **********

 FCN=   7739.693     FROM HESSE     STATUS=OK           314 CALLS     1882 TOTAL
                     EDM=   .22E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    6.3435        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          8.6274        6.5638        .34128E-02   -1.5120    
   3  Prefactor     .10012E-03    38.666        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          23.011        9.8953        .20876E-02   -1.4748    
   5  Prefactor     .10000E-03    9.2752        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10714E-03    13.321        .10604       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10112E-03    37.943        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    3.1602        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    1.4647        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     10.252        16.035        .31298E-02   -1.5067    
  11  Prefactor     11.042        15.652        .30165E-02   -1.5043    
  12  Prefactor     39.575        27.180        .15917E-02   -1.4449    
  13  Prefactor     .10000E-03    5.4887        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          6.0636        2.5572        .40762E-02   -1.5215    
  15  Prefactor     .10000E-03    4.5165        .68461E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          24.172        5.2236        .20371E-02   -1.4724    
  17  Prefactor     .10037E-03    39.150        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Normalizat    1.5339        .20482        .60215E-01   -.76829    
  19  Prefactor     .83041        .16209        .63747E-01   -.98617    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.18517e-07
Minuit parameter uncertainties:
  1  0.000214404
  2  6.56433
  3  0.00431995
  4  9.89602
  5  0.000299864
  6  0.0195036
  7  0.0130326
  8  1.27288e-07
  9  3.72167e-06
  10  16.0412
  11  15.6577
  12  27.1881
  13  3.93565e-05
  14  2.55725
  15  0.000103698
  16  5.2237
  17  0.0076529
  18  0.204928
  19  0.162186
Done.

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

Extracting fit parameters...

4FGL J1357.1+1921
   Spectrum: PowerLaw
267    Prefactor:  1.104e+01  1.566e+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:  8.304e-01  1.622e-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.534e+00  2.049e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/64439/likelihoodResults_481161601_481420801_4FGL_J1357.1+1921_daily_bin933.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) = 7737.32574134
delta logL = 2.36741291327

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 7737.30636157
delta logL = 2.38679268049

Fit tolerance = 1e-08

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

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

 FCN=   7737.306     FROM MIGRAD    STATUS=CONVERGED     48 CALLS      255 TOTAL
                     EDM=   .57E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     1.8730        13.251        .76074E-02    .32176E-02
   2  Index         5.4132        3.2791        .14171        .22312E-03
   3  Normalizat    1.3891        .65575E-01    .62559E-01   -.13050E-03
   4  Prefactor     .91097        .53339E-01    .45146E-01   -.32096E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.87303
  Index      = 5.41319
  Normalizat = 1.38913
  Prefactor  = 0.910973
 **********
 **   18 **HESSE 
 **********

 FCN=   7737.306     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      284 TOTAL
                     EDM=   .21E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     1.8730        22.880        .57350E-04   -1.5434    
   2  Index         5.4132        7.2642        .56554E-02    .82732E-01
   3  Normalizat    1.3891        .22891        .27670E-03   -.80943    
   4  Prefactor     .91097        .18212        .27007E-03   -.95759    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 2.07974e-08
Minuit parameter uncertainties:
  1  13.0986
  2  5.22944
  3  0.229082
  4  0.182241
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/64439': 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): 102
logL (Free Index) = 7737.30636145
delta logL = 2.38679280597

Extracting fit parameters...

4FGL J1357.1+1921
   Spectrum: PowerLaw
267    Prefactor:  1.873e+00  1.310e+01  1.000e-04  1.000e+04 ( 1.000e-12)
268        Index:  5.413e+00  5.229e+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:  9.110e-01  1.822e-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.389e+00  2.291e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 5.74
Ra Dec: 209.290 19.361
Photon Index (Free Index): 5.41 +/- 5.23
Photon Flux (Free Index): 1.70e-07 +/- 8.92e-08
Energy Flux (Free Index): 2.20e-05 +/- 1.55e-05

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/64439/cmap_HighResolution_481161601_481420801_4FGL_J1357.1+1921_daily_bin933.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.30e-02', comment='SUCCESS', energy_flux2='2.20e-05', dlogl='2.39e+00', photon_flux2='1.70e-07', job_status='DONE', time_completed='2021-09-08 18:07:58.228752', photon_index_error2='5.23', photon_index2='5.41', ts='0.58', fit_tolerance='1e-08', GAL='0.83', photon_index_error='0.00', photon_flux_upper_limit='1.65e-07', energy_flux_error2='1.55e-05', EG='1.53', time_epoch_completed='1631149678.23', return_code='0', job_id='64439', GAL2='0.91', EG2='1.39', return_code2='102', photon_flux_error2='8.92e-08', ts2='5.74', photon_index='2.76' WHERE bin_id='933' AND source_name='4FGL J1357.1+1921' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  8 18:07:58 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0047>
Subject: Job 64439: <4FGL_J1357.1+1921_daily_bin933> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1357.1+1921_daily_bin933 209.29 19.3608 481161601 481420801 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 :                                   573.00 sec.
    Max Memory :                                 1171 MB
    Average Memory :                             242.71 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   744 sec.
    Turnaround time :                            749 sec.

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

