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


Performing analysis on: 4FGL_J1357.1+1921_daily_bin57
RA = 209.29, Dec = 19.3608
tmin = 254102401, tmax = 254361601
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='59813', job_status='RUN', time_executed='2021-09-08 17:44:26.363486', time_epoch_executed='1631148266.36' WHERE source_name='4FGL J1357.1+1921' and cadence='daily' and bin_id='57'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/59813

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/59813/ft1_4FGL_J1357.1+1921_daily_bin57.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/59813/ft2_4FGL_J1357.1+1921_daily_bin57.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/59813/ft1_4FGL_J1357.1+1921_daily_bin57.fits outfile=/scratch/kocevski/59813/ft1_filteredMKT_4FGL_J1357.1+1921_daily_bin57.fits ra=209.29 dec=19.3608 rad=12.0 tmin=254102401.0 tmax=254361601.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 2.02
user 1.82
sys 0.19

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/59813/ft2_4FGL_J1357.1+1921_daily_bin57.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/59813/ft1_filteredMKT_4FGL_J1357.1+1921_daily_bin57.fits evtable="EVENTS" outfile="/scratch/kocevski/59813/ft1_filtered_4FGL_J1357.1+1921_daily_bin57.fits" apply_filter=yes overwrite=yes header_obstimes=yes tstart=0.0 tstop=0.0 gtifile="default" chatter=3 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

