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


Performing analysis on: 4FGL_J1357.1+1921_daily_bin1421
RA = 209.29, Dec = 19.3608
tmin = 607651201, tmax = 607910401
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='66349', job_status='RUN', time_executed='2021-09-08 18:01:11.757591', time_epoch_executed='1631149271.76' WHERE source_name='4FGL J1357.1+1921' and cadence='daily' and bin_id='1421'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/66349

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/66349/ft1_4FGL_J1357.1+1921_daily_bin1421.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/66349/ft2_4FGL_J1357.1+1921_daily_bin1421.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/66349/ft1_4FGL_J1357.1+1921_daily_bin1421.fits outfile=/scratch/kocevski/66349/ft1_filteredMKT_4FGL_J1357.1+1921_daily_bin1421.fits ra=209.29 dec=19.3608 rad=12.0 tmin=607651201.0 tmax=607910401.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.83
user 3.57
sys 0.22

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/66349/ft1_filtered_4FGL_J1357.1+1921_daily_bin1421.fits evtable="EVENTS" scfile=/scratch/kocevski/66349/ft2_4FGL_J1357.1+1921_daily_bin1421.fits sctable="SC_DATA" expcube=/scratch/kocevski/66349/ltcube_607651201_607910401_4FGL_J1357.1+1921_daily_bin1421.fits outfile=/scratch/kocevski/66349/expmap_607651201_607910401_4FGL_J1357.1+1921_daily_bin1421.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/66349/ltcube_607651201_607910401_4FGL_J1357.1+1921_daily_bin1421.fits
.....................!
real 191.76
user 186.25
sys 5.09

Generating the xml model:
radLim = 0.001
maxRad = 12
normsOnly = True
freeVariableSources = True
Fixing all sources to their catalog values, except variable sources
Creating file and adding sources from 4FGL
Added 157 point sources and 0 extended sources

Setting source of interest to:
4FGL J1357.1+1921 @ 209.29 19.3608

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/66349/ft1_filtered_4FGL_J1357.1+1921_daily_bin1421.fits scfile=/scratch/kocevski/66349/ft2_4FGL_J1357.1+1921_daily_bin1421.fits outfile=/scratch/kocevski/66349/cmap_607651201_607910401_4FGL_J1357.1+1921_daily_bin1421.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.56
user 0.37
sys 0.15

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

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    4.4446       1.0000         .10000E-03   10000.    
     3 'Prefactor '    33.267       1.0000         .10000E-03   10000.    
     4 'norm      '    10.890       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10029E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    3.9769       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .25043E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    1.4729       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .85004E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    145.53       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10161E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    5.9773       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10297E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    4.3050       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    18 'Normalizat'    1.0222       1.0000         .10000E-01   10.000    
    19 'Prefactor '    .77908       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=   5207.753     FROM MIGRAD    STATUS=CONVERGED    388 CALLS     1621 TOTAL
                     EDM=   .15E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    6.9972        .68297E-08** at limit **
   2  norm          4.4442        4.6909        .24839E-07   -.13642E-04
   3  Prefactor     33.241        35.829       -.13747E-05   -.34987E-03
   4  norm          10.890        8.0687        .35110E-07   -.46777E-04
   5  Prefactor     .10000E-03    5.0894       -.65670E-08** at limit **
   6  Prefactor     .10000E-03    5.7998       -.49138E-07** at limit **
   7  Prefactor     .10000E-03    41.164       -.37563E-06** at limit **
   8  Prefactor     3.9765        3.6441        .14179E-06    .21295E-03
   9  Prefactor     .10002E-03    3.7645       -.18877E-05** at limit **
  10  Prefactor     1.4736        9.1501        .47374E-05    .60770E-03
  11  Prefactor     .10005E-03    20.866        .72363E-05** at limit **
  12  Prefactor     145.53        42.615        .13221E-06    .63265E-04
  13  Prefactor     .10000E-03    5.3983        .43085E-06** at limit **
  14  norm          5.9770        2.6791       -.19896E-08   -.67868E-04
  15  Prefactor     .10000E-03    7.9396        .65738E-06** at limit **
  16  norm          4.3048        2.4692        .12943E-07   -.23871E-04
  17  Prefactor     .10000E-03    17.005       -.13407E-07** at limit **
  18  Normalizat    1.0224        .18126       -.18560E-06   -.25853E-03
  19  Prefactor     .77909        .15323       -.24272E-07   -.14861E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  norm       = 4.44422
  Prefactor  = 33.2406
  norm       = 10.8895
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 3.97653
  Prefactor  = 0.000100018
  Prefactor  = 1.47355
  Prefactor  = 0.000100048
  Prefactor  = 145.531
  Prefactor  = 0.0001
  norm       = 5.97705
  Prefactor  = 0.0001
  norm       = 4.30477
  Prefactor  = 0.0001
  Normalizat = 1.02237
  Prefactor  = 0.779086
 **********
 **   18 **HESSE 
 **********

 FCN=   5207.753     FROM HESSE     STATUS=OK           266 CALLS     1887 TOTAL
                     EDM=   .50E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    7.0023        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          4.4442        4.6872        .15300E-03   -1.5286    
   3  Prefactor     33.241        36.609        .69475E-04   -1.4554    
   4  norm          10.890        8.0830        .12141E-03   -1.5048    
   5  Prefactor     .10000E-03    5.0913        .15901E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    5.8040        .16976E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    41.224        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     3.9765        3.6484        .12765E-03   -1.5309    
   9  Prefactor     .10002E-03    17.145        .23245E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     1.4736        10.884        .35399E-03   -1.5465    
  11  Prefactor     .10005E-03    27.464        .38060E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     145.53        42.606        .33402E-04   -1.3289    
  13  Prefactor     .10000E-03    5.4677        .16386E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          5.9770        2.6791        .76728E-04   -1.5219    
  15  Prefactor     .10000E-03    8.3164        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          4.3048        2.4684        .83187E-04   -1.5293    
  17  Prefactor     .10000E-03    17.033        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Normalizat    1.0224        .21055        .23360E-03   -.92285    
  19  Prefactor     .77909        .17847        .22576E-03   -1.0050    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.03538e-09
