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


Performing analysis on: 4FGL_J1357.1+1921_daily_bin31
RA = 209.29, Dec = 19.3608
tmin = 247363201, tmax = 247622401
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='59773', job_status='RUN', time_executed='2021-09-08 17:41:26.754044', time_epoch_executed='1631148086.75' WHERE source_name='4FGL J1357.1+1921' and cadence='daily' and bin_id='31'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/59773

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/59773/ft1_4FGL_J1357.1+1921_daily_bin31.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/59773/ft2_4FGL_J1357.1+1921_daily_bin31.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/59773/ft1_4FGL_J1357.1+1921_daily_bin31.fits outfile=/scratch/kocevski/59773/ft1_filteredMKT_4FGL_J1357.1+1921_daily_bin31.fits ra=209.29 dec=19.3608 rad=12.0 tmin=247363201.0 tmax=247622401.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.46
user 1.29
sys 0.17

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/59773/ft2_4FGL_J1357.1+1921_daily_bin31.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/59773/ft1_filteredMKT_4FGL_J1357.1+1921_daily_bin31.fits evtable="EVENTS" outfile="/scratch/kocevski/59773/ft1_filtered_4FGL_J1357.1+1921_daily_bin31.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/59773/ft1_filtered_4FGL_J1357.1+1921_daily_bin31.fits" evtable="EVENTS" scfile=/scratch/kocevski/59773/ft2_4FGL_J1357.1+1921_daily_bin31.fits sctable="SC_DATA" outfile=/scratch/kocevski/59773/ltcube_247363201_247622401_4FGL_J1357.1+1921_daily_bin31.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/59773/ft2_4FGL_J1357.1+1921_daily_bin31.fits
.....................!
real 12.91
user 12.52
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/59773/ft1_filtered_4FGL_J1357.1+1921_daily_bin31.fits evtable="EVENTS" scfile=/scratch/kocevski/59773/ft2_4FGL_J1357.1+1921_daily_bin31.fits sctable="SC_DATA" expcube=/scratch/kocevski/59773/ltcube_247363201_247622401_4FGL_J1357.1+1921_daily_bin31.fits outfile=/scratch/kocevski/59773/expmap_247363201_247622401_4FGL_J1357.1+1921_daily_bin31.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/59773/ltcube_247363201_247622401_4FGL_J1357.1+1921_daily_bin31.fits
.....................!
real 192.48
user 187.17
sys 4.87

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/59773/ft1_filtered_4FGL_J1357.1+1921_daily_bin31.fits scfile=/scratch/kocevski/59773/ft2_4FGL_J1357.1+1921_daily_bin31.fits outfile=/scratch/kocevski/59773/cmap_247363201_247622401_4FGL_J1357.1+1921_daily_bin31.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.36
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/59773/ft1_filtered_4FGL_J1357.1+1921_daily_bin31.fits scfile=/scratch/kocevski/59773/ft2_4FGL_J1357.1+1921_daily_bin31.fits outfile=/scratch/kocevski/59773/cmap_HighResolution_247363201_247622401_4FGL_J1357.1+1921_daily_bin31.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.56
user 0.38
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    5.1385       1.0000         .10000E-03   10000.    
     2 'norm      '    .10039E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    .13460E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    2.7602       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10023E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    31.843       1.0000         .10000E-03   10000.    
     8 'Prefactor '    7.6502       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .17467       1.0000         .10000E-03   10000.    
    11 'Prefactor '    5.1657       1.0000         .10000E-03   10000.    
    12 'Prefactor '    15.829       1.0000         .10000E-03   10000.    
    13 'Prefactor '    3.3160       1.0000         .10000E-03   10000.    
    14 'norm      '    4.2364       1.0000         .10000E-03   10000.    
    15 'Prefactor '    4.5330       1.0000         .10000E-03   10000.    
    16 'norm      '    2.3614       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    18 'Normalizat'    .87817       1.0000         .10000E-01   10.000    
    19 'Prefactor '    1.1156       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=   8470.674     FROM MIGRAD    STATUS=CONVERGED    393 CALLS     1639 TOTAL
                     EDM=   .30E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          5.1499        12.988       -.48081E-05   -.70229E-04
   2  norm          .10000E-03    3.1722        .31838E-09** at limit **
   3  Prefactor     .10000E-03    17.173        .13868E-05** at limit **
   4  norm          .10000E-03    3.2648        .39619E-07** at limit **
   5  Prefactor     2.7668        14.436       -.21212E-05   -.12822E-03
   6  Prefactor     .10000E-03    11.744        .17698E-06** at limit **
   7  Prefactor     31.838        29.396       -.57954E-05    .10548E-04
   8  Prefactor     7.6518        4.5740        .54463E-06   -.26704E-03
   9  Prefactor     .10000E-03    1.4177        .16480E-06** at limit **
  10  Prefactor     .27626        5.6584       -.71335E-06    .45693E-04
  11  Prefactor     5.1649        9.8212       -.63753E-06   -.14193E-03
  12  Prefactor     15.839        23.772        .50096E-05   -.30738E-05
  13  Prefactor     3.3157        7.1526       -.12730E-06   -.47468E-03
  14  norm          4.2367        2.2254       -.39170E-07   -.13510E-03
  15  Prefactor     4.5306        6.4882        .64491E-06   -.45770E-03
  16  norm          2.3614        1.7926       -.12128E-06   -.41572E-03
  17  Prefactor     .10000E-03    6.4511       -.35524E-06** at limit **
  18  Normalizat    .87810        .16334        .10040E-06    .53657E-04
  19  Prefactor     1.1155        .13763        .22543E-07    .88637E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 5.14992
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 2.76684
  Prefactor  = 0.0001
  Prefactor  = 31.8384
  Prefactor  = 7.65177
  Prefactor  = 0.0001
  Prefactor  = 0.276264
  Prefactor  = 5.16489
  Prefactor  = 15.8386
  Prefactor  = 3.31567
  norm       = 4.23673
  Prefactor  = 4.5306
  norm       = 2.36144
  Prefactor  = 0.0001
  Normalizat = 0.878097
  Prefactor  = 1.11554
 **********
 **   18 **HESSE 
 **********

 FCN=   8470.674     FROM HESSE     STATUS=OK           276 CALLS     1915 TOTAL
                     EDM=   .83E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          5.1499        13.116        .17736E-03   -1.5254    
   2  norm          .10000E-03    3.2128        .15982E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    17.229        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          .10000E-03    9.0449        .31935E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     2.7668        14.726        .24500E-03   -1.5375    
   6  Prefactor     .10000E-03    11.802        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     31.838        29.293        .71007E-04   -1.4579    
   8  Prefactor     7.6518        4.5553        .14499E-03   -1.5155    
   9  Prefactor     .10000E-03    1.4268        .10700E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .27626        75.127        .41608E-02   -1.5603    
  11  Prefactor     5.1649        9.8612        .17688E-03   -1.5253    
  12  Prefactor     15.839        23.772        .10067E-03   -1.4912    
  13  Prefactor     3.3157        7.0461        .22230E-03   -1.5344    
  14  norm          4.2367        2.2266        .96289E-04   -1.5296    
  15  Prefactor     4.5306        6.3517        .18909E-03   -1.5282    
  16  norm          2.3614        1.7873        .10404E-03   -1.5401    
  17  Prefactor     .10000E-03    6.4536        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Normalizat    .87810        .19035        .26765E-03   -.97234    
  19  Prefactor     1.1155        .16283        .20905E-03   -.88971    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.29779e-10