This is gtmktime version HEAD
Applying GTI filter:
IN_SAA!=T && LIVETIME>0 && gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nogrb.gti',(START+STOP)/2) && (angsep(RA_SUN,DEC_SUN,RA_ZENITH,DEC_ZENITH)>115 || gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nosolarflares.gti',(START+STOP)/2))
real 0.51
user 0.34
sys 0.16

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/59813/ft1_filtered_4FGL_J1357.1+1921_daily_bin57.fits" evtable="EVENTS" scfile=/scratch/kocevski/59813/ft2_4FGL_J1357.1+1921_daily_bin57.fits sctable="SC_DATA" outfile=/scratch/kocevski/59813/ltcube_254102401_254361601_4FGL_J1357.1+1921_daily_bin57.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/59813/ft2_4FGL_J1357.1+1921_daily_bin57.fits
.....................!
real 13.07
user 12.73
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/59813/ft1_filtered_4FGL_J1357.1+1921_daily_bin57.fits evtable="EVENTS" scfile=/scratch/kocevski/59813/ft2_4FGL_J1357.1+1921_daily_bin57.fits sctable="SC_DATA" expcube=/scratch/kocevski/59813/ltcube_254102401_254361601_4FGL_J1357.1+1921_daily_bin57.fits outfile=/scratch/kocevski/59813/expmap_254102401_254361601_4FGL_J1357.1+1921_daily_bin57.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/59813/ltcube_254102401_254361601_4FGL_J1357.1+1921_daily_bin57.fits
.....................!
real 190.20
user 185.04
sys 4.80

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/59813/ft1_filtered_4FGL_J1357.1+1921_daily_bin57.fits scfile=/scratch/kocevski/59813/ft2_4FGL_J1357.1+1921_daily_bin57.fits outfile=/scratch/kocevski/59813/cmap_254102401_254361601_4FGL_J1357.1+1921_daily_bin57.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.58
user 0.36
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/59813/ft1_filtered_4FGL_J1357.1+1921_daily_bin57.fits scfile=/scratch/kocevski/59813/ft2_4FGL_J1357.1+1921_daily_bin57.fits outfile=/scratch/kocevski/59813/cmap_HighResolution_254102401_254361601_4FGL_J1357.1+1921_daily_bin57.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.59
user 0.38
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .64902E-01   1.0000         .10000E-03   10000.    
     2 'norm      '    .10047E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    23.886       1.0000         .10000E-03   10000.    
     4 'norm      '    8.6827       1.0000         .10000E-03   10000.    
     5 'Prefactor '    2.8787       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10067E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .12103E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .84327       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10516E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    13.202       1.0000         .10000E-03   10000.    
    11 'Prefactor '    3.3616       1.0000         .10000E-03   10000.    
    12 'Prefactor '    4.3673       1.0000         .10000E-03   10000.    
    13 'Prefactor '    1.0834       1.0000         .10000E-03   10000.    
    14 'norm      '    6.0897       1.0000         .10000E-03   10000.    
    15 'Prefactor '    1.6176       1.0000         .10000E-03   10000.    
    16 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10014E-03   1.0000         .10000E-03   10000.    
    18 'Normalizat'    1.0356       1.0000         .10000E-01   10.000    
    19 'Prefactor '    .93047       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=   5133.243     FROM MIGRAD    STATUS=CONVERGED    438 CALLS     1682 TOTAL
                     EDM=   .11E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .12862E-03    18.191       -.71529E-06** at limit **
   2  norm          .10000E-03    4.1795        .81498E-07** at limit **
   3  Prefactor     23.852        23.533        .22510E-06    .62599E-04
   4  norm          8.6886        7.9342        .87320E-07    .36680E-05
   5  Prefactor     2.8691        47.412        .83311E-06    .15013E-05
   6  Prefactor     .10000E-03    16.146        .27641E-06** at limit **
   7  Prefactor     .10000E-03    63.341       -.75494E-07** at limit **
   8  Prefactor     .84331        3.6443        .18063E-05    .13673E-04
   9  Prefactor     .10000E-03    4.5551       -.23483E-06** at limit **
  10  Prefactor     13.205        12.724       -.18450E-06   -.23106E-03
  11  Prefactor     3.3497        11.700        .65801E-06   -.29899E-04
  12  Prefactor     4.3699        16.378       -.32292E-06   -.41412E-04
  13  Prefactor     1.0879        9.4123        .32157E-05   -.13795E-04
  14  norm          6.0893        2.8627        .12096E-06   -.87116E-05
  15  Prefactor     1.6102        5.0800        .27648E-06   -.12252E-03
  16  norm          .10000E-03    .73007        .23243E-07** at limit **
  17  Prefactor     .10000E-03    7.9275        .92180E-08** at limit **
  18  Normalizat    1.0357        .19450       -.76255E-06   -.84020E-04
  19  Prefactor     .93061        .16048       -.33882E-06   -.98974E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.000128616
  norm       = 0.0001
  Prefactor  = 23.8522
  norm       = 8.68862
  Prefactor  = 2.86911
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.843314
  Prefactor  = 0.0001
  Prefactor  = 13.2046
  Prefactor  = 3.3497
  Prefactor  = 4.36991
  Prefactor  = 1.08789
  norm       = 6.08927
  Prefactor  = 1.61017
  norm       = 0.0001
  Prefactor  = 0.0001
  Normalizat = 1.03572
  Prefactor  = 0.930614
 **********
 **   18 **HESSE 
 **********

 FCN=   5133.243     FROM HESSE     STATUS=OK           278 CALLS     1960 TOTAL
                     EDM=   .24E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .12862E-03    21.144        .98368E-01   -1.5707    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .10000E-03    4.2104        .14292E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     23.852        23.534        .81960E-04   -1.4731    
   4  norm          8.6886        7.9484        .13603E-03   -1.5118    
   5  Prefactor     2.8691        47.941        .23955E-03   -1.5369    
   6  Prefactor     .10000E-03    16.169        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    63.530        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .84331        3.6655        .26275E-03   -1.5524    
   9  Prefactor     .10000E-03    4.6859        .29807E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     13.205        12.706        .11024E-03   -1.4981    
  11  Prefactor     3.3497        11.693        .22072E-03   -1.5342    
  12  Prefactor     4.3699        16.340        .19273E-03   -1.5290    
  13  Prefactor     1.0879        9.1984        .39655E-03   -1.5499    
  14  norm          6.0893        2.8635        .40331E-03   -1.5214    
  15  Prefactor     1.6102        4.9042        .25758E-03   -1.5454    
  16  norm          .10000E-03    .73451        .59776E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    7.9300        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Normalizat    1.0357        .23015        .23961E-03   -.91843    
  19  Prefactor     .93061        .19038        .21544E-03   -.95079    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.44826e-10
