/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 11 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 = 7362
number of fields = 30
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J0937.9-1434_daily_bin1051
RA = 144.475, Dec = -14.5706
tmin = 511747201, tmax = 512006401
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='375415', job_status='RUN', time_executed='2021-08-31 19:31:39.657030', time_epoch_executed='1630463499.66' WHERE source_name='4FGL J0937.9-1434' and cadence='daily' and bin_id='1051'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/375415

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/375415/ft1_4FGL_J0937.9-1434_daily_bin1051.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/375415/ft2_4FGL_J0937.9-1434_daily_bin1051.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/375415/ft1_4FGL_J0937.9-1434_daily_bin1051.fits outfile=/scratch/kocevski/375415/ft1_filteredMKT_4FGL_J0937.9-1434_daily_bin1051.fits ra=144.475 dec=-14.5706 rad=12.0 tmin=511747201.0 tmax=512006401.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.57
user 3.32
sys 0.19

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/375415/ft1_filtered_4FGL_J0937.9-1434_daily_bin1051.fits" evtable="EVENTS" scfile=/scratch/kocevski/375415/ft2_4FGL_J0937.9-1434_daily_bin1051.fits sctable="SC_DATA" outfile=/scratch/kocevski/375415/ltcube_511747201_512006401_4FGL_J0937.9-1434_daily_bin1051.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/375415/ft2_4FGL_J0937.9-1434_daily_bin1051.fits
.....................!
real 12.07
user 11.71
sys 0.30

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/375415/ft1_filtered_4FGL_J0937.9-1434_daily_bin1051.fits evtable="EVENTS" scfile=/scratch/kocevski/375415/ft2_4FGL_J0937.9-1434_daily_bin1051.fits sctable="SC_DATA" expcube=/scratch/kocevski/375415/ltcube_511747201_512006401_4FGL_J0937.9-1434_daily_bin1051.fits outfile=/scratch/kocevski/375415/expmap_511747201_512006401_4FGL_J0937.9-1434_daily_bin1051.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/375415/ltcube_511747201_512006401_4FGL_J0937.9-1434_daily_bin1051.fits
.....................!
real 190.91
user 186.67
sys 3.89

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/375415/ft1_filtered_4FGL_J0937.9-1434_daily_bin1051.fits scfile=/scratch/kocevski/375415/ft2_4FGL_J0937.9-1434_daily_bin1051.fits outfile=/scratch/kocevski/375415/cmap_511747201_512006401_4FGL_J0937.9-1434_daily_bin1051.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.53
user 0.37
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/375415/ft1_filtered_4FGL_J0937.9-1434_daily_bin1051.fits scfile=/scratch/kocevski/375415/ft2_4FGL_J0937.9-1434_daily_bin1051.fits outfile=/scratch/kocevski/375415/cmap_HighResolution_511747201_512006401_4FGL_J0937.9-1434_daily_bin1051.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.53
user 0.39
sys 0.13

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/375415/ft1_filtered_4FGL_J0937.9-1434_daily_bin1051.fits evtable="EVENTS" scfile=/scratch/kocevski/375415/ft2_4FGL_J0937.9-1434_daily_bin1051.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/375415/Model_4FGL_J0937.9-1434_daily_bin1051.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/375415/ft1_filtered_4FGL_J0937.9-1434_daily_bin1051.fits....................!
real 59.60
user 58.34
sys 1.13

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/375415/ft1_filtered_4FGL_J0937.9-1434_daily_bin1051.fits', '/scratch/kocevski/375415/ft2_4FGL_J0937.9-1434_daily_bin1051.fits', expMap='/scratch/kocevski/375415/expmap_511747201_512006401_4FGL_J0937.9-1434_daily_bin1051.fits', expCube='/scratch/kocevski/375415/ltcube_511747201_512006401_4FGL_J0937.9-1434_daily_bin1051.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/375415/Model_4FGL_J0937.9-1434_daily_bin1051.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/375415/ft1_filtered_4FGL_J0937.9-1434_daily_bin1051.fits
Spacecraft file(s): /scratch/kocevski/375415/ft2_4FGL_J0937.9-1434_daily_bin1051.fits
Exposure map: /scratch/kocevski/375415/expmap_511747201_512006401_4FGL_J0937.9-1434_daily_bin1051.fits
Exposure cube: /scratch/kocevski/375415/ltcube_511747201_512006401_4FGL_J0937.9-1434_daily_bin1051.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/375415/Model_4FGL_J0937.9-1434_daily_bin1051.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) = 5423.18432993

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10034E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    6.6172       1.0000         .10000E-03   10000.    
     3 'Prefactor '    2.7387       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10105E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .14206E-02   1.0000         .10000E-03   10000.    
     6 'Prefactor '    24.878       1.0000         .10000E-03   10000.    
     7 'Prefactor '    20.821       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .38072E-01   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .11174E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    10.035       1.0000         .10000E-03   10000.    
    12 'norm      '    22.599       1.0000         .10000E-03   10000.    
    13 'norm      '    8.3040       1.0000         .10000E-03   10000.    
    14 'norm      '    .10017E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .12246E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    4.6984       1.0000         .10000E-03   10000.    
    17 'norm      '    .36162       1.0000         .10000E-03   10000.    
    18 'Normalizat'    .44561       1.0000         .10000E-01   10.000    
    19 'Prefactor '    1.3697       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=   5423.183     FROM MIGRAD    STATUS=CONVERGED    455 CALLS     2812 TOTAL
                     EDM=   .47E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    5.6491        .21200E-07** at limit **
   2  norm          6.6163        3.8782        .69298E-07   -.64762E-04
   3  Prefactor     2.7426        6.0844        .47398E-05   -.18236E-04
   4  Prefactor     .10000E-03    4.1862        .16222E-07** at limit **
   5  Prefactor     .10141E-03    7.3958        .22939E-05** at limit **
   6  Prefactor     24.862        21.229        .22344E-05    .39405E-03
   7  Prefactor     20.840        51.312        .36449E-05    .43924E-04
   8  Prefactor     .11082E-03    30.145       -.43594E-05** at limit **
   9  Prefactor     .10000E-03    18.026       -.90606E-07** at limit **
  10  Prefactor     .10000E-03    28.849       -.93437E-07** at limit **
  11  Prefactor     10.031        13.979       -.20878E-05   -.18550E-03
  12  norm          22.601        10.511        .41856E-06    .11980E-03
  13  norm          8.3066        5.4192        .13168E-06    .11961E-03
  14  norm          .10000E-03    4.9923       -.23175E-08** at limit **
  15  norm          .10000E-03    1.5004        .20438E-06** at limit **
  16  norm          4.7050        10.339        .49619E-06    .21946E-04
  17  norm          .36535        1.9540        .45415E-06   -.15544E-03
  18  Normalizat    .44543        .26895       -.70265E-06   -.16120E-04
  19  Prefactor     1.3696        .15970       -.67489E-06   -.11862E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  norm       = 6.61625
  Prefactor  = 2.74264
  Prefactor  = 0.0001
  Prefactor  = 0.000101405
  Prefactor  = 24.8622
  Prefactor  = 20.8398
  Prefactor  = 0.00011082
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 10.0307
  norm       = 22.6008
  norm       = 8.3066
  norm       = 0.0001
  norm       = 0.0001
  norm       = 4.70495
  norm       = 0.365345
  Normalizat = 0.445425
  Prefactor  = 1.36965
 **********
 **   18 **HESSE 
 **********

 FCN=   5423.183     FROM HESSE     STATUS=OK           286 CALLS     3098 TOTAL
                     EDM=   .31E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    5.6657        .17092E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          6.6163        3.8561        .53433E-03   -1.5193    
   3  Prefactor     2.7426        6.1243        .12301E-02   -1.5377    
   4  Prefactor     .10000E-03    4.1899        .14714E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10141E-03    161.47        .35415E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     24.862        21.508        .80313E-04   -1.4710    
   7  Prefactor     20.840        51.198        .87779E-04   -1.4795    
   8  Prefactor     .11082E-03    29.955        .12365       -1.5707    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    18.041        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    28.901        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     10.031        13.952        .12649E-03   -1.5074    
  12  norm          22.601        10.480        .84259E-04   -1.4757    
  13  norm          8.3066        5.3922        .13203E-03   -1.5131    
  14  norm          .10000E-03    5.0062        .16070E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .10000E-03    2.9531        .17432E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          4.7050        10.304        .18565E-03   -1.5274    
  17  norm          .36535        3.6140        .18308E-02   -1.5587    
  18  Normalizat    .44543        .26641        .45958E-03   -1.1502    
  19  Prefactor     1.3696        .16502        .17287E-03   -.81259    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.12476e-08
