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


Performing analysis on: 4FGL_J1936.9-4720_daily_bin125
RA = 294.242, Dec = -47.34
tmin = 271728001, tmax = 271987201
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='40788', job_status='RUN', time_executed='2021-09-23 05:35:53.801351', time_epoch_executed='1632400553.8' WHERE source_name='4FGL J1936.9-4720' and cadence='daily' and bin_id='125'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/40788

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/40788/ft1_4FGL_J1936.9-4720_daily_bin125.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/40788/ft2_4FGL_J1936.9-4720_daily_bin125.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/40788/ft1_4FGL_J1936.9-4720_daily_bin125.fits outfile=/scratch/kocevski/40788/ft1_filteredMKT_4FGL_J1936.9-4720_daily_bin125.fits ra=294.242 dec=-47.34 rad=12.0 tmin=271728001.0 tmax=271987201.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.22
user 2.97
sys 0.23

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/40788/ft2_4FGL_J1936.9-4720_daily_bin125.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/40788/ft2_4FGL_J1936.9-4720_daily_bin125.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/40788/ft1_filteredMKT_4FGL_J1936.9-4720_daily_bin125.fits evtable="EVENTS" outfile="/scratch/kocevski/40788/ft1_filtered_4FGL_J1936.9-4720_daily_bin125.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.54
user 0.34
sys 0.17

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/40788/ft1_filtered_4FGL_J1936.9-4720_daily_bin125.fits" evtable="EVENTS" scfile=/scratch/kocevski/40788/ft2_4FGL_J1936.9-4720_daily_bin125.fits sctable="SC_DATA" outfile=/scratch/kocevski/40788/ltcube_271728001_271987201_4FGL_J1936.9-4720_daily_bin125.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/40788/ft2_4FGL_J1936.9-4720_daily_bin125.fits
.....................!
real 20.85
user 20.44
sys 0.35

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/40788/ft1_filtered_4FGL_J1936.9-4720_daily_bin125.fits evtable="EVENTS" scfile=/scratch/kocevski/40788/ft2_4FGL_J1936.9-4720_daily_bin125.fits sctable="SC_DATA" expcube=/scratch/kocevski/40788/ltcube_271728001_271987201_4FGL_J1936.9-4720_daily_bin125.fits outfile=/scratch/kocevski/40788/expmap_271728001_271987201_4FGL_J1936.9-4720_daily_bin125.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/40788/ltcube_271728001_271987201_4FGL_J1936.9-4720_daily_bin125.fits
.....................!
real 196.45
user 190.72
sys 5.14

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 207 point sources and 0 extended sources

Setting source of interest to:
4FGL J1936.9-4720 @ 294.242 -47.34

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/40788/ft1_filtered_4FGL_J1936.9-4720_daily_bin125.fits scfile=/scratch/kocevski/40788/ft2_4FGL_J1936.9-4720_daily_bin125.fits outfile=/scratch/kocevski/40788/cmap_271728001_271987201_4FGL_J1936.9-4720_daily_bin125.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=294.242 yref=-47.34 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.59
user 0.41
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/40788/ft1_filtered_4FGL_J1936.9-4720_daily_bin125.fits scfile=/scratch/kocevski/40788/ft2_4FGL_J1936.9-4720_daily_bin125.fits outfile=/scratch/kocevski/40788/cmap_HighResolution_271728001_271987201_4FGL_J1936.9-4720_daily_bin125.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=294.242 yref=-47.34 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.58
user 0.40
sys 0.17

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/40788/ft1_filtered_4FGL_J1936.9-4720_daily_bin125.fits evtable="EVENTS" scfile=/scratch/kocevski/40788/ft2_4FGL_J1936.9-4720_daily_bin125.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/40788/Model_4FGL_J1936.9-4720_daily_bin125.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/40788/ft1_filtered_4FGL_J1936.9-4720_daily_bin125.fits.....................!
real 72.71
user 71.03
sys 1.44

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/40788/ft1_filtered_4FGL_J1936.9-4720_daily_bin125.fits', '/scratch/kocevski/40788/ft2_4FGL_J1936.9-4720_daily_bin125.fits', expMap='/scratch/kocevski/40788/expmap_271728001_271987201_4FGL_J1936.9-4720_daily_bin125.fits', expCube='/scratch/kocevski/40788/ltcube_271728001_271987201_4FGL_J1936.9-4720_daily_bin125.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/40788/Model_4FGL_J1936.9-4720_daily_bin125.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1936.9-4720'

4FGL J1936.9-4720
   Spectrum: PowerLaw