Minuit parameter uncertainties:
  1  13.1228
  2  1.20206e-05
  3  6.68574e-06
  4  0.00011432
  5  12.7711
  6  1.13175e-05
  7  29.306
  8  4.55549
  9  2.43802e-06
  10  9.12142
  11  9.8643
  12  23.7857
  13  7.04783
  14  2.22662
  15  6.35264
  16  1.78734
  17  2.25524e-06
  18  0.190497
  19  0.1629
Done.

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

Extracting fit parameters...

4FGL J1357.1+1921
   Spectrum: PowerLaw
267    Prefactor:  5.165e+00  9.864e+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

GAL_V02
   Spectrum: PowerLaw
506    Prefactor:  1.116e+00  1.629e-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.781e-01  1.905e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/59773/likelihoodResults_247363201_247622401_4FGL_J1357.1+1921_daily_bin31.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) = 8470.42951094
delta logL = 0.244975248663

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 8470.4278535
delta logL = 0.246632697588

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    3.3425       1.0000         .10000E-03   10000.    
     2 'Index     '    3.7346       1.0000          .0000       10.000    
     3 'Normalizat'    .85538       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1280       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=   8470.428     FROM MIGRAD    STATUS=CONVERGED     54 CALLS      231 TOTAL
                     EDM=   .63E-10    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     3.3235        107.17        .55345E-02    .62956E-03
   2  Index         3.7379        6.8661        .20856        .92537E-04
   3  Normalizat    .85522        .42793E-01    .44329E-01   -.39153E-05
   4  Prefactor     1.1281        .37602E-01    .36609E-01   -.38190E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 3.32345
  Index      = 3.73786
  Normalizat = 0.855219
  Prefactor  = 1.12813
 **********
 **   18 **HESSE 
 **********

 FCN=   8470.428     FROM HESSE     STATUS=OK            33 CALLS      264 TOTAL
                     EDM=   .84E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     3.3235        13.961        .18862E-03   -1.5343    
   2  Index         3.7379        2.8852        .12391E-01   -.25519    
   3  Normalizat    .85522        .18839        .27085E-03   -.98052    
   4  Prefactor     1.1281        .16228        .20800E-03   -.88573    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.40979e-08
