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


Performing analysis on: 4FGL_J1936.9-4720_daily_bin411
RA = 294.242, Dec = -47.34
tmin = 345859201, tmax = 346118401
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='44430', job_status='RUN', time_executed='2021-09-23 05:48:35.392230', time_epoch_executed='1632401315.39' WHERE source_name='4FGL J1936.9-4720' and cadence='daily' and bin_id='411'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/44430

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/44430/ft1_4FGL_J1936.9-4720_daily_bin411.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/44430/ft2_4FGL_J1936.9-4720_daily_bin411.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/44430/ft1_4FGL_J1936.9-4720_daily_bin411.fits outfile=/scratch/kocevski/44430/ft1_filteredMKT_4FGL_J1936.9-4720_daily_bin411.fits ra=294.242 dec=-47.34 rad=12.0 tmin=345859201.0 tmax=346118401.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.42
user 3.19
sys 0.21

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/44430/ft2_4FGL_J1936.9-4720_daily_bin411.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/44430/ft1_filteredMKT_4FGL_J1936.9-4720_daily_bin411.fits evtable="EVENTS" outfile="/scratch/kocevski/44430/ft1_filtered_4FGL_J1936.9-4720_daily_bin411.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.51
user 0.35
sys 0.16

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/44430/ft1_filtered_4FGL_J1936.9-4720_daily_bin411.fits" evtable="EVENTS" scfile=/scratch/kocevski/44430/ft2_4FGL_J1936.9-4720_daily_bin411.fits sctable="SC_DATA" outfile=/scratch/kocevski/44430/ltcube_345859201_346118401_4FGL_J1936.9-4720_daily_bin411.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/44430/ft2_4FGL_J1936.9-4720_daily_bin411.fits
.....................!
real 15.86
user 15.38
sys 0.37

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/44430/ft1_filtered_4FGL_J1936.9-4720_daily_bin411.fits evtable="EVENTS" scfile=/scratch/kocevski/44430/ft2_4FGL_J1936.9-4720_daily_bin411.fits sctable="SC_DATA" expcube=/scratch/kocevski/44430/ltcube_345859201_346118401_4FGL_J1936.9-4720_daily_bin411.fits outfile=/scratch/kocevski/44430/expmap_345859201_346118401_4FGL_J1936.9-4720_daily_bin411.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/44430/ltcube_345859201_346118401_4FGL_J1936.9-4720_daily_bin411.fits
.....................!
real 193.94
user 187.80
sys 4.84

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/44430/ft1_filtered_4FGL_J1936.9-4720_daily_bin411.fits scfile=/scratch/kocevski/44430/ft2_4FGL_J1936.9-4720_daily_bin411.fits outfile=/scratch/kocevski/44430/cmap_345859201_346118401_4FGL_J1936.9-4720_daily_bin411.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.58
user 0.40
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/44430/ft1_filtered_4FGL_J1936.9-4720_daily_bin411.fits scfile=/scratch/kocevski/44430/ft2_4FGL_J1936.9-4720_daily_bin411.fits outfile=/scratch/kocevski/44430/cmap_HighResolution_345859201_346118401_4FGL_J1936.9-4720_daily_bin411.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.56
user 0.42
sys 0.13

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/44430/ft1_filtered_4FGL_J1936.9-4720_daily_bin411.fits evtable="EVENTS" scfile=/scratch/kocevski/44430/ft2_4FGL_J1936.9-4720_daily_bin411.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/44430/Model_4FGL_J1936.9-4720_daily_bin411.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/44430/ft1_filtered_4FGL_J1936.9-4720_daily_bin411.fits.....................!
real 77.54
user 76.03
sys 1.26

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/44430/ft1_filtered_4FGL_J1936.9-4720_daily_bin411.fits', '/scratch/kocevski/44430/ft2_4FGL_J1936.9-4720_daily_bin411.fits', expMap='/scratch/kocevski/44430/expmap_345859201_346118401_4FGL_J1936.9-4720_daily_bin411.fits', expCube='/scratch/kocevski/44430/ltcube_345859201_346118401_4FGL_J1936.9-4720_daily_bin411.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/44430/Model_4FGL_J1936.9-4720_daily_bin411.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/44430/ft1_filtered_4FGL_J1936.9-4720_daily_bin411.fits
Spacecraft file(s): /scratch/kocevski/44430/ft2_4FGL_J1936.9-4720_daily_bin411.fits
Exposure map: /scratch/kocevski/44430/expmap_345859201_346118401_4FGL_J1936.9-4720_daily_bin411.fits
Exposure cube: /scratch/kocevski/44430/ltcube_345859201_346118401_4FGL_J1936.9-4720_daily_bin411.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/44430/Model_4FGL_J1936.9-4720_daily_bin411.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) = 9465.74632515

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10030E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    23.681       1.0000         .10000E-03   10000.    
     3 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    1.6679       1.0000         .10000E-03   10000.    
     5 'Prefactor '    15.823       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .15784E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    6.9312       1.0000         .10000E-03   10000.    
     8 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    .24506       1.0000         .10000E-03   10000.    
    10 'norm      '    7.9602       1.0000         .10000E-03   10000.    
    11 'norm      '    .10144E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    3.1137       1.0000         .10000E-03   10000.    
    13 'norm      '    2.0945       1.0000         .10000E-03   10000.    
    14 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'Normalizat'    .83161       1.0000         .10000E-01   10.000    
    17 'Prefactor '    .92761       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.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   9465.681     FROM MIGRAD    STATUS=CONVERGED    326 CALLS     1374 TOTAL
                     EDM=   .12E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    5.0223        .36081E-06** at limit **
   2  norm          23.687        16.871       -.21382E-05   -.12644E-05
   3  norm          .10000E-03    3.1254        .12213E-06** at limit **
   4  norm          1.6681        1.5457       -.75061E-07   -.35374E-03
   5  Prefactor     15.815        7.5240        .23262E-05    .20499E-04
   6  Prefactor     .10000E-03    73.651       -.54020E-05** at limit **
   7  Prefactor     6.9333        8.8391       -.32652E-05   -.14650E-03
   8  norm          .10000E-03    4.6745        .28147E-06** at limit **
   9  norm          .24515        .51074       -.24214E-07   -.37924E-03
  10  norm          7.9610        6.4906       -.34896E-07   -.69283E-04
  11  norm          .10000E-03    6.5601        .89956E-06** at limit **
  12  norm          3.1136        1.8563       -.25391E-07   -.32167E-03
  13  norm          2.0951        2.5939       -.27755E-06   -.70215E-03
  14  norm          .10000E-03    4.9388       -.74948E-06** at limit **
  15  Prefactor     .10000E-03    8.4661       -.12934E-05** at limit **
  16  Normalizat    .83204        .22273       -.81833E-06    .42743E-05
  17  Prefactor     .92742        .80862E-01    .35044E-06   -.11779E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  norm       = 23.6871
  norm       = 0.0001
  norm       = 1.66811
  Prefactor  = 15.8146
  Prefactor  = 0.000100001
  Prefactor  = 6.93328
  norm       = 0.0001
  norm       = 0.245147
  norm       = 7.96099
  norm       = 0.0001
  norm       = 3.11365
  norm       = 2.09505
  norm       = 0.0001
  Prefactor  = 0.0001
  Normalizat = 0.832041
  Prefactor  = 0.927423
 **********
 **   18 **HESSE 
 **********

 FCN=   9465.681     FROM HESSE     STATUS=OK           225 CALLS     1599 TOTAL
                     EDM=   .25E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    5.0245        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          23.687        16.863        .82313E-04   -1.4734    
   3  norm          .10000E-03    3.1463        .16797E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          1.6681        1.5368        .11334E-03   -1.5450    
   5  Prefactor     15.815        7.4603        .10069E-03   -1.4912    
   6  Prefactor     .10000E-03    77.137        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     6.9333        8.9258        .15239E-03   -1.5181    
   8  norm          .10000E-03    4.6755        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          .24515        .51069        .40726E-04   -1.5609    
  10  norm          7.9610        6.4891        .14211E-03   -1.5144    
  11  norm          .10000E-03    6.5815        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          3.1136        1.8534        .98591E-04   -1.5355    
  13  norm          2.0951        2.6011        .16975E-03   -1.5418    
  14  norm          .10000E-03    4.9389        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    8.4673        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Normalizat    .83204        .25277        .41395E-03   -.98891    
  17  Prefactor     .92742        .92697E-01    .14492E-03   -.95189    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.47063e-10