Minuit parameter uncertainties:
  1  1.98779e-06
  2  3.85621
  3  6.12567
  4  6.70553e-07
  5  0.0302058
  6  21.5149
  7  51.3057
  8  0.0360243
  9  2.43507e-05
  10  4.38299e-05
  11  13.9565
  12  10.4807
  13  5.39256
  14  6.47463e-08
  15  1.08128e-05
  16  10.3075
  17  2.29801
  18  0.267174
  19  0.165081
Done.

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

Extracting fit parameters...

4FGL J0937.9-1434
   Spectrum: PowerLaw
257    Prefactor:  1.000e-04  4.383e-05  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:  1.370e+00  1.651e-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:  4.454e-01  2.672e-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: 7.84e-08 ph cm-2 s-1
Energy Flux Upper Limit: 5.87e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/375415/likelihoodResults_511747201_512006401_4FGL_J0937.9-1434_daily_bin1051.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) = 5423.18359
delta logL = -0.00016476348992

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5423.18342524
delta logL = -6.11180439591e-09

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.0531       1.0000          .0000       10.000    
     3 'Normalizat'    .44542       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.3696       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=   5423.183     FROM MIGRAD    STATUS=CONVERGED     52 CALLS      232 TOTAL
                     EDM=   .87E-11    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    455.61        .90712E-02** at limit **
   2  Index         2.0514        8.9716        .50000        .44079E-06
   3  Normalizat    .44543        .23853E-01    .10368        .55234E-04
   4  Prefactor     1.3696        .15151E-01    .31494E-01    .30943E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 2.05138
  Normalizat = 0.445426
  Prefactor  = 1.36965
 **********
 **   18 **HESSE 
 **********

 FCN=   5423.183     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      265 TOTAL
                     EDM=   .31E-11    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    6283.8        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.0514        8.7643        .50000       -.63072    
   3  Normalizat    .44543        .65838E-01    .45957E-03   -1.1502    
   4  Prefactor     1.3696        .41964E-01    .17287E-03   -.81259    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 3.0888e-12
