/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 207 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 = 7364
number of fields = 27
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J1357.1+1921_daily_bin196
RA = 209.29, Dec = 19.3608
tmin = 290131201, tmax = 290390401
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='61052', job_status='RUN', time_executed='2021-09-08 17:49:13.456406', time_epoch_executed='1631148553.46' WHERE source_name='4FGL J1357.1+1921' and cadence='daily' and bin_id='196'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/61052

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/61052/ft1_4FGL_J1357.1+1921_daily_bin196.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/61052/ft2_4FGL_J1357.1+1921_daily_bin196.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/61052/ft1_4FGL_J1357.1+1921_daily_bin196.fits outfile=/scratch/kocevski/61052/ft1_filteredMKT_4FGL_J1357.1+1921_daily_bin196.fits ra=209.29 dec=19.3608 rad=12.0 tmin=290131201.0 tmax=290390401.0 emin=100.0 emax=100000.0 zmin=0.0 zmax=90.0 evclass=128 evtype="INDEF" convtype=-1 phasemin=0.0 phasemax=1.0 evtable="EVENTS" chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

Done.
real 3.51
user 3.25
sys 0.21

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/61052/ft1_filtered_4FGL_J1357.1+1921_daily_bin196.fits evtable="EVENTS" scfile=/scratch/kocevski/61052/ft2_4FGL_J1357.1+1921_daily_bin196.fits sctable="SC_DATA" expcube=/scratch/kocevski/61052/ltcube_290131201_290390401_4FGL_J1357.1+1921_daily_bin196.fits outfile=/scratch/kocevski/61052/expmap_290131201_290390401_4FGL_J1357.1+1921_daily_bin196.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/61052/ltcube_290131201_290390401_4FGL_J1357.1+1921_daily_bin196.fits
.....................!
real 191.99
user 185.41
sys 5.39

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/61052/ft1_filtered_4FGL_J1357.1+1921_daily_bin196.fits scfile=/scratch/kocevski/61052/ft2_4FGL_J1357.1+1921_daily_bin196.fits outfile=/scratch/kocevski/61052/cmap_290131201_290390401_4FGL_J1357.1+1921_daily_bin196.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.54
user 0.38
sys 0.15

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

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    9.9063       1.0000         .10000E-03   10000.    
     3 'Prefactor '    9.4106       1.0000         .10000E-03   10000.    
     4 'norm      '    9.1224       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    52.707       1.0000         .10000E-03   10000.    
     8 'Prefactor '    1.0759       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .89597       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    4.2648       1.0000         .10000E-03   10000.    
    12 'Prefactor '    21.411       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10016E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    5.3483       1.0000         .10000E-03   10000.    
    15 'Prefactor '    2.4858       1.0000         .10000E-03   10000.    
    16 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    15.077       1.0000         .10000E-03   10000.    
    18 'Normalizat'    1.3470       1.0000         .10000E-01   10.000    
    19 'Prefactor '    .50022       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=   5042.572     FROM MIGRAD    STATUS=CONVERGED    369 CALLS     1848 TOTAL
                     EDM=   .81E-11  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    10.299        .48701E-05** at limit **
   2  norm          9.9065        6.5459       -.53131E-07   -.33921E-04
   3  Prefactor     9.4103        23.220       -.83758E-06   -.69357E-08
   4  norm          9.1227        9.3678       -.12557E-06   -.67081E-05
   5  Prefactor     .10000E-03    5.9824        .18787E-06** at limit **
   6  Prefactor     .10000E-03    9.6929       -.45152E-05** at limit **
   7  Prefactor     52.708        49.104        .31381E-06    .64373E-05
   8  Prefactor     1.0764        3.9194       -.29238E-06   -.38889E-04
   9  Prefactor     .89561        5.4565       -.45636E-06   -.45751E-04
  10  Prefactor     .10000E-03    15.950       -.70429E-06** at limit **
  11  Prefactor     4.2649        11.982       -.28478E-06   -.11905E-05
  12  Prefactor     21.410        23.142       -.90596E-06    .29366E-05
  13  Prefactor     .10000E-03    4.2558       -.30906E-07** at limit **
  14  norm          5.3483        2.3614       -.75140E-08    .82164E-05
  15  Prefactor     2.4847        1.1293        .76475E-07   -.55647E-03
  16  norm          .10000E-03    .55832        .17082E-07** at limit **
  17  Prefactor     15.075        39.252       -.44065E-05   -.15375E-06
  18  Normalizat    1.3470        .18565        .33207E-06    .38137E-04
  19  Prefactor     .50021        .15172        .29442E-06    .37717E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  norm       = 9.90649
  Prefactor  = 9.4103
  norm       = 9.12269
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 52.7077
  Prefactor  = 1.07637
  Prefactor  = 0.895611
  Prefactor  = 0.0001
  Prefactor  = 4.26489
  Prefactor  = 21.41
  Prefactor  = 0.0001
  norm       = 5.34833
  Prefactor  = 2.48468
  norm       = 0.0001
  Prefactor  = 15.0751
  Normalizat = 1.34703
  Prefactor  = 0.50021
 **********
 **   18 **HESSE 
 **********

 FCN=   5042.572     FROM HESSE     STATUS=OK           272 CALLS     2120 TOTAL
                     EDM=   .46E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    10.292        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          9.9065        6.5483        .12731E-03   -1.5078    
   3  Prefactor     9.4103        23.226        .13064E-03   -1.5094    
   4  norm          9.1227        9.3851        .13270E-03   -1.5104    
   5  Prefactor     .10000E-03    5.9855        .16963E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    9.7121        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     52.708        49.020        .55245E-04   -1.4255    
   8  Prefactor     1.0764        3.9497        .25645E-03   -1.5500    
   9  Prefactor     .89561        5.5806        .31516E-03   -1.5519    
  10  Prefactor     .10000E-03    16.212        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     4.2649        11.974        .19510E-03   -1.5295    
  12  Prefactor     21.410        23.184        .86562E-04   -1.4782    
  13  Prefactor     .10000E-03    4.2816        .14301E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          5.3483        2.3626        .70550E-04   -1.5245    
  15  Prefactor     2.4847        6.1552        .12894E-02   -1.5393    
  16  norm          .10000E-03    .55943        .51810E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     15.075        39.650        .10315E-03   -1.4931    
  18  Normalizat    1.3470        .21354        .20079E-03   -.82173    
  19  Prefactor     .50021        .17168        .26165E-03   -1.1197    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.63716e-10