Minuit parameter uncertainties:
  1  1.00496e-06
  2  16.866
  3  6.71296e-07
  4  1.53681
  5  7.46077
  6  0.000548345
  7  8.92754
  8  2.93224e-06
  9  0.5107
  10  6.48964
  11  3.51549e-07
  12  1.85347
  13  2.60122
  14  3.51043e-07
  15  1.29333e-06
  16  0.253127
  17  0.092713
Done.

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

Extracting fit parameters...

4FGL J1936.9-4720
   Spectrum: PowerLaw
454    Prefactor:  1.000e-04  5.483e-04  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:  9.274e-01  9.271e-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:  8.320e-01  2.531e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/44430/likelihoodResults_345859201_346118401_4FGL_J1936.9-4720_daily_bin411.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) = 9465.68154447
delta logL = -6.17746482021e-05

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 9465.68148251
delta logL = 1.8633545551e-07

Fit tolerance = 1e-08

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

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

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   9465.595     FROM MIGRAD    STATUS=FAILED       235 CALLS      427 TOTAL
                     EDM=   .83E-05    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    .31182E-01    .29875E-03** at limit **
   2  Index         5.5577        7.6830        .10565E-01    .20514E-02
   3  Normalizat    .80422        .68046E-01    .42032E-03   -.18100E-03
   4  Prefactor     .93336        .24933E-01    .14447E-03   -.58531E-03
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   9465.595     FROM SIMPLEX   STATUS=UNCHANGED    175 CALLS      602 TOTAL
                     EDM=   .79E-05    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    .31182E-01    .18763E-04** at limit **
   2  Index         5.5577        7.6830        .24610E-04    .20514E-02
   3  Normalizat    .80422        .68046E-01    .18492E-05   -.18100E-03
   4  Prefactor     .93336        .24933E-01    .39752E-06   -.58531E-03
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   9465.595     FROM MIGRAD    STATUS=CONVERGED     42 CALLS      644 TOTAL
                     EDM=   .66E-10    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    .18321E-01    .38310E-03** at limit **
   2  Index         5.5577        7.6299        .21130E-02    .47346E-05
   3  Normalizat    .80422        .61850E-01    .16813E-04   -.17148E-03
   4  Prefactor     .93336        .22837E-01    .28894E-04   -.56753E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 5.55769
  Normalizat = 0.804221
  Prefactor  = 0.933358
 **********
 **   18 **HESSE 
 **********

 FCN=   9465.595     FROM HESSE     STATUS=NOT POSDEF    35 CALLS      679 TOTAL
                     EDM=   .34E-10    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    .24803E-01    .34402E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         5.5577        7.6952        .84522E-04    .11177    
   3  Normalizat    .80422        .67846E-01    .33626E-05   -.99912    
   4  Prefactor     .93336        .25070E-01    .57788E-05   -.94985    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 3.42945e-11