Minuit parameter uncertainties:
  1  0.000156737
  2  40.1864
  3  0.0658491
  4  0.041965
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/375415': 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) = 5423.18342524
delta logL = -5.42604539078e-09

Extracting fit parameters...

4FGL J0937.9-1434
   Spectrum: PowerLaw
257    Prefactor:  1.000e-04  1.567e-04  1.000e-04  1.000e+04 ( 1.000e-14)
258        Index:  2.051e+00  4.019e+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:  1.370e+00  4.196e-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:  4.454e-01  6.585e-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  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/375415/cmap_HighResolution_511747201_512006401_4FGL_J0937.9-1434_daily_bin1051.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.87e-03', job_status='DONE', photon_flux_upper_limit='7.84e-08', time_completed='2021-08-31 19:41:42.785062', job_id='375415', GAL2='1.37', fit_tolerance='1e-08', EG2='0.45', EG='0.45', time_epoch_completed='1630464102.79', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.37', dlogl='-5.43e-09', ts2='-0.00', photon_index_error='0.00', photon_index='1.98' WHERE bin_id='1051' AND source_name='4FGL J0937.9-1434' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Aug 31 19:41:42 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0205>
Subject: Job 375415: <4FGL_J0937.9-1434_daily_bin1051> in cluster <slac> Done

Job <4FGL_J0937.9-1434_daily_bin1051> was submitted from host <rhel6-64m> by user <kocevski> in cluster <slac> at Tue Aug 31 19:31:15 2021
Job was executed on host(s) <bullet0205>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Aug 31 19:31:16 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:31:16 2021
Terminated at Tue Aug 31 19:41:43 2021
Results reported at Tue Aug 31 19:41:43 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0937.9-1434_daily_bin1051 144.475 -14.5706 511747201 512006401 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 :                                   576.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             334.10 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   627 sec.
    Turnaround time :                            628 sec.

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