Minuit parameter uncertainties:
  1  0.0492139
  2  5.66703e-06
  3  23.5429
  4  7.94938
  5  23.4779
  6  2.44145e-07
  7  1.2563e-05
  8  3.51652
  9  1.00852e-05
  10  12.7082
  11  11.7014
  12  16.3568
  13  6.32775
  14  2.86361
  15  4.90546
  16  2.34474e-07
  17  1.83758e-07
  18  0.230374
  19  0.190518
Done.

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

Extracting fit parameters...

4FGL J1357.1+1921
   Spectrum: PowerLaw
267    Prefactor:  3.350e+00  1.170e+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.306e-01  1.905e-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.036e+00  2.304e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/59813/likelihoodResults_254102401_254361601_4FGL_J1357.1+1921_daily_bin57.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) = 5133.22865611
delta logL = 0.0144189571065

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5133.2270607
delta logL = 0.0160143648045

Fit tolerance = 1e-08

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

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

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   5133.227     FROM MIGRAD    STATUS=CONVERGED    108 CALLS      280 TOTAL
                     EDM=   .27E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     2.7677        29.244        .12262E-02    .33015E-03
   2  Index         3.2876        6.6418        .10270E-01    .28704E-04
   3  Normalizat    1.0280        .22379        .24041E-03   -.35466E-05
   4  Prefactor     .93492        .18969        .21500E-03   -.12796E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 2.76772
  Index      = 3.28755
  Normalizat = 1.02802
  Prefactor  = 0.934922
 **********
 **   18 **HESSE 
 **********

 FCN=   5133.227     FROM HESSE     STATUS=OK            27 CALLS      307 TOTAL
                     EDM=   .20E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     2.7677        14.481        .24524E-03   -1.5375    
   2  Index         3.2876        3.4686        .20540E-02   -.34956    
   3  Normalizat    1.0280        .22312        .96165E-05   -.92097    
   4  Prefactor     .93492        .18808        .86000E-05   -.94931    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.03368e-12
Minuit parameter uncertainties:
  1  12.6661
  2  3.90213
  3  0.223327
  4  0.188207
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/59813': 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) = 5133.22705824
delta logL = 0.0160168221455

Extracting fit parameters...

4FGL J1357.1+1921
   Spectrum: PowerLaw
267    Prefactor:  2.768e+00  1.267e+01  1.000e-04  1.000e+04 ( 1.000e-12)
268        Index:  3.288e+00  3.902e+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.349e-01  1.882e-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.028e+00  2.233e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.10
Ra Dec: 209.290 19.361

Creating a high resolution counts map...
INFO: Auto-setting vmin to  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/59813/cmap_HighResolution_254102401_254361601_4FGL_J1357.1+1921_daily_bin57.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='9.54e-03', job_status='DONE', photon_flux_upper_limit='1.21e-07', time_completed='2021-09-08 17:52:36.285907', job_id='59813', GAL2='0.93', fit_tolerance='1e-08', EG2='1.03', EG='1.04', time_epoch_completed='1631148756.29', return_code2='0', ts='0.10', comment='SUCCESS', return_code='0', GAL='0.93', dlogl='1.60e-02', ts2='0.13', photon_index_error='0.00', photon_index='2.76' WHERE bin_id='57' AND source_name='4FGL J1357.1+1921' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  8 17:52:36 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0181>
Subject: Job 59813: <4FGL_J1357.1+1921_daily_bin57> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1357.1+1921_daily_bin57 209.29 19.3608 254102401 254361601 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 :                                   487.16 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             262.92 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   692 sec.
    Turnaround time :                            695 sec.

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

