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


Performing analysis on: 4FGL_J1357.1+1921_daily_bin712
RA = 209.29, Dec = 19.3608
tmin = 423878401, tmax = 424137601
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='62854', job_status='RUN', time_executed='2021-09-08 17:54:36.179242', time_epoch_executed='1631148876.18' WHERE source_name='4FGL J1357.1+1921' and cadence='daily' and bin_id='712'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/62854

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/62854/ft1_4FGL_J1357.1+1921_daily_bin712.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/62854/ft2_4FGL_J1357.1+1921_daily_bin712.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/62854/ft1_4FGL_J1357.1+1921_daily_bin712.fits outfile=/scratch/kocevski/62854/ft1_filteredMKT_4FGL_J1357.1+1921_daily_bin712.fits ra=209.29 dec=19.3608 rad=12.0 tmin=423878401.0 tmax=424137601.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 5.31
user 5.08
sys 0.21

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/62854/ft1_filtered_4FGL_J1357.1+1921_daily_bin712.fits" evtable="EVENTS" scfile=/scratch/kocevski/62854/ft2_4FGL_J1357.1+1921_daily_bin712.fits sctable="SC_DATA" outfile=/scratch/kocevski/62854/ltcube_423878401_424137601_4FGL_J1357.1+1921_daily_bin712.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/62854/ft2_4FGL_J1357.1+1921_daily_bin712.fits
.....................!
real 11.77
user 11.44
sys 0.27

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/62854/ft1_filtered_4FGL_J1357.1+1921_daily_bin712.fits evtable="EVENTS" scfile=/scratch/kocevski/62854/ft2_4FGL_J1357.1+1921_daily_bin712.fits sctable="SC_DATA" expcube=/scratch/kocevski/62854/ltcube_423878401_424137601_4FGL_J1357.1+1921_daily_bin712.fits outfile=/scratch/kocevski/62854/expmap_423878401_424137601_4FGL_J1357.1+1921_daily_bin712.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/62854/ltcube_423878401_424137601_4FGL_J1357.1+1921_daily_bin712.fits
.....................!
real 191.68
user 186.38
sys 4.91

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/62854/ft1_filtered_4FGL_J1357.1+1921_daily_bin712.fits scfile=/scratch/kocevski/62854/ft2_4FGL_J1357.1+1921_daily_bin712.fits outfile=/scratch/kocevski/62854/cmap_423878401_424137601_4FGL_J1357.1+1921_daily_bin712.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.12

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

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    35.703       1.0000         .10000E-03   10000.    
     2 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    59.950       1.0000         .10000E-03   10000.    
     4 'norm      '    .10002E-03   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 '    84.122       1.0000         .10000E-03   10000.    
     8 'Prefactor '    13.881       1.0000         .10000E-03   10000.    
     9 'Prefactor '    9.1079       1.0000         .10000E-03   10000.    
    10 'Prefactor '    7.6563       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10041E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    23.372       1.0000         .10000E-03   10000.    
    13 'Prefactor '    14.618       1.0000         .10000E-03   10000.    
    14 'norm      '    .10059E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .64641E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    9.9375       1.0000         .10000E-03   10000.    
    17 'Prefactor '    120.71       1.0000         .10000E-03   10000.    
    18 'Normalizat'    .82957       1.0000         .10000E-01   10.000    
    19 'Prefactor '    .86989       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=   2072.459     FROM MIGRAD    STATUS=CONVERGED    369 CALLS     1833 TOTAL
                     EDM=   .16E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          35.707        42.034        .54934E-05   -.10474E-03
   2  norm          .10000E-03    5.3169        .29379E-07** at limit **
   3  Prefactor     59.952        56.419        .16711E-05   -.33670E-04
   4  norm          .10000E-03    16.831       -.70057E-07** at limit **
   5  Prefactor     .10000E-03    20.700       -.15403E-05** at limit **
   6  Prefactor     .10000E-03    23.205        .28669E-05** at limit **
   7  Prefactor     84.122        71.802       -.73750E-08   -.30826E-05
   8  Prefactor     13.882        13.916        .41759E-07    .39923E-07
   9  Prefactor     9.1080        7.6034       -.19556E-06   -.42243E-04
  10  Prefactor     7.6564        11.229       -.10200E-06   -.11091E-04
  11  Prefactor     .10000E-03    27.947       -.13741E-05** at limit **
  12  Prefactor     23.370        29.979       -.16106E-05    .28498E-04
  13  Prefactor     14.611        14.479       -.94393E-06   -.39414E-04
  14  norm          .10000E-03    9.5894        .36048E-06** at limit **
  15  Prefactor     .10000E-03    8.2779        .12409E-05** at limit **
  16  norm          9.9341        9.3873       -.54506E-06   -.16312E-02
  17  Prefactor     120.70        121.39       -.10983E-04    .81174E-04
  18  Normalizat    .82939        .31471        .56684E-06   -.36921E-04
  19  Prefactor     .87001        .25465        .51529E-06   -.48533E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 35.7073
  norm       = 0.0001
  Prefactor  = 59.952
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 84.1222
  Prefactor  = 13.8816
  Prefactor  = 9.10803
  Prefactor  = 7.65645
  Prefactor  = 0.0001
  Prefactor  = 23.3703
  Prefactor  = 14.6111
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 9.93408
  Prefactor  = 120.696
  Normalizat = 0.829392
  Prefactor  = 0.870014
 **********
 **   18 **HESSE 
 **********

 FCN=   2072.459     FROM HESSE     STATUS=OK           264 CALLS     2097 TOTAL
                     EDM=   .32E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          35.707        41.190        .67070E-04   -1.4512    
   2  norm          .10000E-03    5.3206        .10252E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     59.952        56.302        .51819E-04   -1.4158    
   4  norm          .10000E-03    16.942        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    20.666        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    23.074        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     84.122        71.814        .43797E-04   -1.3871    
   8  Prefactor     13.882        13.933        .10751E-03   -1.4963    
   9  Prefactor     9.1080        7.6177        .10873E-03   -1.5104    
  10  Prefactor     7.6564        11.231        .14493E-03   -1.5154    
  11  Prefactor     .10000E-03    28.127        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     23.370        29.945        .82856E-04   -1.4741    
  13  Prefactor     14.611        14.338        .10476E-03   -1.4943    
  14  norm          .10000E-03    9.8538        .27527E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    32.062        .24955E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          9.9341        10.263        .63557E-03   -1.5077    
  17  Prefactor     120.70        112.62        .36630E-04   -1.3506    
  18  Normalizat    .82939        .37680        .28207E-03   -.98988    
  19  Prefactor     .87001        .30649        .21932E-03   -.97197    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.18735e-09
