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


Performing analysis on: 4FGL_J0937.9-1434_daily_bin598
RA = 144.475, Dec = -14.5706
tmin = 394329601, tmax = 394588801
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='373855', job_status='RUN', time_executed='2021-08-31 19:29:25.547070', time_epoch_executed='1630463365.55' WHERE source_name='4FGL J0937.9-1434' and cadence='daily' and bin_id='598'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/373855

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

Retrieving the FT1 file...

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

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

Retrieving 53 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/373855/ft1_4FGL_J0937.9-1434_daily_bin598.fits


Retrieving the FT1 file...

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

Retrieving 53 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/373855/ft2_4FGL_J0937.9-1434_daily_bin598.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/373855/ft1_4FGL_J0937.9-1434_daily_bin598.fits outfile=/scratch/kocevski/373855/ft1_filteredMKT_4FGL_J0937.9-1434_daily_bin598.fits ra=144.475 dec=-14.5706 rad=12.0 tmin=394329601.0 tmax=394588801.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 5.52
user 5.27
sys 0.23

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/373855/ft2_4FGL_J0937.9-1434_daily_bin598.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/373855/ft1_filteredMKT_4FGL_J0937.9-1434_daily_bin598.fits evtable="EVENTS" outfile="/scratch/kocevski/373855/ft1_filtered_4FGL_J0937.9-1434_daily_bin598.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.40
user 0.26
sys 0.13

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/373855/ft1_filtered_4FGL_J0937.9-1434_daily_bin598.fits" evtable="EVENTS" scfile=/scratch/kocevski/373855/ft2_4FGL_J0937.9-1434_daily_bin598.fits sctable="SC_DATA" outfile=/scratch/kocevski/373855/ltcube_394329601_394588801_4FGL_J0937.9-1434_daily_bin598.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/373855/ft2_4FGL_J0937.9-1434_daily_bin598.fits
.....................!
real 8.50
user 8.22
sys 0.24

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/373855/ft1_filtered_4FGL_J0937.9-1434_daily_bin598.fits evtable="EVENTS" scfile=/scratch/kocevski/373855/ft2_4FGL_J0937.9-1434_daily_bin598.fits sctable="SC_DATA" expcube=/scratch/kocevski/373855/ltcube_394329601_394588801_4FGL_J0937.9-1434_daily_bin598.fits outfile=/scratch/kocevski/373855/expmap_394329601_394588801_4FGL_J0937.9-1434_daily_bin598.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/373855/ltcube_394329601_394588801_4FGL_J0937.9-1434_daily_bin598.fits
.....................!
real 140.95
user 137.73
sys 2.95

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/373855/ft1_filtered_4FGL_J0937.9-1434_daily_bin598.fits scfile=/scratch/kocevski/373855/ft2_4FGL_J0937.9-1434_daily_bin598.fits outfile=/scratch/kocevski/373855/cmap_394329601_394588801_4FGL_J0937.9-1434_daily_bin598.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.44
user 0.29
sys 0.13

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/373855/ft1_filtered_4FGL_J0937.9-1434_daily_bin598.fits scfile=/scratch/kocevski/373855/ft2_4FGL_J0937.9-1434_daily_bin598.fits outfile=/scratch/kocevski/373855/cmap_HighResolution_394329601_394588801_4FGL_J0937.9-1434_daily_bin598.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.44
user 0.29
sys 0.14

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/373855/ft1_filtered_4FGL_J0937.9-1434_daily_bin598.fits evtable="EVENTS" scfile=/scratch/kocevski/373855/ft2_4FGL_J0937.9-1434_daily_bin598.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/373855/Model_4FGL_J0937.9-1434_daily_bin598.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/373855/ft1_filtered_4FGL_J0937.9-1434_daily_bin598.fits.....................!
real 54.95
user 53.90
sys 0.91

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    9.0103       1.0000         .10000E-03   10000.    
     2 'norm      '    .97732       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .18287E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10025E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    1.7504       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .26049       1.0000         .10000E-03   10000.    
     7 'Prefactor '    26.251       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .12598E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    .80148E-01   1.0000         .10000E-03   10000.    
    13 'norm      '    2.4832       1.0000         .10000E-03   10000.    
    14 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    2.4303       1.0000         .10000E-03   10000.    
    16 'norm      '    4.9680       1.0000         .10000E-03   10000.    
    17 'norm      '    .10013E-03   1.0000         .10000E-03   10000.    
    18 'Normalizat'    1.1760       1.0000         .10000E-01   10.000    
    19 'Prefactor '    .86888       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=   7383.382     FROM MIGRAD    STATUS=CONVERGED    438 CALLS     2012 TOTAL
                     EDM=   .14E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          9.0146        10.183        .15300E-05   -.61110E-05
   2  norm          .97745        2.6327       -.13916E-05   -.15180E-02
   3  Prefactor     .10000E-03    2.0313       -.16029E-06** at limit **
   4  Prefactor     .10000E-03    5.7893       -.74606E-07** at limit **
   5  Prefactor     1.7485        6.8837        .39949E-05   -.58495E-03
   6  Prefactor     .56278        9.6203       -.31398E-06   -.80717E-04
   7  Prefactor     26.277        33.043        .23802E-04    .12148E-04
   8  Prefactor     .10000E-03    13.070       -.89337E-06** at limit **
   9  Prefactor     .10000E-03    11.716        .20607E-05** at limit **
  10  Prefactor     .10000E-03    11.891       -.97419E-06** at limit **
  11  Prefactor     .10007E-03    7.7435       -.63734E-06** at limit **
  12  norm          .12291        4.1532        .44469E-06   -.61682E-04
  13  norm          2.4833        2.1200        .35192E-07    .35941E-04
  14  norm          .10000E-03    2.6914       -.20524E-07** at limit **
  15  norm          2.4308        1.6930        .10827E-06   -.34342E-04
  16  norm          4.9723        10.998       -.13627E-04   -.13929E-03
  17  norm          .10000E-03    .48734        .42602E-07** at limit **
  18  Normalizat    1.1756        .17993        .49806E-06   -.45358E-05
  19  Prefactor     .86892        .10661       -.96460E-06    .19986E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 9.01464
  norm       = 0.977449
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 1.74846
  Prefactor  = 0.562784
  Prefactor  = 26.2773
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100073
  norm       = 0.122911
  norm       = 2.48329
  norm       = 0.0001
  norm       = 2.4308
  norm       = 4.97229
  norm       = 0.0001
  Normalizat = 1.17556
  Prefactor  = 0.86892
 **********
 **   18 **HESSE 
 **********

 FCN=   7383.382     FROM HESSE     STATUS=OK           280 CALLS     2292 TOTAL
                     EDM=   .59E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          9.0146        10.105        .13352E-03   -1.5107    
   2  norm          .97745        2.5925        .21560E-03   -1.5510    
   3  Prefactor     .10000E-03    9.4468        .23815E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    5.8376        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     1.7485        6.8117        .31691E-03   -1.5444    
   6  Prefactor     .56278        145.16        .50962E-02   -1.5558    
   7  Prefactor     26.277        32.764        .78187E-04   -1.4682    
   8  Prefactor     .10000E-03    13.082        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    11.731        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    11.907        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10007E-03    80.578        .45867E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          .12291        39.865        .33368E-02   -1.5638    
  13  norm          2.4833        2.1182        .11263E-03   -1.5393    
  14  norm          .10000E-03    2.6957        .13767E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          2.4308        1.6925        .90486E-04   -1.5396    
  16  norm          4.9723        11.094        .18043E-03   -1.5262    
  17  norm          .10000E-03    .98724        .11613E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Normalizat    1.1756        .21226        .26787E-03   -.87361    
  19  Prefactor     .86892        .12599        .18799E-03   -.97236    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.86684e-08
