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


Performing analysis on: 4FGL_J1357.1+1921_daily_bin14
RA = 209.29, Dec = 19.3608
tmin = 242956801, tmax = 243216001
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='59748', job_status='RUN', time_executed='2021-09-08 17:41:33.581722', time_epoch_executed='1631148093.58' WHERE source_name='4FGL J1357.1+1921' and cadence='daily' and bin_id='14'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/59748

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/59748/ft1_4FGL_J1357.1+1921_daily_bin14.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/59748/ft2_4FGL_J1357.1+1921_daily_bin14.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/59748/ft1_4FGL_J1357.1+1921_daily_bin14.fits outfile=/scratch/kocevski/59748/ft1_filteredMKT_4FGL_J1357.1+1921_daily_bin14.fits ra=209.29 dec=19.3608 rad=12.0 tmin=242956801.0 tmax=243216001.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 1.41
user 1.23
sys 0.17

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/59748/ft1_filtered_4FGL_J1357.1+1921_daily_bin14.fits evtable="EVENTS" scfile=/scratch/kocevski/59748/ft2_4FGL_J1357.1+1921_daily_bin14.fits sctable="SC_DATA" expcube=/scratch/kocevski/59748/ltcube_242956801_243216001_4FGL_J1357.1+1921_daily_bin14.fits outfile=/scratch/kocevski/59748/expmap_242956801_243216001_4FGL_J1357.1+1921_daily_bin14.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/59748/ltcube_242956801_243216001_4FGL_J1357.1+1921_daily_bin14.fits
.....................!
real 190.10
user 185.45
sys 4.32

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/59748/ft1_filtered_4FGL_J1357.1+1921_daily_bin14.fits scfile=/scratch/kocevski/59748/ft2_4FGL_J1357.1+1921_daily_bin14.fits outfile=/scratch/kocevski/59748/cmap_242956801_243216001_4FGL_J1357.1+1921_daily_bin14.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.36
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/59748/ft1_filtered_4FGL_J1357.1+1921_daily_bin14.fits scfile=/scratch/kocevski/59748/ft2_4FGL_J1357.1+1921_daily_bin14.fits outfile=/scratch/kocevski/59748/cmap_HighResolution_242956801_243216001_4FGL_J1357.1+1921_daily_bin14.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.53
user 0.38
sys 0.14

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    23.392       1.0000         .10000E-03   10000.    
     2 'norm      '    1.5711       1.0000         .10000E-03   10000.    
     3 'Prefactor '    21.128       1.0000         .10000E-03   10000.    
     4 'norm      '    4.4790       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    44.411       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .22662       1.0000         .10000E-03   10000.    
     9 'Prefactor '    3.4160       1.0000         .10000E-03   10000.    
    10 'Prefactor '    3.4898       1.0000         .10000E-03   10000.    
    11 'Prefactor '    7.2380       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    7.9007       1.0000         .10000E-03   10000.    
    15 'Prefactor '    7.0352       1.0000         .10000E-03   10000.    
    16 'norm      '    .10380E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    18 'Normalizat'    1.3476       1.0000         .10000E-01   10.000    
    19 'Prefactor '    .93598       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5090E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.
 MACHINE ACCURACY LIMITS FURTHER IMPROVEMENT.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   8891.260     FROM MIGRAD    STATUS=CONVERGED    391 CALLS     1935 TOTAL
                     EDM=   .77E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          23.390        17.589         .0000        .18186E-02
   2  norm          1.5763        6.0452         .0000        .27871E-01
   3  Prefactor     21.128        27.612         .0000       -.56784E-03
   4  norm          4.4738        8.6548         .0000        .58688E-02
   5  Prefactor     .10000E-03    5.6192         .0000    ** at limit **
   6  Prefactor     .10000E-03    4.3035         .0000    ** at limit **
   7  Prefactor     44.412        35.368         .0000       -.21599E-03
   8  Prefactor     .23322        1.5887         .0000        .48866E-03
   9  Prefactor     3.4162        2.8697         .0000       -.74698E-04
  10  Prefactor     3.4910        8.9626         .0000        .30399E-03
  11  Prefactor     7.2392        10.170         .0000        .30533E-03
  12  Prefactor     .10000E-03    12.372         .0000    ** at limit **
  13  Prefactor     .10000E-03    1.6010         .0000    ** at limit **
  14  norm          7.9007        2.6283         .0000       -.77814E-04
  15  Prefactor     7.0352        6.3421         .0000       -.76891E-03
  16  norm          .10000E-03    1.0618         .0000    ** at limit **
  17  Prefactor     .10000E-03    24.100         .0000    ** at limit **
  18  Normalizat    1.3475        .16968         .0000        .44475E-04
  19  Prefactor     .93605        .13888         .0000        .39150E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 23.3903
  norm       = 1.57628
  Prefactor  = 21.1283
  norm       = 4.47384
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 44.4115
  Prefactor  = 0.233217
  Prefactor  = 3.4162
  Prefactor  = 3.49099
  Prefactor  = 7.23918
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 7.90069
  Prefactor  = 7.03516
  norm       = 0.0001
  Prefactor  = 0.0001
  Normalizat = 1.3475
  Prefactor  = 0.936046
 **********
 **   18 **HESSE 
 **********

 FCN=   8891.260     FROM HESSE     STATUS=OK           272 CALLS     2207 TOTAL
                     EDM=   .90E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          23.390        17.533        .82820E-04   -1.4740    
   2  norm          1.5763        5.8460        .16957E-02   -1.5457    
   3  Prefactor     21.128        27.612        .87140E-04   -1.4788    
   4  norm          4.4738        8.4321        .95126E-03   -1.5285    
   5  Prefactor     .10000E-03    5.6290        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    4.3064        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     44.412        35.368        .60160E-04   -1.4374    
   8  Prefactor     .23322        7.4656        .22978E-02   -1.5611    
   9  Prefactor     3.4162        2.8720        .14200E-03   -1.5338    
  10  Prefactor     3.4910        8.9386        .21644E-03   -1.5334    
  11  Prefactor     7.2392        10.198        .14909E-03   -1.5170    
  12  Prefactor     .10000E-03    12.402        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    1.6034        .11648E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          7.9007        2.6285        .85604E-04   -1.5146    
  15  Prefactor     7.0352        6.3109        .15125E-03   -1.5177    
  16  norm          .10000E-03    3.6720        .18627E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    24.317        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Normalizat    1.3475        .20389        .24879E-03   -.82159    
  19  Prefactor     .93605        .16615        .24588E-03   -.94893    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.99688e-09
