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


Performing analysis on: 4FGL_J1357.1+1921_daily_bin54
RA = 209.29, Dec = 19.3608
tmin = 253324801, tmax = 253584001
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='59808', job_status='RUN', time_executed='2021-09-08 17:43:03.514414', time_epoch_executed='1631148183.51' WHERE source_name='4FGL J1357.1+1921' and cadence='daily' and bin_id='54'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/59808

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/59808/ft1_4FGL_J1357.1+1921_daily_bin54.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/59808/ft2_4FGL_J1357.1+1921_daily_bin54.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/59808/ft1_4FGL_J1357.1+1921_daily_bin54.fits outfile=/scratch/kocevski/59808/ft1_filteredMKT_4FGL_J1357.1+1921_daily_bin54.fits ra=209.29 dec=19.3608 rad=12.0 tmin=253324801.0 tmax=253584001.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.43
user 1.26
sys 0.15

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/59808/ft1_filtered_4FGL_J1357.1+1921_daily_bin54.fits" evtable="EVENTS" scfile=/scratch/kocevski/59808/ft2_4FGL_J1357.1+1921_daily_bin54.fits sctable="SC_DATA" outfile=/scratch/kocevski/59808/ltcube_253324801_253584001_4FGL_J1357.1+1921_daily_bin54.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/59808/ft2_4FGL_J1357.1+1921_daily_bin54.fits
.....................!
real 12.63
user 12.26
sys 0.28

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/59808/ft1_filtered_4FGL_J1357.1+1921_daily_bin54.fits evtable="EVENTS" scfile=/scratch/kocevski/59808/ft2_4FGL_J1357.1+1921_daily_bin54.fits sctable="SC_DATA" expcube=/scratch/kocevski/59808/ltcube_253324801_253584001_4FGL_J1357.1+1921_daily_bin54.fits outfile=/scratch/kocevski/59808/expmap_253324801_253584001_4FGL_J1357.1+1921_daily_bin54.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/59808/ltcube_253324801_253584001_4FGL_J1357.1+1921_daily_bin54.fits
.....................!
real 191.13
user 185.95
sys 4.82

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/59808/ft1_filtered_4FGL_J1357.1+1921_daily_bin54.fits scfile=/scratch/kocevski/59808/ft2_4FGL_J1357.1+1921_daily_bin54.fits outfile=/scratch/kocevski/59808/cmap_253324801_253584001_4FGL_J1357.1+1921_daily_bin54.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.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/59808/ft1_filtered_4FGL_J1357.1+1921_daily_bin54.fits scfile=/scratch/kocevski/59808/ft2_4FGL_J1357.1+1921_daily_bin54.fits outfile=/scratch/kocevski/59808/cmap_HighResolution_253324801_253584001_4FGL_J1357.1+1921_daily_bin54.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.37
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10007E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    .11349E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    13.617       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10402E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    11.209       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10036E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .22231E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10018E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    2.9107       1.0000         .10000E-03   10000.    
    14 'norm      '    7.0104       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10526E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .10013E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    3.4335       1.0000         .10000E-03   10000.    
    18 'Normalizat'    .97580       1.0000         .10000E-01   10.000    
    19 'Prefactor '    1.1042       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=   5297.773     FROM MIGRAD    STATUS=CONVERGED    401 CALLS     1631 TOTAL
                     EDM=   .86E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    18.429       -.10366E-06** at limit **
   2  norm          .10000E-03    6.8383        .62663E-07** at limit **
   3  Prefactor     .10000E-03    12.788       -.18653E-06** at limit **
   4  norm          13.613        9.5691        .15952E-06    .62284E-05
   5  Prefactor     .10000E-03    10.753        .11744E-06** at limit **
   6  Prefactor     11.197        17.564        .14759E-06   -.73457E-05
   7  Prefactor     .10000E-03    62.635        .34530E-07** at limit **
   8  Prefactor     .10001E-03    3.0158       -.82927E-06** at limit **
   9  Prefactor     .10000E-03    1.0537        .14854E-07** at limit **
  10  Prefactor     .10000E-03    3.5063        .25237E-07** at limit **
  11  Prefactor     .10000E-03    4.1160        .47089E-07** at limit **
  12  Prefactor     .10000E-03    13.867        .88377E-07** at limit **
  13  Prefactor     2.9081        8.4654        .53786E-05   -.41358E-05
  14  norm          7.0102        2.9168        .27503E-07    .87742E-04
  15  Prefactor     .10000E-03    5.1865       -.29306E-06** at limit **
  16  norm          .10000E-03    1.7419       -.10039E-05** at limit **
  17  Prefactor     3.4110        83.273        .64655E-05   -.83550E-06
  18  Normalizat    .97597        .19821       -.59064E-06    .60089E-04
  19  Prefactor     1.1041        .17143       -.48997E-06    .12669E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 13.6133
  Prefactor  = 0.0001
  Prefactor  = 11.1972
  Prefactor  = 0.0001
  Prefactor  = 0.000100006
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 2.90815
  norm       = 7.0102
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 3.41099
  Normalizat = 0.975968
  Prefactor  = 1.10409
 **********
 **   18 **HESSE 
 **********

 FCN=   5297.773     FROM HESSE     STATUS=OK           264 CALLS     1895 TOTAL
                     EDM=   .64E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    18.486        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .10000E-03    6.9126        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    12.792        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          13.613        9.5836        .10854E-03   -1.4970    
   5  Prefactor     .10000E-03    10.784        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     11.197        17.580        .11966E-03   -1.5039    
   7  Prefactor     .10000E-03    62.937        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10001E-03    16.901        .23562E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    1.0547        .72967E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    3.5089        .13311E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    4.1349        .14420E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    13.887        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     2.9081        8.6003        .11907E-02   -1.5367    
  14  norm          7.0102        2.9176        .78034E-04   -1.5178    
  15  Prefactor     .10000E-03    5.3549        .32418E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10000E-03    2.8872        .18399E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     3.4110        83.835        .21829E-03   -1.5339    
  18  Normalizat    .97597        .23074        .25608E-03   -.93840    
  19  Prefactor     1.1041        .20085        .21220E-03   -.89336    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.39393e-10