Minuit parameter uncertainties:
  1  10.1067
  2  2.59282
  3  6.06885e-05
  4  9.10669e-07
  5  6.81476
  6  18.1198
  7  32.7859
  8  3.57007e-06
  9  5.66102e-06
  10  1.33653e-05
  11  0.00486777
  12  4.4283
  13  2.11825
  14  6.29152e-07
  15  1.69251
  16  11.0991
  17  4.44495e-06
  18  0.212415
  19  0.126035
Done.

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

Extracting fit parameters...

4FGL J0937.9-1434
   Spectrum: PowerLaw
257    Prefactor:  1.000e-04  1.337e-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:  8.689e-01  1.260e-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.176e+00  2.124e-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: 4.48e-08 ph cm-2 s-1
Energy Flux Upper Limit: 3.35e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/373855/likelihoodResults_394329601_394588801_4FGL_J0937.9-1434_daily_bin598.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) = 7383.38210652
delta logL = -0.000400163066843

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 7383.38170638
delta logL = -1.80525603355e-08

Fit tolerance = 1e-08

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

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

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   7383.382     FROM MIGRAD    STATUS=CONVERGED     89 CALLS      241 TOTAL
                     EDM=   .14E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10065E-03    61.000        .18142E-02** at limit **
   2  Index         1.9129        8.9943        .50000        .14673E-04
   3  Normalizat    1.1756        .10052E-01    .26787E-03    .18971E-04
   4  Prefactor     .86892        .61994E-02    .18799E-03    .27092E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100648
  Index      = 1.91288
  Normalizat = 1.17556
  Prefactor  = 0.868919
 **********
 **   18 **HESSE 
 **********

 FCN=   7383.382     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      270 TOTAL
                     EDM=   .67E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10065E-03    282.78        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         1.9129        5.2596        .50000       -.66546    
   3  Normalizat    1.1756        .22138E-01    .10715E-04   -.87361    
   4  Prefactor     .86892        .13652E-01    .75198E-05   -.97236    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 6.7018e-09