454    Prefactor:  3.943e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-14)
455        Index:  1.784e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
456        Scale:  4.198e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/40788/ft1_filtered_4FGL_J1936.9-4720_daily_bin125.fits
Spacecraft file(s): /scratch/kocevski/40788/ft2_4FGL_J1936.9-4720_daily_bin125.fits
Exposure map: /scratch/kocevski/40788/expmap_271728001_271987201_4FGL_J1936.9-4720_daily_bin125.fits
Exposure cube: /scratch/kocevski/40788/ltcube_271728001_271987201_4FGL_J1936.9-4720_daily_bin125.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/40788/Model_4FGL_J1936.9-4720_daily_bin125.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) = 8382.5713346

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    18.160       1.0000         .10000E-03   10000.    
     2 'norm      '    35.688       1.0000         .10000E-03   10000.    
     3 'norm      '    2.2236       1.0000         .10000E-03   10000.    
     4 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    18.120       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    8.3077       1.0000         .10000E-03   10000.    
    11 'norm      '    .10015E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    .10197E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10097E-03   1.0000         .10000E-03   10000.    
    16 'Normalizat'    1.5423       1.0000         .10000E-01   10.000    
    17 'Prefactor '    .76541       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .7180E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.
 MACHINE ACCURACY LIMITS FURTHER IMPROVEMENT.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   8382.569     FROM MIGRAD    STATUS=CONVERGED    336 CALLS     1587 TOTAL
                     EDM=   .12E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          18.161        20.557         .0000       -.12210E-03
   2  norm          35.689        21.743         .0000       -.10001E-03
   3  norm          2.2244        8.0929         .0000        .88521E-02
   4  norm          .10000E-03    .74219         .0000    ** at limit **
   5  Prefactor     .10000E-03    3.6147         .0000    ** at limit **
   6  Prefactor     18.121        25.118         .0000       -.31378E-03
   7  Prefactor     .10000E-03    4.9552         .0000    ** at limit **
   8  norm          .10000E-03    5.4824         .0000    ** at limit **
   9  norm          .10000E-03    .24031         .0000    ** at limit **
  10  norm          8.3074        8.2210         .0000       -.13180E-03
  11  norm          .10000E-03    6.0074         .0000    ** at limit **
  12  norm          .10000E-03    .50069         .0000    ** at limit **
  13  norm          .10000E-03    2.5519         .0000    ** at limit **
  14  norm          .10000E-03    33.709         .0000    ** at limit **
  15  Prefactor     .10000E-03    55.047         .0000    ** at limit **
  16  Normalizat    1.5425        .23144         .0000        .17898E-04
  17  Prefactor     .76534        .81519E-01     .0000        .24829E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 18.1606
  norm       = 35.6886
  norm       = 2.22439
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 18.1214
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  norm       = 8.30738
  norm       = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Normalizat = 1.54251
  Prefactor  = 0.765345
 **********
 **   18 **HESSE 
 **********

 FCN=   8382.569     FROM HESSE     STATUS=OK           217 CALLS     1804 TOTAL
                     EDM=   .85E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          18.161        20.611        .93987E-04   -1.4855    
   2  norm          35.689        21.757        .67084E-04   -1.4512    
   3  norm          2.2244        8.1364        .13787E-02   -1.5410    
   4  norm          .10000E-03    .74684        .77016E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    3.6404        .16993E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     18.121        25.115        .94089E-04   -1.4856    
   7  Prefactor     .10000E-03    5.0005        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .10000E-03    5.4836        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          .10000E-03    .24556        .43808E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          8.3074        8.2203        .13909E-03   -1.5131    
  11  norm          .10000E-03    6.0220        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          .10000E-03    .50375        .63255E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .10000E-03    7.3948        .28276E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .10000E-03    34.614        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    55.561        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Normalizat    1.5425        .27621        .34275E-03   -.76591    
  17  Prefactor     .76534        .97998E-01    .16147E-03   -1.0102    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.45828e-10
Minuit parameter uncertainties:
  1  20.6186
  2  21.7619
  3  8.14039
  4  6.15765e-07
  5  1.73056e-06
  6  25.1295
  7  2.02333e-06
  8  3.2199e-06
  9  1.24627e-07
  10  8.22141
  11  3.58434e-06
  12  1.98992e-07
  13  8.05293e-07
  14  2.95745e-05
  15  7.12543e-05
  16  0.27648
  17  0.0980204
Done.

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

Extracting fit parameters...

4FGL J1936.9-4720
   Spectrum: PowerLaw
