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


Performing analysis on: 4FGL_J0937.9-1434_daily_bin23
RA = 144.475, Dec = -14.5706
tmin = 245289601, tmax = 245548801
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='368993', job_status='RUN', time_executed='2021-08-31 19:14:48.203083', time_epoch_executed='1630462488.2' WHERE source_name='4FGL J0937.9-1434' and cadence='daily' and bin_id='23'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/368993

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/368993/ft1_4FGL_J0937.9-1434_daily_bin23.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/368993/ft2_4FGL_J0937.9-1434_daily_bin23.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/368993/ft1_4FGL_J0937.9-1434_daily_bin23.fits outfile=/scratch/kocevski/368993/ft1_filteredMKT_4FGL_J0937.9-1434_daily_bin23.fits ra=144.475 dec=-14.5706 rad=12.0 tmin=245289601.0 tmax=245548801.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.47
user 1.30
sys 0.15

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/368993/ft2_4FGL_J0937.9-1434_daily_bin23.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/368993/ft2_4FGL_J0937.9-1434_daily_bin23.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/368993/ft1_filteredMKT_4FGL_J0937.9-1434_daily_bin23.fits evtable="EVENTS" outfile="/scratch/kocevski/368993/ft1_filtered_4FGL_J0937.9-1434_daily_bin23.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.33
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/368993/ft1_filtered_4FGL_J0937.9-1434_daily_bin23.fits" evtable="EVENTS" scfile=/scratch/kocevski/368993/ft2_4FGL_J0937.9-1434_daily_bin23.fits sctable="SC_DATA" outfile=/scratch/kocevski/368993/ltcube_245289601_245548801_4FGL_J0937.9-1434_daily_bin23.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/368993/ft2_4FGL_J0937.9-1434_daily_bin23.fits
.....................!
real 12.39
user 12.05
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/368993/ft1_filtered_4FGL_J0937.9-1434_daily_bin23.fits evtable="EVENTS" scfile=/scratch/kocevski/368993/ft2_4FGL_J0937.9-1434_daily_bin23.fits sctable="SC_DATA" expcube=/scratch/kocevski/368993/ltcube_245289601_245548801_4FGL_J0937.9-1434_daily_bin23.fits outfile=/scratch/kocevski/368993/expmap_245289601_245548801_4FGL_J0937.9-1434_daily_bin23.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/368993/ltcube_245289601_245548801_4FGL_J0937.9-1434_daily_bin23.fits
.....................!
real 190.11
user 185.98
sys 3.65

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

Setting source of interest to:
4FGL J0937.9-1434 @ 144.475 -14.5706

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/368993/ft1_filtered_4FGL_J0937.9-1434_daily_bin23.fits scfile=/scratch/kocevski/368993/ft2_4FGL_J0937.9-1434_daily_bin23.fits outfile=/scratch/kocevski/368993/cmap_245289601_245548801_4FGL_J0937.9-1434_daily_bin23.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=144.475 yref=-14.5706 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.37
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/368993/ft1_filtered_4FGL_J0937.9-1434_daily_bin23.fits scfile=/scratch/kocevski/368993/ft2_4FGL_J0937.9-1434_daily_bin23.fits outfile=/scratch/kocevski/368993/cmap_HighResolution_245289601_245548801_4FGL_J0937.9-1434_daily_bin23.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=144.475 yref=-14.5706 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

This is gtbin version HEAD
real 0.54
user 0.39
sys 0.14

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/368993/ft1_filtered_4FGL_J0937.9-1434_daily_bin23.fits evtable="EVENTS" scfile=/scratch/kocevski/368993/ft2_4FGL_J0937.9-1434_daily_bin23.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/368993/Model_4FGL_J0937.9-1434_daily_bin23.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/368993/ft1_filtered_4FGL_J0937.9-1434_daily_bin23.fits.....................!
real 72.16
user 70.21
sys 1.23

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/368993/ft1_filtered_4FGL_J0937.9-1434_daily_bin23.fits', '/scratch/kocevski/368993/ft2_4FGL_J0937.9-1434_daily_bin23.fits', expMap='/scratch/kocevski/368993/expmap_245289601_245548801_4FGL_J0937.9-1434_daily_bin23.fits', expCube='/scratch/kocevski/368993/ltcube_245289601_245548801_4FGL_J0937.9-1434_daily_bin23.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/368993/Model_4FGL_J0937.9-1434_daily_bin23.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J0937.9-1434'

4FGL J0937.9-1434
   Spectrum: PowerLaw