Minuit parameter uncertainties:
  1  1.84752e-08
  2  7.07134
  3  0.0678528
  4  0.0250704
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/44430': 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) = 9465.59541344
delta logL = 0.0860692608294

Extracting fit parameters...

4FGL J1936.9-4720
   Spectrum: PowerLaw
454    Prefactor:  1.000e-04  1.848e-08  1.000e-04  1.000e+04 ( 1.000e-14)
455        Index:  5.558e+00  7.071e+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:  9.334e-01  2.507e-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:  8.042e-01  6.785e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 294.242 -47.340

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/44430/cmap_HighResolution_345859201_346118401_4FGL_J1936.9-4720_daily_bin411.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.92e-03', job_status='DONE', photon_flux_upper_limit='5.33e-08', time_completed='2021-09-23 06:01:24.821744', job_id='44430', GAL2='0.93', fit_tolerance='1e-08', EG2='0.80', EG='0.83', time_epoch_completed='1632402084.82', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.93', dlogl='8.61e-02', ts2='0.18', photon_index_error='0.00', photon_index='1.78' WHERE bin_id='411' AND source_name='4FGL J1936.9-4720' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep 23 06:01:24 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0037>
Subject: Job 44430: <4FGL_J1936.9-4720_daily_bin411> in cluster <slac> Done

Job <4FGL_J1936.9-4720_daily_bin411> was submitted from host <rhel6-64j> by user <kocevski> in cluster <slac> at Thu Sep 23 05:46:44 2021
Job was executed on host(s) <bullet0037>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Sep 23 05:46:45 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:46:45 2021
Terminated at Thu Sep 23 06:01:25 2021
Results reported at Thu Sep 23 06:01:25 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1936.9-4720_daily_bin411 294.242 -47.34 345859201 346118401 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 :                                   768.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             320.93 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   880 sec.
    Turnaround time :                            881 sec.

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

