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


Performing analysis on: 4FGL_J1357.1+1921_daily_bin50
RA = 209.29, Dec = 19.3608
tmin = 252288001, tmax = 252547201
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='59803', job_status='RUN', time_executed='2021-09-08 17:44:35.725118', time_epoch_executed='1631148275.73' WHERE source_name='4FGL J1357.1+1921' and cadence='daily' and bin_id='50'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/59803

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/59803/ft1_4FGL_J1357.1+1921_daily_bin50.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/59803/ft2_4FGL_J1357.1+1921_daily_bin50.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/59803/ft1_4FGL_J1357.1+1921_daily_bin50.fits outfile=/scratch/kocevski/59803/ft1_filteredMKT_4FGL_J1357.1+1921_daily_bin50.fits ra=209.29 dec=19.3608 rad=12.0 tmin=252288001.0 tmax=252547201.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.54
user 2.35
sys 0.18

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/59803/ft1_filtered_4FGL_J1357.1+1921_daily_bin50.fits" evtable="EVENTS" scfile=/scratch/kocevski/59803/ft2_4FGL_J1357.1+1921_daily_bin50.fits sctable="SC_DATA" outfile=/scratch/kocevski/59803/ltcube_252288001_252547201_4FGL_J1357.1+1921_daily_bin50.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/59803/ft2_4FGL_J1357.1+1921_daily_bin50.fits
.....................!
real 12.30
user 11.93
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/59803/ft1_filtered_4FGL_J1357.1+1921_daily_bin50.fits evtable="EVENTS" scfile=/scratch/kocevski/59803/ft2_4FGL_J1357.1+1921_daily_bin50.fits sctable="SC_DATA" expcube=/scratch/kocevski/59803/ltcube_252288001_252547201_4FGL_J1357.1+1921_daily_bin50.fits outfile=/scratch/kocevski/59803/expmap_252288001_252547201_4FGL_J1357.1+1921_daily_bin50.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/59803/ltcube_252288001_252547201_4FGL_J1357.1+1921_daily_bin50.fits
.....................!
real 191.08
user 186.15
sys 4.61

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/59803/ft1_filtered_4FGL_J1357.1+1921_daily_bin50.fits scfile=/scratch/kocevski/59803/ft2_4FGL_J1357.1+1921_daily_bin50.fits outfile=/scratch/kocevski/59803/cmap_252288001_252547201_4FGL_J1357.1+1921_daily_bin50.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.39
sys 0.13

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/59803/ft1_filtered_4FGL_J1357.1+1921_daily_bin50.fits scfile=/scratch/kocevski/59803/ft2_4FGL_J1357.1+1921_daily_bin50.fits outfile=/scratch/kocevski/59803/cmap_HighResolution_252288001_252547201_4FGL_J1357.1+1921_daily_bin50.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.40
sys 0.14

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10014E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    2.9194       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    12.441       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    20.481       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .96608E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .15455E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    7.6463       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    20.369       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    5.1844       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10056E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'Normalizat'    1.3262       1.0000         .10000E-01   10.000    
    19 'Prefactor '    .88101       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=   8243.840     FROM MIGRAD    STATUS=CONVERGED    380 CALLS     1640 TOTAL
                     EDM=   .11E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  5.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10001E-03    14.430        .30559E-05** at limit **
   2  norm          2.9195        3.2938       -.38667E-06   -.76621E-03
   3  Prefactor     .10000E-03    16.805       -.18830E-05** at limit **
   4  norm          12.441        7.8135        .49377E-07   -.19500E-03
   5  Prefactor     .10000E-03    7.9229       -.53939E-06** at limit **
   6  Prefactor     .10000E-03    5.0037       -.13859E-07** at limit **
   7  Prefactor     20.480        26.205       -.38759E-06   -.46958E-04
   8  Prefactor     .10015E-03    1.8937        .98595E-06** at limit **
   9  Prefactor     .10005E-03    3.0223       -.11641E-05** at limit **
  10  Prefactor     7.6456        11.054        .30127E-05   -.41806E-05
  11  Prefactor     .10000E-03    3.4146        .12396E-08** at limit **
  12  Prefactor     20.371        18.507        .49020E-06    .20060E-03
  13  Prefactor     .10000E-03    1.3446        .17595E-07** at limit **
  14  norm          5.1845        2.5604       -.85424E-09   -.15734E-03
  15  Prefactor     .10000E-03    5.8739        .50250E-06** at limit **
  16  norm          .10000E-03    .53573       -.87020E-09** at limit **
  17  Prefactor     .10000E-03    5.0096        .74923E-08** at limit **
  18  Normalizat    1.3262        .16290       -.26841E-06   -.37142E-04
  19  Prefactor     .88098        .13648       -.16810E-06    .19294E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.000100009
  norm       = 2.91949
  Prefactor  = 0.000100004
  norm       = 12.4415
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 20.4799
  Prefactor  = 0.000100154
  Prefactor  = 0.000100048
  Prefactor  = 7.64556
  Prefactor  = 0.0001
  Prefactor  = 20.3707
  Prefactor  = 0.0001
  norm       = 5.18447
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Normalizat = 1.32622
  Prefactor  = 0.880981
 **********
 **   18 **HESSE 
 **********

 FCN=   8243.840     FROM HESSE     STATUS=OK           268 CALLS     1908 TOTAL
                     EDM=   .12E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10001E-03    16.089        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          2.9195        3.3418        .16910E-03   -1.5366    
   3  Prefactor     .10000E-03    17.440        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          12.441        7.8081        .11357E-03   -1.5002    
   5  Prefactor     .10000E-03    7.9841        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    5.0061        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     20.480        26.215        .88503E-04   -1.4803    
   8  Prefactor     .10015E-03    17.862        .22186E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10005E-03    16.892        .28367E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     7.6456        11.692        .72512E-03   -1.5155    
  11  Prefactor     .10000E-03    3.4246        .16383E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     20.371        18.599        .88747E-04   -1.4805    
  13  Prefactor     .10000E-03    1.3460        .10281E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          5.1845        2.5623        .98840E-04   -1.5253    
  15  Prefactor     .10000E-03    6.1588        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10000E-03    .53935        .64891E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    5.0100        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Normalizat    1.3262        .19486        .23899E-03   -.82787    
  19  Prefactor     .88098        .16292        .23991E-03   -.96809    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.18371e-08