Minuit parameter uncertainties:
  1  13.6284
  2  3.09132
  3  0.188535
  4  0.162353
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/59773': 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) = 8470.42784956
delta logL = 0.246636637703

Extracting fit parameters...

4FGL J1357.1+1921
   Spectrum: PowerLaw
267    Prefactor:  3.323e+00  1.363e+01  1.000e-04  1.000e+04 ( 1.000e-12)
268        Index:  3.738e+00  3.091e+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.128e+00  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:  8.552e-01  1.885e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.31
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/59773/cmap_HighResolution_247363201_247622401_4FGL_J1357.1+1921_daily_bin31.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='7.91e-03', job_status='DONE', photon_flux_upper_limit='1.00e-07', time_completed='2021-09-08 17:51:28.637004', job_id='59773', GAL2='1.13', fit_tolerance='1e-08', EG2='0.86', EG='0.88', time_epoch_completed='1631148688.64', return_code2='0', ts='0.31', comment='SUCCESS', return_code='0', GAL='1.12', dlogl='2.47e-01', ts2='0.83', photon_index_error='0.00', photon_index='2.76' WHERE bin_id='31' AND source_name='4FGL J1357.1+1921' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  8 17:51:28 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0070>
Subject: Job 59773: <4FGL_J1357.1+1921_daily_bin31> in cluster <slac> Done

Job <4FGL_J1357.1+1921_daily_bin31> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Wed Sep  8 17:40:59 2021
Job was executed on host(s) <bullet0070>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep  8 17:41:00 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:00 2021
Terminated at Wed Sep  8 17:51:29 2021
Results reported at Wed Sep  8 17:51:29 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1357.1+1921_daily_bin31 209.29 19.3608 247363201 247622401 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 :                                   600.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             297.14 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   628 sec.
    Turnaround time :                            630 sec.

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

