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


Performing analysis on: 4FGL_J1357.1+1921_daily_bin1319
RA = 209.29, Dec = 19.3608
tmin = 581212801, tmax = 581472001
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='66195', job_status='RUN', time_executed='2021-09-08 18:01:01.509801', time_epoch_executed='1631149261.51' WHERE source_name='4FGL J1357.1+1921' and cadence='daily' and bin_id='1319'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/66195

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/66195/ft1_4FGL_J1357.1+1921_daily_bin1319.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/66195/ft2_4FGL_J1357.1+1921_daily_bin1319.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/66195/ft1_4FGL_J1357.1+1921_daily_bin1319.fits outfile=/scratch/kocevski/66195/ft1_filteredMKT_4FGL_J1357.1+1921_daily_bin1319.fits ra=209.29 dec=19.3608 rad=12.0 tmin=581212801.0 tmax=581472001.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.99
user 2.76
sys 0.20

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/66195/ft1_filtered_4FGL_J1357.1+1921_daily_bin1319.fits evtable="EVENTS" scfile=/scratch/kocevski/66195/ft2_4FGL_J1357.1+1921_daily_bin1319.fits sctable="SC_DATA" expcube=/scratch/kocevski/66195/ltcube_581212801_581472001_4FGL_J1357.1+1921_daily_bin1319.fits outfile=/scratch/kocevski/66195/expmap_581212801_581472001_4FGL_J1357.1+1921_daily_bin1319.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/66195/ltcube_581212801_581472001_4FGL_J1357.1+1921_daily_bin1319.fits
.....................!
real 190.51
user 185.19
sys 4.76

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/66195/ft1_filtered_4FGL_J1357.1+1921_daily_bin1319.fits scfile=/scratch/kocevski/66195/ft2_4FGL_J1357.1+1921_daily_bin1319.fits outfile=/scratch/kocevski/66195/cmap_581212801_581472001_4FGL_J1357.1+1921_daily_bin1319.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.53
user 0.38
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/66195/ft1_filtered_4FGL_J1357.1+1921_daily_bin1319.fits scfile=/scratch/kocevski/66195/ft2_4FGL_J1357.1+1921_daily_bin1319.fits outfile=/scratch/kocevski/66195/cmap_HighResolution_581212801_581472001_4FGL_J1357.1+1921_daily_bin1319.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/66195/ft1_filtered_4FGL_J1357.1+1921_daily_bin1319.fits evtable="EVENTS" scfile=/scratch/kocevski/66195/ft2_4FGL_J1357.1+1921_daily_bin1319.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/66195/Model_4FGL_J1357.1+1921_daily_bin1319.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/66195/ft1_filtered_4FGL_J1357.1+1921_daily_bin1319.fits.....................!
real 51.62
user 50.08
sys 1.22

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    7.4000       1.0000         .10000E-03   10000.    
     2 'norm      '    .11660E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10086E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    18.469       1.0000         .10000E-03   10000.    
     5 'Prefactor '    8.6580       1.0000         .10000E-03   10000.    
     6 'Prefactor '    23.470       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .52762E-02   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10165E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    5.2372       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .97850E-02   1.0000         .10000E-03   10000.    
    11 'Prefactor '    11.667       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10195E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    8.5047       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10043E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .10004E-02   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .11343E-03   1.0000         .10000E-03   10000.    
    18 'Normalizat'    1.1858       1.0000         .10000E-01   10.000    
    19 'Prefactor '    .92752       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5090E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   6523.651     FROM MIGRAD    STATUS=CONVERGED    713 CALLS     2000 TOTAL
                     EDM=   .56E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          7.4075        10.519        .14744E-03   -.16424E-03
   2  norm          .10000E-03    6.6401        .36285E-03** at limit **
   3  Prefactor     .10000E-03    37.870        .18142E-02** at limit **
   4  norm          18.488        8.3454        .93197E-04    .24165E-03
   5  Prefactor     8.6434        14.633        .13623E-03   -.17525E-05
   6  Prefactor     23.453        19.204        .82682E-04    .17556E-03
   7  Prefactor     .10001E-03    214.29        .38255E-03** at limit **
   8  Prefactor     .10000E-03    4.1566        .21506E-02** at limit **
   9  Prefactor     5.2325        4.8295        .16507E-03   -.19906E-03
  10  Prefactor     .10000E-03    17.255        .83172E-01** at limit **
  11  Prefactor     11.660        12.809        .11728E-03    .13920E-03
  12  Prefactor     .10000E-03    10.439        .18142E-02** at limit **
  13  Prefactor     .10000E-03    3.1436        .13961E-02** at limit **
  14  norm          8.5054        3.2588        .86860E-04    .22224E-03
  15  Prefactor     .10000E-03    3.1159        .13886E-02** at limit **
  16  norm          .10001E-03    3.2790        .33913E-01** at limit **
  17  Prefactor     .10000E-03    42.605        .18142E-02** at limit **
  18  Normalizat    1.1855        .21571        .25454E-03    .24247E-03
  19  Prefactor     .92765        .18166        .24302E-03    .40454E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 7.40749
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 18.4881
  Prefactor  = 8.64344
  Prefactor  = 23.4535
  Prefactor  = 0.000100006
  Prefactor  = 0.000100001
  Prefactor  = 5.23249
  Prefactor  = 0.000100001
  Prefactor  = 11.6597
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 8.50541
  Prefactor  = 0.0001
  norm       = 0.000100008
  Prefactor  = 0.000100001
  Normalizat = 1.18549
  Prefactor  = 0.927648
 **********
 **   18 **HESSE 
 **********

 FCN=   6523.651     FROM HESSE     STATUS=OK           268 CALLS     2268 TOTAL
                     EDM=   .56E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          7.4075        10.519        .58975E-05   -1.5164    
   2  norm          .10000E-03    6.6404        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    37.876        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          18.488        8.3455        .37279E-05   -1.4848    
   5  Prefactor     8.6434        14.633        .54492E-05   -1.5120    
   6  Prefactor     23.453        19.204        .16536E-04   -1.4739    
   7  Prefactor     .10001E-03    214.30        .76509E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    4.1775        .43012E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     5.2325        4.8295        .33013E-04   -1.5250    
  10  Prefactor     .10000E-03    15.659        .88764E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     11.660        12.808        .46912E-05   -1.5025    
  12  Prefactor     .10000E-03    10.439        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    3.1439        .27922E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          8.5054        3.2589        .34744E-05   -1.5125    
  15  Prefactor     .10000E-03    3.1163        .27773E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10001E-03    2.6581        .39299E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    42.614        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Normalizat    1.1855        .21587        .50908E-04   -.87052    
  19  Prefactor     .92765        .18176        .48604E-04   -.95182    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.59662e-10
