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


Performing analysis on: 4FGL_J1357.1+1921_daily_bin105
RA = 209.29, Dec = 19.3608
tmin = 266544001, tmax = 266803201
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='60906', job_status='RUN', time_executed='2021-09-08 17:49:11.339556', time_epoch_executed='1631148551.34' WHERE source_name='4FGL J1357.1+1921' and cadence='daily' and bin_id='105'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/60906

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/60906/ft1_4FGL_J1357.1+1921_daily_bin105.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/60906/ft2_4FGL_J1357.1+1921_daily_bin105.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/60906/ft1_4FGL_J1357.1+1921_daily_bin105.fits outfile=/scratch/kocevski/60906/ft1_filteredMKT_4FGL_J1357.1+1921_daily_bin105.fits ra=209.29 dec=19.3608 rad=12.0 tmin=266544001.0 tmax=266803201.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.41
user 1.23
sys 0.17

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/60906/ft1_filtered_4FGL_J1357.1+1921_daily_bin105.fits evtable="EVENTS" scfile=/scratch/kocevski/60906/ft2_4FGL_J1357.1+1921_daily_bin105.fits sctable="SC_DATA" expcube=/scratch/kocevski/60906/ltcube_266544001_266803201_4FGL_J1357.1+1921_daily_bin105.fits outfile=/scratch/kocevski/60906/expmap_266544001_266803201_4FGL_J1357.1+1921_daily_bin105.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/60906/ltcube_266544001_266803201_4FGL_J1357.1+1921_daily_bin105.fits
.....................!
real 193.23
user 187.68
sys 5.22

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/60906/ft1_filtered_4FGL_J1357.1+1921_daily_bin105.fits scfile=/scratch/kocevski/60906/ft2_4FGL_J1357.1+1921_daily_bin105.fits outfile=/scratch/kocevski/60906/cmap_266544001_266803201_4FGL_J1357.1+1921_daily_bin105.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.52
user 0.38
sys 0.13

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/60906/ft1_filtered_4FGL_J1357.1+1921_daily_bin105.fits scfile=/scratch/kocevski/60906/ft2_4FGL_J1357.1+1921_daily_bin105.fits outfile=/scratch/kocevski/60906/cmap_HighResolution_266544001_266803201_4FGL_J1357.1+1921_daily_bin105.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.55
user 0.39
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    17.935       1.0000         .10000E-03   10000.    
     2 'norm      '    6.4510       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10293E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    16.376       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10016E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .46590       1.0000         .10000E-03   10000.    
     7 'Prefactor '    61.501       1.0000         .10000E-03   10000.    
     8 'Prefactor '    4.3193       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .55417       1.0000         .10000E-03   10000.    
    10 'Prefactor '    6.2297       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10018E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    6.3750       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 '    .13470E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    3.6335       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10013E-03   1.0000         .10000E-03   10000.    
    18 'Normalizat'    1.0415       1.0000         .10000E-01   10.000    
    19 'Prefactor '    1.1139       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=   7285.856     FROM MIGRAD    STATUS=CONVERGED    404 CALLS     1910 TOTAL
                     EDM=   .14E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          17.920        22.696       -.90843E-07    .53652E-05
   2  norm          6.4542        9.2898        .60597E-06    .65171E-04
   3  Prefactor     .10000E-03    15.088       -.15696E-06** at limit **
   4  norm          16.370        11.253       -.29702E-06   -.14180E-03
   5  Prefactor     .10000E-03    5.8912        .13019E-07** at limit **
   6  Prefactor     .41069        21.469        .30993E-05   -.22329E-03
   7  Prefactor     61.417        52.069       -.17023E-06   -.16875E-03
   8  Prefactor     4.3203        4.6798        .31698E-06    .11602E-03
   9  Prefactor     .55373        3.4021        .12300E-05   -.11862E-03
  10  Prefactor     6.2242        13.348        .76849E-06    .75328E-04
  11  Prefactor     .10000E-03    10.196        .12974E-05** at limit **
  12  Prefactor     6.3749        31.479        .27460E-06    .59426E-04
  13  Prefactor     .10000E-03    8.1785       -.32915E-06** at limit **
  14  norm          8.5059        2.7853       -.42544E-06   -.17122E-02
  15  Prefactor     .10002E-03    6.6891       -.40821E-05** at limit **
  16  norm          3.6334        2.3580        .10259E-05    .26245E-02
  17  Prefactor     .10000E-03    22.656        .10811E-06** at limit **
  18  Normalizat    1.0416        .18681       -.20890E-06    .45241E-04
  19  Prefactor     1.1139        .15360       -.65197E-06    .19357E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 17.9201
  norm       = 6.45419
  Prefactor  = 0.0001
  norm       = 16.37
  Prefactor  = 0.0001
  Prefactor  = 0.410687
  Prefactor  = 61.417
  Prefactor  = 4.32027
  Prefactor  = 0.553735
  Prefactor  = 6.22424
  Prefactor  = 0.000100001
  Prefactor  = 6.37495
  Prefactor  = 0.0001
  norm       = 8.50592
  Prefactor  = 0.00010002
  norm       = 3.63337
  Prefactor  = 0.0001
  Normalizat = 1.04163
  Prefactor  = 1.11389
 **********
 **   18 **HESSE 
 **********

 FCN=   7285.856     FROM HESSE     STATUS=OK           286 CALLS     2196 TOTAL
                     EDM=   .43E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          17.920        22.666        .94574E-04   -1.4861    
   2  norm          6.4542        9.2418        .15802E-03   -1.5200    
   3  Prefactor     .10000E-03    15.142        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          16.370        11.211        .98973E-04   -1.4899    
   5  Prefactor     .10000E-03    5.8927        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .41069        21.692        .10169       -1.5580    
   7  Prefactor     61.417        52.081        .25583E-03   -1.4139    
   8  Prefactor     4.3203        4.6950        .18373E-03   -1.5292    
   9  Prefactor     .55373        6.3631        .28714E-02   -1.5559    
  10  Prefactor     6.2242        13.301        .16083E-03   -1.5209    
  11  Prefactor     .10000E-03    10.559        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     6.3749        31.329        .15897E-03   -1.5203    
  13  Prefactor     .10000E-03    8.3243        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          8.5059        2.8293        .40263E-03   -1.5125    
  15  Prefactor     .10002E-03    9.7912        .30856E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          3.6334        2.5032        .54122E-03   -1.5327    
  17  Prefactor     .10000E-03    22.728        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Normalizat    1.0416        .22223        .26969E-03   -.91649    
  19  Prefactor     1.1139        .18240        .22605E-03   -.89024    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.2661e-08