Minuit parameter uncertainties:
  1  3.98292e-07
  2  4.68761
  3  36.634
  4  8.08385
  5  3.72686e-06
  6  1.53778e-05
  7  0.000139637
  8  3.64863
  9  0.00111301
  10  8.01114
  11  0.0022993
  12  42.6149
  13  6.53208e-05
  14  2.67919
  15  0.000106018
  16  2.46841
  17  2.28212e-05
  18  0.210719
  19  0.178597
Done.

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

Extracting fit parameters...

4FGL J1357.1+1921
   Spectrum: PowerLaw
267    Prefactor:  1.000e-04  2.299e-03  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:  7.791e-01  1.786e-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.022e+00  2.107e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/66349/likelihoodResults_607651201_607910401_4FGL_J1357.1+1921_daily_bin1421.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) = 5207.7531305
delta logL = -0.00017204256892

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5207.75295851
delta logL = -4.64669938083e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .14038E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.8502       1.0000          .0000       10.000    
     3 'Normalizat'    1.0225       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .77897       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=   5207.719     FROM MIGRAD    STATUS=CONVERGED    136 CALLS      300 TOTAL
                     EDM=   .26E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .61222        7.7599        .21073E-03    .34149E-04
   2  Index         4.1645        4.0425        .12090E-01   -.44629E-05
   3  Normalizat    1.0101        .21030        .23490E-03    .10144E-03
   4  Prefactor     .78397        .17717        .22512E-03    .68477E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.612222
  Index      = 4.16445
  Normalizat = 1.01009
  Prefactor  = 0.783974
 **********
 **   18 **HESSE 
 **********

 FCN=   5207.719     FROM HESSE     STATUS=OK            25 CALLS      325 TOTAL
                     EDM=   .36E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .61222        5.7034        .84294E-05   -1.5864    
   2  Index         4.1645        3.6150        .48360E-03   -.16790    
   3  Normalizat    1.0101        .21065        .93958E-05   -.92693    
   4  Prefactor     .78397        .17738        .90050E-05   -1.0032    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.64023e-11
Minuit parameter uncertainties:
  1  3.73741
  2  4.05807
  3  0.210821
  4  0.177508
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/66349': 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) = 5207.71949597
delta logL = 0.0334624935431

Extracting fit parameters...

4FGL J1357.1+1921
   Spectrum: PowerLaw
267    Prefactor:  6.122e-01  3.737e+00  1.000e-04  1.000e+04 ( 1.000e-12)
268        Index:  4.164e+00  4.058e+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:  7.840e-01  1.775e-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.010e+00  2.108e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
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/66349/cmap_HighResolution_607651201_607910401_4FGL_J1357.1+1921_daily_bin1421.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='7.24e-03', job_status='DONE', photon_flux_upper_limit='9.17e-08', time_completed='2021-09-08 18:09:37.287400', job_id='66349', GAL2='0.78', fit_tolerance='1e-08', EG2='1.01', EG='1.02', time_epoch_completed='1631149777.29', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.78', dlogl='3.35e-02', ts2='0.07', photon_index_error='0.00', photon_index='2.76' WHERE bin_id='1421' AND source_name='4FGL J1357.1+1921' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  8 18:09:37 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0192>
Subject: Job 66349: <4FGL_J1357.1+1921_daily_bin1421> in cluster <slac> Done

Job <4FGL_J1357.1+1921_daily_bin1421> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Wed Sep  8 18:00:54 2021
Job was executed on host(s) <bullet0192>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep  8 18:00:56 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:56 2021
Terminated at Wed Sep  8 18:09:37 2021
Results reported at Wed Sep  8 18:09:37 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1357.1+1921_daily_bin1421 209.29 19.3608 607651201 607910401 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 :                                   491.10 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             382.89 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   521 sec.
    Turnaround time :                            523 sec.

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