Minuit parameter uncertainties:
  1  2.99076e-05
  2  1.31667e-05
  3  1.81242e-05
  4  9.58466
  5  1.52309e-06
  6  17.5879
  7  0.000118788
  8  0.000614799
  9  9.869e-07
  10  3.19001e-06
  11  6.3911e-06
  12  5.76745e-06
  13  8.60391
  14  2.91763
  15  5.26566e-05
  16  5.37159e-05
  17  33.8735
  18  0.230971
  19  0.200992
Done.

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

Extracting fit parameters...

4FGL J1357.1+1921
   Spectrum: PowerLaw
267    Prefactor:  1.000e-04  6.391e-06  1.000e-04  1.000e+04 ( 1.000e-12)
268        Index:  2.758e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
269        Scale:  4.625e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
506    Prefactor:  1.104e+00  2.010e-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:  9.760e-01  2.310e-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: 6.67e-08 ph cm-2 s-1
Energy Flux Upper Limit: 5.26e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/59808/likelihoodResults_253324801_253584001_4FGL_J1357.1+1921_daily_bin54.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) = 5297.77376114
delta logL = -0.00115052546698

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5297.7726106
delta logL = 1.4611032384e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.7499       1.0000          .0000       10.000    
     3 'Normalizat'    .97598       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1041       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.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   5297.773     FROM MIGRAD    STATUS=FAILED        86 CALLS      234 TOTAL
                     EDM=   .22E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10082E-03    157.67        .14456E-02** at limit **
   2  Index         2.6742        5.9801        .50000        .12533E-04
   3  Normalizat    .97597        .30289E-01    .25608E-03   -.16737E-04
   4  Prefactor     1.1041        .26654E-01    .21220E-03   -.11358E-04
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   5297.773     FROM SIMPLEX   STATUS=UNCHANGED    133 CALLS      367 TOTAL
                     EDM=   .11E-04    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10082E-03    157.67        .33401E-03** at limit **
   2  Index         2.6742        5.9801        .58278E-04    .12533E-04
   3  Normalizat    .97597        .30289E-01    .13246E-05   -.16737E-04
   4  Prefactor     1.1041        .26654E-01    .91310E-06   -.11358E-04
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   5297.773     FROM MIGRAD    STATUS=CONVERGED     41 CALLS      408 TOTAL
                     EDM=   .11E-10    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    812.03        .28912E-03** at limit **
   2  Index         2.4578        5.0336        .50000       -.18190E-08
   3  Normalizat    .97597        .10024        .10243E-04    .75251E-04
   4  Prefactor     1.1041        .88209E-01    .84879E-05    .97776E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 2.45779
  Normalizat = 0.975968
  Prefactor  = 1.10409
 **********
 **   18 **HESSE 
 **********

 FCN=   5297.773     FROM HESSE     STATUS=OK            29 CALLS      437 TOTAL
                     EDM=   .87E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    4.8431        .57823E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.4578        7.3144        .50000       -.53337    
   3  Normalizat    .97597        .22430        .20486E-05   -.93840    
   4  Prefactor     1.1041        .19747        .16976E-05   -.89336    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.65462e-12
Minuit parameter uncertainties:
  1  1.95755e-06
  2  148.344
  3  0.22452
  4  0.1976
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/59808': 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) = 5297.77261003
delta logL = 5.83082510275e-07

Extracting fit parameters...

4FGL J1357.1+1921
   Spectrum: PowerLaw
267    Prefactor:  1.000e-04  1.958e-06  1.000e-04  1.000e+04 ( 1.000e-12)
268        Index:  2.458e+00  1.483e+02  0.000e+00  1.000e+01 (-1.000e+00)
269        Scale:  4.625e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
506    Prefactor:  1.104e+00  1.976e-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:  9.760e-01  2.245e-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/59808/cmap_HighResolution_253324801_253584001_4FGL_J1357.1+1921_daily_bin54.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.26e-03', job_status='DONE', photon_flux_upper_limit='6.67e-08', time_completed='2021-09-08 17:51:12.244939', job_id='59808', GAL2='1.10', fit_tolerance='1e-08', EG2='0.98', EG='0.98', time_epoch_completed='1631148672.25', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.10', dlogl='5.83e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.76' WHERE bin_id='54' AND source_name='4FGL J1357.1+1921' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  8 17:51:12 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0128>
Subject: Job 59808: <4FGL_J1357.1+1921_daily_bin54> in cluster <slac> Done

Job <4FGL_J1357.1+1921_daily_bin54> 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) <bullet0128>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep  8 17:41:03 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:03 2021
Terminated at Wed Sep  8 17:51:13 2021
Results reported at Wed Sep  8 17:51:13 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1357.1+1921_daily_bin54 209.29 19.3608 253324801 253584001 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.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             336.90 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   609 sec.
    Turnaround time :                            611 sec.

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