Minuit parameter uncertainties:
  1  10.5218
  2  4.97531e-05
  3  2.56207e-05
  4  8.34603
  5  14.6389
  6  19.2091
  7  0.00219841
  8  0.000104961
  9  4.8299
  10  0.000177099
  11  12.8114
  12  1.41936e-05
  13  8.52495e-06
  14  3.25894
  15  1.3779e-05
  16  0.000300151
  17  0.000324561
  18  0.216036
  19  0.18188
Done.

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

Extracting fit parameters...

4FGL J1357.1+1921
   Spectrum: PowerLaw
267    Prefactor:  1.166e+01  1.281e+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.276e-01  1.819e-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.185e+00  2.160e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.02
Ra Dec: 209.290 19.361
Photon Index (Fixed Index): 2.76 +/- 0.00
Photon Flux (Fixed Index): 4.53e-08 +/- 4.97e-08
Energy Flux (Fixed Index): 1.05e-05 +/- 1.15e-05

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

Saving results to:
/scratch/kocevski/66195/likelihoodResults_581212801_581472001_4FGL_J1357.1+1921_daily_bin1319.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) = 6523.64977186
delta logL = 0.0013369624894

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6523.6488394
delta logL = 0.00226942716017

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    12.249       1.0000         .10000E-03   10000.    
     2 'Index     '    2.6617       1.0000          .0000       10.000    
     3 'Normalizat'    1.1889       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .92509       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5090E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   6523.649     FROM MIGRAD    STATUS=CONVERGED     88 CALLS      276 TOTAL
                     EDM=   .34E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     12.248        16.140        .11446E-03    .23779E-03
   2  Index         2.6613        1.4119        .13835E-01    .48884E-04
   3  Normalizat    1.1891        .21565        .25421E-03   -.22073E-03
   4  Prefactor     .92495        .18356        .24333E-03   -.35055E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 12.2478
  Index      = 2.66134
  Normalizat = 1.18906
  Prefactor  = 0.924946
 **********
 **   18 **HESSE 
 **********

 FCN=   6523.649     FROM HESSE     STATUS=OK            25 CALLS      301 TOTAL
                     EDM=   .33E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     12.248        15.302        .45783E-05   -1.5008    
   2  Index         2.6613        1.3396        .55340E-03   -.48672    
   3  Normalizat    1.1891        .21513        .50842E-04   -.86942    
   4  Prefactor     .92495        .18297        .48666E-04   -.95275    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.33221e-10
Minuit parameter uncertainties:
  1  15.3073
  2  1.36103
  3  0.215294
  4  0.183096
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/66195': 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) = 6523.64883905
delta logL = 0.00226977956845

Extracting fit parameters...

4FGL J1357.1+1921
   Spectrum: PowerLaw
267    Prefactor:  1.225e+01  1.531e+01  1.000e-04  1.000e+04 ( 1.000e-12)
268        Index:  2.661e+00  1.361e+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.249e-01  1.831e-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.189e+00  2.153e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.01
Ra Dec: 209.290 19.361
Photon Index (Free Index): 2.66 +/- 1.36
Photon Flux (Free Index): 4.35e-08 +/- 5.54e-08
Energy Flux (Free Index): 1.08e-05 +/- 1.29e-05

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

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.17e-02', comment='SUCCESS', photon_flux='4.53e-08', energy_flux2='1.08e-05', photon_flux_error='4.97e-08', dlogl='2.27e-03', energy_flux='1.05e-05', photon_flux2='4.35e-08', job_status='DONE', time_completed='2021-09-08 18:10:11.208038', photon_index_error2='1.36', photon_index2='2.66', ts='1.02', fit_tolerance='1e-08', GAL='0.93', photon_index_error='0.00', photon_flux_upper_limit='1.48e-07', energy_flux_error2='1.29e-05', EG='1.19', time_epoch_completed='1631149811.21', return_code='0', job_id='66195', GAL2='0.92', EG2='1.19', return_code2='0', energy_flux_error='1.15e-05', photon_flux_error2='5.54e-08', ts2='1.01', photon_index='2.76' WHERE bin_id='1319' AND source_name='4FGL J1357.1+1921' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  8 18:10:11 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0282>
Subject: Job 66195: <4FGL_J1357.1+1921_daily_bin1319> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1357.1+1921_daily_bin1319 209.29 19.3608 581212801 581472001 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 :                                   544.10 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             335.75 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   566 sec.
    Turnaround time :                            568 sec.

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

