/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 149 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 = 7395
number of fields = 27
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J1357.1+1921_daily_bin432
RA = 209.29, Dec = 19.3608
tmin = 351302401, tmax = 351561601
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='61424', job_status='RUN', time_executed='2021-09-08 17:48:44.852600', time_epoch_executed='1631148524.85' WHERE source_name='4FGL J1357.1+1921' and cadence='daily' and bin_id='432'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/61424

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/61424/ft1_4FGL_J1357.1+1921_daily_bin432.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/61424/ft2_4FGL_J1357.1+1921_daily_bin432.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/61424/ft1_4FGL_J1357.1+1921_daily_bin432.fits outfile=/scratch/kocevski/61424/ft1_filteredMKT_4FGL_J1357.1+1921_daily_bin432.fits ra=209.29 dec=19.3608 rad=12.0 tmin=351302401.0 tmax=351561601.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.45
user 3.20
sys 0.20

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/61424/ft1_filtered_4FGL_J1357.1+1921_daily_bin432.fits" evtable="EVENTS" scfile=/scratch/kocevski/61424/ft2_4FGL_J1357.1+1921_daily_bin432.fits sctable="SC_DATA" outfile=/scratch/kocevski/61424/ltcube_351302401_351561601_4FGL_J1357.1+1921_daily_bin432.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/61424/ft2_4FGL_J1357.1+1921_daily_bin432.fits
.....................!
real 12.19
user 11.53
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/61424/ft1_filtered_4FGL_J1357.1+1921_daily_bin432.fits evtable="EVENTS" scfile=/scratch/kocevski/61424/ft2_4FGL_J1357.1+1921_daily_bin432.fits sctable="SC_DATA" expcube=/scratch/kocevski/61424/ltcube_351302401_351561601_4FGL_J1357.1+1921_daily_bin432.fits outfile=/scratch/kocevski/61424/expmap_351302401_351561601_4FGL_J1357.1+1921_daily_bin432.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/61424/ltcube_351302401_351561601_4FGL_J1357.1+1921_daily_bin432.fits
.....................!
real 192.75
user 187.27
sys 5.10

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/61424/ft1_filtered_4FGL_J1357.1+1921_daily_bin432.fits scfile=/scratch/kocevski/61424/ft2_4FGL_J1357.1+1921_daily_bin432.fits outfile=/scratch/kocevski/61424/cmap_351302401_351561601_4FGL_J1357.1+1921_daily_bin432.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.52
user 0.38
sys 0.14

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

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    20.034       1.0000         .10000E-03   10000.    
     2 'norm      '    6.6639       1.0000         .10000E-03   10000.    
     3 'Prefactor '    39.454       1.0000         .10000E-03   10000.    
     4 'norm      '    3.6203       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10018E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .50596       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .76996       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .52188E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    13.236       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10749       1.0000         .10000E-03   10000.    
    16 'norm      '    .63145       1.0000         .10000E-03   10000.    
    17 'Prefactor '    23.703       1.0000         .10000E-03   10000.    
    18 'Normalizat'    1.2362       1.0000         .10000E-01   10.000    
    19 'Prefactor '    1.0412       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=   7119.967     FROM MIGRAD    STATUS=CONVERGED    431 CALLS     1944 TOTAL
                     EDM=   .47E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          20.031        17.926        .21011E-06    .35920E-04
   2  norm          6.6626        6.4618       -.39669E-07   -.30423E-04
   3  Prefactor     39.439        32.259        .35371E-06   -.14224E-04
   4  norm          3.6158        8.7875        .10674E-05    .49417E-05
   5  Prefactor     .10000E-03    7.0724       -.23192E-07** at limit **
   6  Prefactor     .10000E-03    5.2810       -.15585E-07** at limit **
   7  Prefactor     .10000E-03    87.150       -.29803E-06** at limit **
   8  Prefactor     .50530        1.7019        .79839E-06   -.15075E-04
   9  Prefactor     .10000E-03    2.0564       -.24132E-07** at limit **
  10  Prefactor     .10000E-03    7.9022       -.51563E-07** at limit **
  11  Prefactor     .76386        11.171        .25938E-05   -.41153E-03
  12  Prefactor     .10000E-03    15.425       -.53627E-08** at limit **
  13  Prefactor     .10000E-03    4.7726       -.23692E-06** at limit **
  14  norm          13.235        3.6916       -.23222E-07   -.34966E-03
  15  Prefactor     .10562E-03    6.0280        .87389E-06** at limit **
  16  norm          .63173        2.4649        .92425E-06   -.32005E-03
  17  Prefactor     23.763        42.336       -.14015E-05   -.48991E-04
  18  Normalizat    1.2365        .18710       -.16123E-05   -.71297E-03
  19  Prefactor     1.0413        .15659       -.43226E-06   -.74230E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 20.0306
  norm       = 6.66264
  Prefactor  = 39.4388
  norm       = 3.61576
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.505304
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.763862
  Prefactor  = 0.0001
  Prefactor  = 0.000100004
  norm       = 13.2351
  Prefactor  = 0.000105617
  norm       = 0.631733
  Prefactor  = 23.7634
  Normalizat = 1.23647
  Prefactor  = 1.04125
 **********
 **   18 **HESSE 
 **********

 FCN=   7119.967     FROM HESSE     STATUS=OK           280 CALLS     2224 TOTAL
                     EDM=   .47E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          20.031        17.916        .89484E-04   -1.4813    
   2  norm          6.6626        6.4039        .15545E-03   -1.5192    
   3  Prefactor     39.439        32.283        .63813E-04   -1.4451    
   4  norm          3.6158        8.7312        .21234E-03   -1.5328    
   5  Prefactor     .10000E-03    7.0887        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    5.2862        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    87.646        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .50530        1.7957        .19144E-02   -1.5566    
   9  Prefactor     .10000E-03    2.0832        .11812E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    7.9315        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .76386        27.846        .44112E-02   -1.5533    
  12  Prefactor     .10000E-03    15.476        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    20.402        .34610E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          13.235        3.6895        .82743E-04   -1.4980    
  15  Prefactor     .10562E-03    7.4630        .51624E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .63173        3.9158        .22985E-02   -1.5549    
  17  Prefactor     23.763        41.992        .82275E-04   -1.4733    
  18  Normalizat    1.2365        .22116        .25573E-03   -.85483    
  19  Prefactor     1.0413        .18673        .23752E-03   -.91367    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.66088e-08