454    Prefactor:  1.812e+01  2.513e+01  1.000e-04  1.000e+04 ( 1.000e-14)
455        Index:  1.784e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
456        Scale:  4.198e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
715    Prefactor:  7.653e-01  9.802e-02  0.000e+00  1.000e+01 ( 1.000e+00)
716        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
717        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
714   Normalization:  1.543e+00  2.765e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.72
Ra Dec: 294.242 -47.340
Photon Flux Upper Limit: 8.19e-08 ph cm-2 s-1
Energy Flux Upper Limit: 6.03e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/40788/likelihoodResults_271728001_271987201_4FGL_J1936.9-4720_daily_bin125.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) = 8382.55346665
delta logL = 0.015794901281

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 8382.19387845
delta logL = 0.375383099679

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .66563E-02   1.0000         .10000E-03   10000.    
     2 'Index     '    4.7070       1.0000          .0000       10.000    
     3 'Normalizat'    1.4518       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .78735       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .7180E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   8382.194     FROM MIGRAD    STATUS=CONVERGED     59 CALLS      326 TOTAL
                     EDM=   .53E-10    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .64344E-02    .80269E-01    .14605E-02    .24059E-01
   2  Index         4.7170        1.5436        .68327E-01    .43705E-03
   3  Normalizat    1.4520        .50931E-01    .79377E-01    .17008E-03
   4  Prefactor     .78734        .17711E-01    .43552E-01    .39086E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.00643435
  Index      = 4.71698
  Normalizat = 1.45203
  Prefactor  = 0.787341
 **********
 **   18 **HESSE 
 **********

 FCN=   8382.194     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      359 TOTAL
                     EDM=   .99E-10    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .64344E-02    .25289        .65920E-04   -1.5692    
   2  Index         4.7170        3.2902        .36569E-02   -.56634E-01
   3  Normalizat    1.4520        .19517        .35133E-03   -.79135    
   4  Prefactor     .78734        .66791E-01    .15940E-03   -1.0020    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 9.85849e-11
Minuit parameter uncertainties:
  1  0.0800475
  2  3.59227
  3  0.195271
  4  0.0667979
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/40788': 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) = 8382.19387228
delta logL = 0.375389278206

Extracting fit parameters...

4FGL J1936.9-4720
   Spectrum: PowerLaw
454    Prefactor:  6.434e-03  8.005e-02  1.000e-04  1.000e+04 ( 1.000e-14)
455        Index:  4.717e+00  3.592e+00  0.000e+00  1.000e+01 (-1.000e+00)
456        Scale:  4.198e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
715    Prefactor:  7.873e-01  6.680e-02  0.000e+00  1.000e+01 ( 1.000e+00)
716        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
717        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
714   Normalization:  1.452e+00  1.953e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.56
Ra Dec: 294.242 -47.340
Photon Index (Free Index): 4.72 +/- 3.59
Photon Flux (Free Index): 7.88e-08 +/- 6.58e-08
Energy Flux (Free Index): 1.08e-05 +/- 9.58e-06

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/40788/cmap_HighResolution_271728001_271987201_4FGL_J1936.9-4720_daily_bin125.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.03e-03', comment='SUCCESS', energy_flux2='1.08e-05', dlogl='3.75e-01', photon_flux2='7.88e-08', job_status='DONE', time_completed='2021-09-23 05:48:04.648093', photon_index_error2='3.59', photon_index2='4.72', ts='0.72', fit_tolerance='1e-08', GAL='0.77', photon_index_error='0.00', photon_flux_upper_limit='8.19e-08', energy_flux_error2='9.58e-06', EG='1.54', time_epoch_completed='1632401284.65', return_code='0', job_id='40788', GAL2='0.79', EG2='1.45', return_code2='102', photon_flux_error2='6.58e-08', ts2='1.56', photon_index='1.78' WHERE bin_id='125' AND source_name='4FGL J1936.9-4720' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep 23 05:48:04 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0106>
Subject: Job 40788: <4FGL_J1936.9-4720_daily_bin125> in cluster <slac> Done

Job <4FGL_J1936.9-4720_daily_bin125> was submitted from host <rhel6-64e> by user <kocevski> in cluster <slac> at Thu Sep 23 05:32:45 2021
Job was executed on host(s) <bullet0106>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Sep 23 05:35:40 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Thu Sep 23 05:35:40 2021
Terminated at Thu Sep 23 05:48:05 2021
Results reported at Thu Sep 23 05:48:05 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1936.9-4720_daily_bin125 294.242 -47.34 271728001 271987201 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1936.9-4720 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   728.08 sec.
    Max Memory :                                 1095 MB
    Average Memory :                             340.00 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   744 sec.
    Turnaround time :                            920 sec.

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