Minuit parameter uncertainties:
  1  22.6767
  2  9.24382
  3  2.57527e-05
  4  11.2125
  5  2.53903e-06
  6  5.97099
  7  52.1194
  8  4.6954
  9  3.75434
  10  13.3076
  11  0.000196178
  12  28.2882
  13  2.47707e-05
  14  2.8293
  15  0.000895384
  16  2.50328
  17  3.22582e-05
  18  0.222432
  19  0.182502
Done.

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

Extracting fit parameters...

4FGL J1357.1+1921
   Spectrum: PowerLaw
267    Prefactor:  1.000e-04  1.962e-04  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.114e+00  1.825e-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.042e+00  2.224e-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: 7.10e-08 ph cm-2 s-1
Energy Flux Upper Limit: 5.61e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/60906/likelihoodResults_266544001_266803201_4FGL_J1357.1+1921_daily_bin105.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) = 7285.85690353
delta logL = -0.000451932431133

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 7285.85645113
delta logL = 4.68789039587e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10168E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.7043       1.0000          .0000       10.000    
     3 'Normalizat'    1.0416       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1139       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=   7285.820     FROM MIGRAD    STATUS=FAILED       147 CALLS      303 TOTAL
                     EDM=   .43E-07    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     1.3168        7.2685        .36285E-02    .37775E-02
   2  Index         1.7189        .69633        .44803       -.32318E-04
   3  Normalizat    1.0449        .20711        .26969E-03    .84310E-07
   4  Prefactor     1.1090        .18060        .22605E-03    .24141E-06
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   7285.820     FROM SIMPLEX   STATUS=UNCHANGED     70 CALLS      373 TOTAL
                     EDM=   .99E-05    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     1.3168        7.2685        .12671E-03   -1.5478    
   2  Index         1.7189        .69633        .11282E-02   -.71580    
   3  Normalizat    1.0449        .20711        .28291E-03   -.91543    
   4  Prefactor     1.1090        .18060        .21452E-03   -.89180    
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   7285.820     FROM MIGRAD    STATUS=CONVERGED     31 CALLS      404 TOTAL
                     EDM=   .21E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     1.3168        5.9748        .72569E-03    .15106E-03
   2  Index         1.7189        1.3504        .13331E-01   -.12935E-03
   3  Normalizat    1.0449        .20702        .10787E-04    .21078E-06
   4  Prefactor     1.1090        .18028        .45210E-04    .24141E-06
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.31683
  Index      = 1.7189
  Normalizat = 1.04485
  Prefactor  = 1.109
 **********
 **   18 **HESSE 
 **********

 FCN=   7285.820     FROM HESSE     STATUS=OK            27 CALLS      431 TOTAL
                     EDM=   .34E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     1.3168        6.2286        .14514E-03   -1.5478    
   2  Index         1.7189        1.3791        .26663E-02   -.71580    
   3  Normalizat    1.0449        .20682        .21575E-05   -.91543    
   4  Prefactor     1.1090        .18013        .45210E-04   -.89180    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.37896e-12
Minuit parameter uncertainties:
  1  5.72858
  2  1.41177
  3  0.206975
  4  0.180233
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/60906': 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) = 7285.82036956
delta logL = 0.0360820334772

Extracting fit parameters...

4FGL J1357.1+1921
   Spectrum: PowerLaw
267    Prefactor:  1.317e+00  5.729e+00  1.000e-04  1.000e+04 ( 1.000e-12)
268        Index:  1.719e+00  1.412e+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:  1.109e+00  1.802e-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.045e+00  2.070e-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/60906/cmap_HighResolution_266544001_266803201_4FGL_J1357.1+1921_daily_bin105.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.61e-03', job_status='DONE', photon_flux_upper_limit='7.10e-08', time_completed='2021-09-08 17:59:33.354743', job_id='60906', GAL2='1.11', fit_tolerance='1e-08', EG2='1.04', EG='1.04', time_epoch_completed='1631149173.35', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.11', dlogl='3.61e-02', ts2='0.07', photon_index_error='0.00', photon_index='2.76' WHERE bin_id='105' AND source_name='4FGL J1357.1+1921' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  8 17:59:33 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0240>
Subject: Job 60906: <4FGL_J1357.1+1921_daily_bin105> in cluster <slac> Done

Job <4FGL_J1357.1+1921_daily_bin105> was submitted from host <rhel6-64m> by user <kocevski> in cluster <slac> at Wed Sep  8 17:45:21 2021
Job was executed on host(s) <bullet0240>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep  8 17:45:22 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:45:22 2021
Terminated at Wed Sep  8 17:59:34 2021
Results reported at Wed Sep  8 17:59:34 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1357.1+1921_daily_bin105 209.29 19.3608 266544001 266803201 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 :                                   588.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             218.52 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   851 sec.
    Turnaround time :                            853 sec.

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