257    Prefactor:  3.095e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-14)
258        Index:  1.980e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
259        Scale:  3.063e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/368993/ft1_filtered_4FGL_J0937.9-1434_daily_bin23.fits
Spacecraft file(s): /scratch/kocevski/368993/ft2_4FGL_J0937.9-1434_daily_bin23.fits
Exposure map: /scratch/kocevski/368993/expmap_245289601_245548801_4FGL_J0937.9-1434_daily_bin23.fits
Exposure cube: /scratch/kocevski/368993/ltcube_245289601_245548801_4FGL_J0937.9-1434_daily_bin23.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/368993/Model_4FGL_J0937.9-1434_daily_bin23.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) = 6961.8940018

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    3.4120       1.0000         .10000E-03   10000.    
     2 'norm      '    3.8199       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10026E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    29.236       1.0000         .10000E-03   10000.    
     8 'Prefactor '    12.042       1.0000         .10000E-03   10000.    
     9 'Prefactor '    1.6428       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10204E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    4.0130       1.0000         .10000E-03   10000.    
    13 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    5.9760       1.0000         .10000E-03   10000.    
    15 'norm      '    2.2715       1.0000         .10000E-03   10000.    
    16 'norm      '    22.263       1.0000         .10000E-03   10000.    
    17 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    18 'Normalizat'    1.5433       1.0000         .10000E-01   10.000    
    19 'Prefactor '    .74292       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5370E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   6961.883     FROM MIGRAD    STATUS=CONVERGED    388 CALLS     1861 TOTAL
                     EDM=   .99E-11  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          3.4114        6.9895        .11987E-06    .71376E-05
   2  norm          3.8196        2.6390        .46139E-08    .30423E-04
   3  Prefactor     .10000E-03    3.3112       -.37085E-07** at limit **
   4  Prefactor     .10000E-03    9.9195       -.33185E-06** at limit **
   5  Prefactor     .10000E-03    9.5815        .76102E-07** at limit **
   6  Prefactor     .10000E-03    8.7265       -.15415E-06** at limit **
   7  Prefactor     29.293        41.603       -.28105E-05    .29188E-04
   8  Prefactor     12.055        27.433        .13659E-05   -.11050E-05
   9  Prefactor     1.5775        187.11       -.47842E-05    .59002E-06
  10  Prefactor     .10000E-03    11.310        .12221E-06** at limit **
  11  Prefactor     .10000E-03    16.155        .30121E-06** at limit **
  12  norm          4.0135        7.6361        .30287E-05    .23818E-04
  13  norm          .10000E-03    1.2418       -.11972E-08** at limit **
  14  norm          5.9760        6.8389       -.38403E-08    .61661E-05
  15  norm          2.2716        1.6708        .30607E-08    .33319E-04
  16  norm          22.264        11.523       -.13242E-06    .21947E-04
  17  norm          .10000E-03    .42198       -.86827E-07** at limit **
  18  Normalizat    1.5435        .20571       -.79531E-06    .86664E-04
  19  Prefactor     .74285        .11415        .67981E-06    .11241E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 3.41145
  norm       = 3.8196
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 29.2929
  Prefactor  = 12.0552
  Prefactor  = 1.57753
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 4.01349
  norm       = 0.0001
  norm       = 5.97604
  norm       = 2.27156
  norm       = 22.2635
  norm       = 0.0001
  Normalizat = 1.54346
  Prefactor  = 0.742853
 **********
 **   18 **HESSE 
 **********

 FCN=   6961.883     FROM HESSE     STATUS=OK           270 CALLS     2131 TOTAL
                     EDM=   .18E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          3.4114        6.9719        .21901E-03   -1.5339    
   2  norm          3.8196        2.6392        .10938E-03   -1.5317    
   3  Prefactor     .10000E-03    3.3605        .14823E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    10.053        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    9.7902        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    8.7488        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     29.293        41.659        .74097E-04   -1.4625    
   8  Prefactor     12.055        27.461        .11544E-03   -1.5013    
   9  Prefactor     1.5775        189.68        .32961E-03   -1.5457    
  10  Prefactor     .10000E-03    11.318        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    16.320        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          4.0135        7.6469        .10066E-02   -1.5307    
  13  norm          .10000E-03    1.2460        .90787E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          5.9760        6.8393        .16426E-03   -1.5219    
  15  norm          2.2716        1.6682        .89898E-04   -1.5407    
  16  norm          22.264        11.536        .84891E-04   -1.4764    
  17  norm          .10000E-03    .61701        .10524E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Normalizat    1.5435        .23744        .26364E-03   -.76564    
  19  Prefactor     .74285        .13276        .21183E-03   -1.0187    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.77119e-11