Minuit parameter uncertainties:
  1  17.5369
  2  5.84811
  3  27.6291
  4  8.43433
  5  2.79335e-05
  6  2.44305e-06
  7  35.3848
  8  2.63882
  9  2.87208
  10  8.94201
  11  10.2009
  12  5.95129e-05
  13  3.56151e-06
  14  2.62855
  15  6.3115
  16  5.8046e-06
  17  7.41384e-05
  18  0.204015
  19  0.166245
Done.

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

Extracting fit parameters...

4FGL J1357.1+1921
   Spectrum: PowerLaw
267    Prefactor:  7.239e+00  1.020e+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:  9.360e-01  1.662e-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.348e+00  2.040e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.65
Ra Dec: 209.290 19.361
Photon Flux Upper Limit: 1.13e-07 ph cm-2 s-1
Energy Flux Upper Limit: 8.89e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/59748/likelihoodResults_242956801_243216001_4FGL_J1357.1+1921_daily_bin14.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) = 8890.1122337
delta logL = 1.14788078534

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 8890.0991889
delta logL = 1.1609255828

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .33565       1.0000         .10000E-03   10000.    
     2 'Index     '    6.1263       1.0000          .0000       10.000    
     3 'Normalizat'    1.2769       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .97970       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=   8890.099     FROM MIGRAD    STATUS=CONVERGED     53 CALLS      276 TOTAL
                     EDM=   .81E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .33465        2.7280        .77829E-02    .20217E-02
   2  Index         6.1283        3.0546        .19931        .14006E-03
   3  Normalizat    1.2769        .38489E-01    .57508E-01    .19319E-04
   4  Prefactor     .97972        .32598E-01    .46013E-01    .25294E-06
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.334654
  Index      = 6.12829
  Normalizat = 1.27692
  Prefactor  = 0.979715
 **********
 **   18 **HESSE 
 **********

 FCN=   8890.099     FROM HESSE     STATUS=NOT POSDEF    35 CALLS      311 TOTAL
                     EDM=   .12E-06    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .33465        7.2624        .35593E-03   -1.5592    
   2  Index         6.1283        7.8488        .73033E-02    .22762    
   3  Normalizat    1.2769        .14861        .25432E-03   -.84258    
   4  Prefactor     .97972        .12352        .24091E-03   -.93409    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.15511e-07
Minuit parameter uncertainties:
  1  3.1179
  2  6.72355
  3  0.14866
  4  0.123554
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/59748': 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) = 8890.09918864
delta logL = 1.16092583773

Extracting fit parameters...

4FGL J1357.1+1921
   Spectrum: PowerLaw
267    Prefactor:  3.347e-01  3.118e+00  1.000e-04  1.000e+04 ( 1.000e-12)
268        Index:  6.128e+00  6.724e+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.797e-01  1.236e-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.277e+00  1.487e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 3.12
Ra Dec: 209.290 19.361
Photon Index (Free Index): 6.13 +/- 6.72
Photon Flux (Free Index): 7.86e-08 +/- 5.48e-08
Energy Flux (Free Index): 9.72e-06 +/- 8.60e-06

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/59748/cmap_HighResolution_242956801_243216001_4FGL_J1357.1+1921_daily_bin14.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='8.89e-03', comment='SUCCESS', energy_flux2='9.72e-06', dlogl='1.16e+00', photon_flux2='7.86e-08', job_status='DONE', time_completed='2021-09-08 17:52:14.190709', photon_index_error2='6.72', photon_index2='6.13', ts='0.65', fit_tolerance='1e-08', GAL='0.94', photon_index_error='0.00', photon_flux_upper_limit='1.13e-07', energy_flux_error2='8.60e-06', EG='1.35', time_epoch_completed='1631148734.19', return_code='0', job_id='59748', GAL2='0.98', EG2='1.28', return_code2='102', photon_flux_error2='5.48e-08', ts2='3.12', photon_index='2.76' WHERE bin_id='14' AND source_name='4FGL J1357.1+1921' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  8 17:52:14 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0232>
Subject: Job 59748: <4FGL_J1357.1+1921_daily_bin14> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1357.1+1921_daily_bin14 209.29 19.3608 242956801 243216001 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 :                                   638.41 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             314.76 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   676 sec.
    Turnaround time :                            677 sec.

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