Minuit parameter uncertainties:
  1  3.59617e-06
  2  6.54877
  3  23.2487
  4  9.38661
  5  5.70649e-08
  6  3.39682e-07
  7  49.0574
  8  3.95068
  9  4.47162
  10  3.37423e-06
  11  11.9805
  12  23.1936
  13  3.1474e-06
  14  2.36268
  15  6.15678
  16  7.51047e-07
  17  39.7198
  18  0.213685
  19  0.171855
Done.

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

Extracting fit parameters...

4FGL J1357.1+1921
   Spectrum: PowerLaw
267    Prefactor:  4.265e+00  1.198e+01  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:  5.002e-01  1.719e-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.347e+00  2.137e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.15
Ra Dec: 209.290 19.361
Photon Flux Upper Limit: 1.19e-07 ph cm-2 s-1
Energy Flux Upper Limit: 9.43e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/61052/likelihoodResults_290131201_290390401_4FGL_J1357.1+1921_daily_bin196.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): 0
logL (Free Index) = 5042.23885219
delta logL = 0.333261054194

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5042.20673246
delta logL = 0.36538078335

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    6.3319       1.0000         .10000E-03   10000.    
     2 'Index     '    1.7079       1.0000          .0000       10.000    
     3 'Normalizat'    1.3729       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .47745       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.

 FCN=   5042.207     FROM MIGRAD    STATUS=CONVERGED     57 CALLS      219 TOTAL
                     EDM=   .45E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     6.3468        8.4525        .39879E-02    .19303E-02
   2  Index         1.7102        .51997        .18706       -.10113E-03
   3  Normalizat    1.3731        .18011        .31612E-01   -.16857E-03
   4  Prefactor     .47729        .15094        .60410E-01   -.16507E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 6.34676
  Index      = 1.71018
  Normalizat = 1.37311
  Prefactor  = 0.477289
 **********
 **   18 **HESSE 
 **********

 FCN=   5042.207     FROM HESSE     STATUS=OK            31 CALLS      250 TOTAL
                     EDM=   .11E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     6.3468        9.9743        .79758E-03   -1.5204    
   2  Index         1.7102        .73814        .95862E-02   -.71811    
   3  Normalizat    1.3731        .20372        .19912E-03   -.81410    
   4  Prefactor     .47729        .17022        .26730E-03   -1.1303    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.11541e-10
Minuit parameter uncertainties:
  1  9.97689
  2  0.742949
  3  0.203837
  4  0.170405
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/61052': 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) = 5042.20672727
delta logL = 0.365385973824

Extracting fit parameters...

4FGL J1357.1+1921
   Spectrum: PowerLaw
267    Prefactor:  6.347e+00  9.977e+00  1.000e-04  1.000e+04 ( 1.000e-12)
268        Index:  1.710e+00  7.429e-01  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:  4.773e-01  1.704e-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.373e+00  2.038e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.15
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/61052/cmap_HighResolution_290131201_290390401_4FGL_J1357.1+1921_daily_bin196.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='9.43e-03', job_status='DONE', photon_flux_upper_limit='1.19e-07', time_completed='2021-09-08 17:58:06.938606', job_id='61052', GAL2='0.48', fit_tolerance='1e-08', EG2='1.37', EG='1.35', time_epoch_completed='1631149086.94', return_code2='0', ts='0.15', comment='SUCCESS', return_code='0', GAL='0.50', dlogl='3.65e-01', ts2='0.90', photon_index_error='0.00', photon_index='2.76' WHERE bin_id='196' AND source_name='4FGL J1357.1+1921' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  8 17:58:06 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0255>
Subject: Job 61052: <4FGL_J1357.1+1921_daily_bin196> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1357.1+1921_daily_bin196 209.29 19.3608 290131201 290390401 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 :                                   494.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             267.50 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   751 sec.
    Turnaround time :                            753 sec.

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