Minuit parameter uncertainties:
  1  6.97351
  2  2.63933
  3  3.56082e-06
  4  4.67987e-06
  5  3.16642e-05
  6  1.8549e-05
  7  41.6999
  8  27.4899
  9  34.7084
  10  1.45812e-08
  11  3.66732e-05
  12  7.64877
  13  6.8927e-08
  14  6.8402
  15  1.6682
  16  11.5373
  17  6.87821e-07
  18  0.237615
  19  0.132819
Done.

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

Extracting fit parameters...

4FGL J0937.9-1434
   Spectrum: PowerLaw
257    Prefactor:  1.000e-04  1.458e-08  1.000e-04  1.000e+04 ( 1.000e-14)
258        Index:  1.980e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
259        Scale:  3.063e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
534    Prefactor:  7.429e-01  1.328e-01  0.000e+00  1.000e+01 ( 1.000e+00)
535        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
536        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
533   Normalization:  1.543e+00  2.376e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 144.475 -14.571
Photon Flux Upper Limit: 5.05e-08 ph cm-2 s-1
Energy Flux Upper Limit: 3.78e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/368993/likelihoodResults_245289601_245548801_4FGL_J0937.9-1434_daily_bin23.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) = 6961.88312991
delta logL = -0.000420442212089

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6961.88270958
delta logL = -1.13597707241e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10217E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    1.9694       1.0000          .0000       10.000    
     3 'Normalizat'    1.5435       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .74282       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5370E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   6961.883     FROM MIGRAD    STATUS=CONVERGED     54 CALLS      209 TOTAL
                     EDM=   .65E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    1599.7        .90712E-02** at limit **
   2  Index         1.9594        5.7898        .50000        .69733E-05
   3  Normalizat    1.5435        .80622E-01    .59617E-01    .13178E-05
   4  Prefactor     .74285        .47153E-01    .42968E-01    .12799E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 1.95937
  Normalizat = 1.54346
  Prefactor  = 0.742853
 **********
 **   18 **HESSE 
 **********

 FCN=   6961.883     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      242 TOTAL
                     EDM=   .30E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    762.64        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         1.9594        5.3860        .50000       -.65370    
   3  Normalizat    1.5435        .46909E-01    .26364E-03   -.76564    
   4  Prefactor     .74285        .27453E-01    .21183E-03   -1.0187    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 2.98503e-09
Minuit parameter uncertainties:
  1  7.4149e-05
  2  32.9449
  3  0.0469099
  4  0.0274535
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/368993': 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) = 6961.88270943
delta logL = 3.63479557564e-08

Extracting fit parameters...

4FGL J0937.9-1434
   Spectrum: PowerLaw
257    Prefactor:  1.000e-04  7.415e-05  1.000e-04  1.000e+04 ( 1.000e-14)
258        Index:  1.959e+00  3.294e+01  0.000e+00  1.000e+01 (-1.000e+00)
259        Scale:  3.063e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
534    Prefactor:  7.429e-01  2.745e-02  0.000e+00  1.000e+01 ( 1.000e+00)
535        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
536        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
533   Normalization:  1.543e+00  4.691e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 144.475 -14.571

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/368993/cmap_HighResolution_245289601_245548801_4FGL_J0937.9-1434_daily_bin23.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.78e-03', job_status='DONE', photon_flux_upper_limit='5.05e-08', time_completed='2021-08-31 19:24:28.892007', job_id='368993', GAL2='0.74', fit_tolerance='1e-08', EG2='1.54', EG='1.54', time_epoch_completed='1630463068.89', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.74', dlogl='3.63e-08', ts2='-0.00', photon_index_error='0.00', photon_index='1.98' WHERE bin_id='23' AND source_name='4FGL J0937.9-1434' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Aug 31 19:24:28 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0008>
Subject: Job 368993: <4FGL_J0937.9-1434_daily_bin23> in cluster <slac> Done

Job <4FGL_J0937.9-1434_daily_bin23> was submitted from host <rhel6-64e> by user <kocevski> in cluster <slac> at Tue Aug 31 19:10:46 2021
Job was executed on host(s) <bullet0008>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Aug 31 19:10:48 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Tue Aug 31 19:10:48 2021
Terminated at Tue Aug 31 19:24:29 2021
Results reported at Tue Aug 31 19:24:29 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0937.9-1434_daily_bin23 144.475 -14.5706 245289601 245548801 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J0937.9-1434 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   578.12 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             272.07 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   821 sec.
    Turnaround time :                            823 sec.

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