Minuit parameter uncertainties:
  1  0.0271967
  2  303.123
  3  0.0221383
  4  0.0136524
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/373855': 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) = 7383.38170611
delta logL = 2.51723577094e-07

Extracting fit parameters...

4FGL J0937.9-1434
   Spectrum: PowerLaw
257    Prefactor:  1.006e-04  2.720e-02  1.000e-04  1.000e+04 ( 1.000e-14)
258        Index:  1.913e+00  3.031e+02  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:  8.689e-01  1.365e-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.176e+00  2.214e-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/373855/cmap_HighResolution_394329601_394588801_4FGL_J0937.9-1434_daily_bin598.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.35e-03', job_status='DONE', photon_flux_upper_limit='4.48e-08', time_completed='2021-08-31 19:37:25.963825', job_id='373855', GAL2='0.87', fit_tolerance='1e-08', EG2='1.18', EG='1.18', time_epoch_completed='1630463845.96', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.87', dlogl='2.52e-07', ts2='-0.00', photon_index_error='0.00', photon_index='1.98' WHERE bin_id='598' AND source_name='4FGL J0937.9-1434' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Aug 31 19:37:25 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0071>
Subject: Job 373855: <4FGL_J0937.9-1434_daily_bin598> in cluster <slac> Done

Job <4FGL_J0937.9-1434_daily_bin598> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Tue Aug 31 19:25:33 2021
Job was executed on host(s) <bullet0071>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Aug 31 19:25:34 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:25:34 2021
Terminated at Tue Aug 31 19:37:26 2021
Results reported at Tue Aug 31 19:37:26 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0937.9-1434_daily_bin598 144.475 -14.5706 394329601 394588801 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 :                                   472.47 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             266.55 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   712 sec.
    Turnaround time :                            713 sec.

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