Minuit parameter uncertainties:
  1  41.2227
  2  7.5153e-06
  3  56.3516
  4  3.50291e-05
  5  5.93305e-05
  6  0.000129739
  7  71.8887
  8  13.9366
  9  7.61852
  10  11.2346
  11  5.58095e-05
  12  29.9638
  13  14.3415
  14  1.23182e-05
  15  0.000133117
  16  10.265
  17  112.825
  18  0.377995
  19  0.307097
Done.

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

Extracting fit parameters...

4FGL J1357.1+1921
   Spectrum: PowerLaw
267    Prefactor:  1.000e-04  5.581e-05  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.700e-01  3.071e-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:  8.294e-01  3.780e-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: 2.38e-07 ph cm-2 s-1
Energy Flux Upper Limit: 1.88e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/62854/likelihoodResults_423878401_424137601_4FGL_J1357.1+1921_daily_bin712.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) = 2072.45923068
delta logL = -0.000169336703038

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 2072.45906281
delta logL = -1.46862021211e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10281E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    3.2247       1.0000          .0000       10.000    
     3 'Normalizat'    .82939       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .87002       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=   2072.459     FROM MIGRAD    STATUS=CONVERGED    109 CALLS      292 TOTAL
                     EDM=   .26E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10005E-03    77.848        .18082E-01** at limit **
   2  Index         2.4644        7.3101        .50000        .12508E-06
   3  Normalizat    .82939        .12265E-01    .28207E-03   -.65756E-04
   4  Prefactor     .87001        .98145E-02    .21932E-03   -.61285E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100052
  Index      = 2.46438
  Normalizat = 0.829391
  Prefactor  = 0.870014
 **********
 **   18 **HESSE 
 **********

 FCN=   2072.459     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      321 TOTAL
                     EDM=   .84E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10005E-03    2277.7        .49820E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.4644        6.2697        .50000       -.53184    
   3  Normalizat    .82939        .74805E-01    .11283E-04   -.98988    
   4  Prefactor     .87001        .59863E-01    .43865E-04   -.97197    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 8.4007e-08
Minuit parameter uncertainties:
  1  0.0225953
  2  2082.6
  3  0.074814
  4  0.0598675
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/62854': 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): 102
logL (Free Index) = 2072.45906111
delta logL = 2.24851191888e-07

Extracting fit parameters...

4FGL J1357.1+1921
   Spectrum: PowerLaw
267    Prefactor:  1.001e-04  2.260e-02  1.000e-04  1.000e+04 ( 1.000e-12)
268        Index:  2.464e+00  2.083e+03  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.700e-01  5.987e-02  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:  8.294e-01  7.481e-02  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/62854/cmap_HighResolution_423878401_424137601_4FGL_J1357.1+1921_daily_bin712.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.88e-02', job_status='DONE', photon_flux_upper_limit='2.38e-07', time_completed='2021-09-08 18:01:07.514719', job_id='62854', GAL2='0.87', fit_tolerance='1e-08', EG2='0.83', EG='0.83', time_epoch_completed='1631149267.51', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.87', dlogl='2.25e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.76' WHERE bin_id='712' AND source_name='4FGL J1357.1+1921' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  8 18:01:07 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0032>
Subject: Job 62854: <4FGL_J1357.1+1921_daily_bin712> in cluster <slac> Done

Job <4FGL_J1357.1+1921_daily_bin712> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Wed Sep  8 17:50:35 2021
Job was executed on host(s) <bullet0032>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep  8 17:50:37 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:50:37 2021
Terminated at Wed Sep  8 18:01:08 2021
Results reported at Wed Sep  8 18:01:08 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1357.1+1921_daily_bin712 209.29 19.3608 423878401 424137601 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 :                                   389.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             265.95 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   630 sec.
    Turnaround time :                            633 sec.

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