Minuit parameter uncertainties:
  1  17.9211
  2  6.4046
  3  32.2969
  4  8.7343
  5  2.77405e-06
  6  1.79113e-06
  7  9.10537e-06
  8  1.79585
  9  3.38146e-06
  10  7.80609e-06
  11  9.22807
  12  1.55031e-05
  13  0.000577907
  14  3.68953
  15  0.0129508
  16  3.1457
  17  42.0443
  18  0.22133
  19  0.18685
Done.

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

Extracting fit parameters...

4FGL J1357.1+1921
   Spectrum: PowerLaw
267    Prefactor:  7.639e-01  9.228e+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.041e+00  1.869e-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.236e+00  2.213e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/61424/likelihoodResults_351302401_351561601_4FGL_J1357.1+1921_daily_bin432.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) = 7119.47753297
delta logL = 0.489792611982

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 7119.47570908
delta logL = 0.491616507526

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    1.2950       1.0000         .10000E-03   10000.    
     2 'Index     '    4.9038       1.0000          .0000       10.000    
     3 'Normalizat'    1.1673       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0741       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=   7119.476     FROM MIGRAD    STATUS=CONVERGED     53 CALLS      232 TOTAL
                     EDM=   .25E-10    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     1.2930        24.053        .97189E-02    .10399E-02
   2  Index         4.9049        4.1485        .20140        .10476E-03
   3  Normalizat    1.1673        .42751E-01    .59290E-01    .29257E-05
   4  Prefactor     1.0741        .36952E-01    .38664E-01    .36511E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.293
  Index      = 4.90491
  Normalizat = 1.16734
  Prefactor  = 1.07414
 **********
 **   18 **HESSE 
 **********

 FCN=   7119.476     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      265 TOTAL
                     EDM=   .87E-06    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     1.2930        65.680        .94751E-04   -1.5481    
   2  Index         4.9049        7.0136        .94502E-02   -.19020E-01
   3  Normalizat    1.1673        .19780        .26222E-03   -.87618    
   4  Prefactor     1.0741        .16828        .23428E-03   -.90297    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 8.66326e-07
Minuit parameter uncertainties:
  1  18.4516
  2  10.7648
  3  0.197929
  4  0.16836
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/61424': 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) = 7119.47570894
delta logL = 0.491616640008

Extracting fit parameters...

4FGL J1357.1+1921
   Spectrum: PowerLaw
267    Prefactor:  1.293e+00  1.845e+01  1.000e-04  1.000e+04 ( 1.000e-12)
268        Index:  4.905e+00  1.076e+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.074e+00  1.684e-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.167e+00  1.979e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.06
Ra Dec: 209.290 19.361
Photon Index (Free Index): 4.90 +/- 10.76
Photon Flux (Free Index): 6.10e-08 +/- 7.08e-08
Energy Flux (Free Index): 8.17e-06 +/- 1.46e-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/61424/cmap_HighResolution_351302401_351561601_4FGL_J1357.1+1921_daily_bin432.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='7.51e-03', comment='SUCCESS', energy_flux2='8.17e-06', dlogl='4.92e-01', photon_flux2='6.10e-08', job_status='DONE', time_completed='2021-09-08 17:59:16.632471', photon_index_error2='10.76', photon_index2='4.90', ts='0.01', fit_tolerance='1e-08', GAL='1.04', photon_index_error='0.00', photon_flux_upper_limit='9.50e-08', energy_flux_error2='1.46e-05', EG='1.24', time_epoch_completed='1631149156.63', return_code='0', job_id='61424', GAL2='1.07', EG2='1.17', return_code2='102', photon_flux_error2='7.08e-08', ts2='1.06', photon_index='2.76' WHERE bin_id='432' AND source_name='4FGL J1357.1+1921' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  8 17:59:16 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0219>
Subject: Job 61424: <4FGL_J1357.1+1921_daily_bin432> in cluster <slac> Done

Job <4FGL_J1357.1+1921_daily_bin432> was submitted from host <rhel6-64m> by user <kocevski> in cluster <slac> at Wed Sep  8 17:46:05 2021
Job was executed on host(s) <bullet0219>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep  8 17:46:07 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Wed Sep  8 17:46:07 2021
Terminated at Wed Sep  8 17:59:17 2021
Results reported at Wed Sep  8 17:59:17 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1357.1+1921_daily_bin432 209.29 19.3608 351302401 351561601 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 :                                   578.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             304.75 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   789 sec.
    Turnaround time :                            792 sec.

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