Minuit parameter uncertainties:
  1  0.000779735
  2  3.342
  3  0.000517841
  4  7.80871
  5  0.00010245
  6  1.92931e-06
  7  26.2295
  8  0.00331534
  9  0.00179962
  10  11.6954
  11  9.69158e-07
  12  18.6047
  13  2.28734e-07
  14  2.56233
  15  6.46532e-05
  16  1.36345e-07
  17  8.46714e-07
  18  0.194968
  19  0.16301
Done.

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

Extracting fit parameters...

4FGL J1357.1+1921
   Spectrum: PowerLaw
267    Prefactor:  1.000e-04  9.692e-07  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:  8.810e-01  1.630e-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.326e+00  1.950e-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: 5.95e-08 ph cm-2 s-1
Energy Flux Upper Limit: 4.70e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/59803/likelihoodResults_252288001_252547201_4FGL_J1357.1+1921_daily_bin50.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) = 8243.84151432
delta logL = -0.00138978535142

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 8243.84012458
delta logL = -4.29281499237e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10022E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.7529       1.0000          .0000       10.000    
     3 'Normalizat'    1.3262       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .88101       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=   8243.840     FROM MIGRAD    STATUS=FAILED        97 CALLS      248 TOTAL
                     EDM=   .49E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    283.53        .16398E-02** at limit **
   2  Index         2.5186        5.4524        .50000       -.27612E-06
   3  Normalizat    1.3262        .40762E-01    .23899E-03    .56798E-04
   4  Prefactor     .88098        .34325E-01    .23991E-03    .62267E-04
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   8243.840     FROM SIMPLEX   STATUS=UNCHANGED    171 CALLS      419 TOTAL
                     EDM=   .73E-05    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    283.53        .27209E-03** at limit **
   2  Index         2.5186        5.4524        .19625E-05   -.27612E-06
   3  Normalizat    1.3262        .40762E-01    .74027E-07    .56798E-04
   4  Prefactor     .88098        .34325E-01    .29213E-07    .62267E-04
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   8243.840     FROM MIGRAD    STATUS=CONVERGED     34 CALLS      453 TOTAL
                     EDM=   .52E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    841.91        .32796E-03** at limit **
   2  Index         2.5211        5.7733        .50000       -.13165E-06
   3  Normalizat    1.3262        .17480        .95597E-05    .57083E-04
   4  Prefactor     .88098        .14718        .95964E-05    .62551E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 2.5211
  Normalizat = 1.32622
  Prefactor  = 0.880981
 **********
 **   18 **HESSE 
 **********

 FCN=   8243.840     FROM HESSE     STATUS=OK            29 CALLS      482 TOTAL
                     EDM=   .24E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    3.6595        .65592E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.5211        5.9993        .50000       -.51873    
   3  Normalizat    1.3262        .19270        .19119E-05   -.82787    
   4  Prefactor     .88098        .16227        .19193E-05   -.96809    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.35881e-11
Minuit parameter uncertainties:
  1  1.92882e-05
  2  138.981
  3  0.192809
  4  0.162362
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/59803': 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) = 8243.84012419
delta logL = 3.39507096214e-07

Extracting fit parameters...

4FGL J1357.1+1921
   Spectrum: PowerLaw
267    Prefactor:  1.000e-04  1.929e-05  1.000e-04  1.000e+04 ( 1.000e-12)
268        Index:  2.521e+00  1.390e+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:  8.810e-01  1.624e-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.326e+00  1.928e-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 -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/59803/cmap_HighResolution_252288001_252547201_4FGL_J1357.1+1921_daily_bin50.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.70e-03', job_status='DONE', photon_flux_upper_limit='5.95e-08', time_completed='2021-09-08 17:54:41.861849', job_id='59803', GAL2='0.88', fit_tolerance='1e-08', EG2='1.33', EG='1.33', time_epoch_completed='1631148881.86', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.88', dlogl='3.40e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.76' WHERE bin_id='50' AND source_name='4FGL J1357.1+1921' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  8 17:54:41 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0098>
Subject: Job 59803: <4FGL_J1357.1+1921_daily_bin50> in cluster <slac> Done

Job <4FGL_J1357.1+1921_daily_bin50> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Wed Sep  8 17:41:01 2021
Job was executed on host(s) <bullet0098>, 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:54:44 2021
Results reported at Wed Sep  8 17:54:44 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1357.1+1921_daily_bin50 209.29 19.3608 252288001 252547201 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 :                                   605.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             250.63 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   819 sec.
    Turnaround time :                            823 sec.

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

