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


Performing analysis on: 4FGL_J0937.9-1434_daily_bin1372
RA = 144.475, Dec = -14.5706
tmin = 594950401, tmax = 595209601
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='377189', job_status='RUN', time_executed='2021-08-31 19:36:42.487564', time_epoch_executed='1630463802.49' WHERE source_name='4FGL J0937.9-1434' and cadence='daily' and bin_id='1372'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/377189

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/377189/ft1_4FGL_J0937.9-1434_daily_bin1372.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/377189/ft2_4FGL_J0937.9-1434_daily_bin1372.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/377189/ft1_4FGL_J0937.9-1434_daily_bin1372.fits outfile=/scratch/kocevski/377189/ft1_filteredMKT_4FGL_J0937.9-1434_daily_bin1372.fits ra=144.475 dec=-14.5706 rad=12.0 tmin=594950401.0 tmax=595209601.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 2.97
user 2.78
sys 0.18

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/377189/ft2_4FGL_J0937.9-1434_daily_bin1372.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/377189/ft1_filteredMKT_4FGL_J0937.9-1434_daily_bin1372.fits evtable="EVENTS" outfile="/scratch/kocevski/377189/ft1_filtered_4FGL_J0937.9-1434_daily_bin1372.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.48
user 0.31
sys 0.16

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/377189/ft1_filtered_4FGL_J0937.9-1434_daily_bin1372.fits" evtable="EVENTS" scfile=/scratch/kocevski/377189/ft2_4FGL_J0937.9-1434_daily_bin1372.fits sctable="SC_DATA" outfile=/scratch/kocevski/377189/ltcube_594950401_595209601_4FGL_J0937.9-1434_daily_bin1372.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/377189/ft2_4FGL_J0937.9-1434_daily_bin1372.fits
.....................!
real 12.13
user 11.76
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/377189/ft1_filtered_4FGL_J0937.9-1434_daily_bin1372.fits evtable="EVENTS" scfile=/scratch/kocevski/377189/ft2_4FGL_J0937.9-1434_daily_bin1372.fits sctable="SC_DATA" expcube=/scratch/kocevski/377189/ltcube_594950401_595209601_4FGL_J0937.9-1434_daily_bin1372.fits outfile=/scratch/kocevski/377189/expmap_594950401_595209601_4FGL_J0937.9-1434_daily_bin1372.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/377189/ltcube_594950401_595209601_4FGL_J0937.9-1434_daily_bin1372.fits
.....................!
real 191.17
user 185.99
sys 4.87

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/377189/ft1_filtered_4FGL_J0937.9-1434_daily_bin1372.fits scfile=/scratch/kocevski/377189/ft2_4FGL_J0937.9-1434_daily_bin1372.fits outfile=/scratch/kocevski/377189/cmap_594950401_595209601_4FGL_J0937.9-1434_daily_bin1372.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.36
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/377189/ft1_filtered_4FGL_J0937.9-1434_daily_bin1372.fits scfile=/scratch/kocevski/377189/ft2_4FGL_J0937.9-1434_daily_bin1372.fits outfile=/scratch/kocevski/377189/cmap_HighResolution_594950401_595209601_4FGL_J0937.9-1434_daily_bin1372.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.56
user 0.38
sys 0.14

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/377189/ft1_filtered_4FGL_J0937.9-1434_daily_bin1372.fits evtable="EVENTS" scfile=/scratch/kocevski/377189/ft2_4FGL_J0937.9-1434_daily_bin1372.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/377189/Model_4FGL_J0937.9-1434_daily_bin1372.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/377189/ft1_filtered_4FGL_J0937.9-1434_daily_bin1372.fits.....................!
real 82.90
user 80.65
sys 1.09

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    6.5238       1.0000         .10000E-03   10000.    
     2 'norm      '    .17515       1.0000         .10000E-03   10000.    
     3 'Prefactor '    5.1271       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10237E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    8.5115       1.0000         .10000E-03   10000.    
     6 'Prefactor '    13.395       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .80654       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .12837E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .24815E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    8.8182       1.0000         .10000E-03   10000.    
    11 'Prefactor '    20.817       1.0000         .10000E-03   10000.    
    12 'norm      '    5.1127       1.0000         .10000E-03   10000.    
    13 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    .10012E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .10322E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    4.3266       1.0000         .10000E-03   10000.    
    18 'Normalizat'    1.1958       1.0000         .10000E-01   10.000    
    19 'Prefactor '    .88430       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=   8005.667     FROM MIGRAD    STATUS=CONVERGED    389 CALLS     1903 TOTAL
                     EDM=   .11E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          6.5158        7.5769       -.14954E-06   -.25527E-04
   2  norm          .16936        1.6289        .99121E-08   -.34552E-03
   3  Prefactor     5.1301        4.0124        .11618E-05   -.26028E-02
   4  Prefactor     .10000E-03    3.7030       -.81780E-07** at limit **
   5  Prefactor     8.5083        6.4074       -.15858E-07    .33159E-05
   6  Prefactor     13.389        12.073        .20906E-05    .26814E-03
   7  Prefactor     .70066        19.969       -.77822E-06    .10047E-03
   8  Prefactor     .10000E-03    10.656        .24174E-06** at limit **
   9  Prefactor     .10000E-03    13.732       -.35921E-06** at limit **
  10  Prefactor     8.8234        19.676       -.15518E-05   -.65147E-04
  11  Prefactor     20.829        13.062       -.31946E-05   -.51232E-03
  12  norm          5.1113        5.9887        .14187E-06   -.87413E-04
  13  norm          .10000E-03    1.1549        .66742E-07** at limit **
  14  norm          .10000E-03    3.0365       -.49714E-07** at limit **
  15  norm          .10000E-03    .41678       -.52043E-08** at limit **
  16  norm          .10000E-03    7.8517        .45800E-07** at limit **
  17  norm          4.3267        1.5962        .11738E-07   -.14975E-04
  18  Normalizat    1.1956        .18095       -.25098E-07    .73778E-04
  19  Prefactor     .88436        .10917        .12060E-06    .77623E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 6.51583
  norm       = 0.169363
  Prefactor  = 5.13013
  Prefactor  = 0.0001
  Prefactor  = 8.50832
  Prefactor  = 13.3895
  Prefactor  = 0.700659
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 8.82344
  Prefactor  = 20.8287
  norm       = 5.11135
  norm       = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  norm       = 4.32665
  Normalizat = 1.19564
  Prefactor  = 0.884363
 **********
 **   18 **HESSE 
 **********

 FCN=   8005.667     FROM HESSE     STATUS=OK           274 CALLS     2177 TOTAL
                     EDM=   .62E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          6.5158        7.5451        .15712E-03   -1.5197    
   2  norm          .16936        4.6281        .22014E-02   -1.5626    
   3  Prefactor     5.1301        6.2469        .88777E-03   -1.5255    
   4  Prefactor     .10000E-03    3.7128        .16812E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     8.5083        6.4063        .13740E-03   -1.5125    
   6  Prefactor     13.389        12.159        .10944E-03   -1.4976    
   7  Prefactor     .70066        166.81        .76355E-02   -1.5541    
   8  Prefactor     .10000E-03    10.666        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    13.763        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     8.8234        19.677        .13498E-03   -1.5114    
  11  Prefactor     20.829        13.442        .87786E-04   -1.4795    
  12  norm          5.1113        5.9816        .17781E-03   -1.5256    
  13  norm          .10000E-03    1.1632        .93884E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .10000E-03    3.0396        .15227E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .10000E-03    .41977        .56403E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10000E-03    7.9423        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          4.3267        1.5981        .65949E-04   -1.5292    
  18  Normalizat    1.1956        .21516        .28111E-03   -.86738    
  19  Prefactor     .88436        .13168        .19583E-03   -.96690    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.23454e-08
Minuit parameter uncertainties:
  1  7.54623
  2  1.77032
  3  6.2477
  4  2.34712e-06
  5  6.40683
  6  12.1616
  7  21.6819
  8  1.87977e-06
  9  2.25783e-05
  10  19.6912
  11  13.4437
  12  5.98227
  13  4.1299e-08
  14  1.50249e-06
  15  2.59406e-07
  16  4.14968e-06
  17  1.59809
  18  0.215323
  19  0.131726
Done.

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

Extracting fit parameters...

4FGL J0937.9-1434
   Spectrum: PowerLaw
257    Prefactor:  8.823e+00  1.969e+01  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.844e-01  1.317e-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.196e+00  2.153e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/377189/likelihoodResults_594950401_595209601_4FGL_J0937.9-1434_daily_bin1372.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): 0
logL (Free Index) = 8005.64553126
delta logL = 0.0211572281532

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 8005.63720977
delta logL = 0.0294787206258

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    6.3073       1.0000         .10000E-03   10000.    
     2 'Index     '    2.2466       1.0000          .0000       10.000    
     3 'Normalizat'    1.1925       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .88519       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.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   8005.637     FROM MIGRAD    STATUS=FAILED        88 CALLS      265 TOTAL
                     EDM=   .35E-07    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     6.3080        23.078        .15983E-03   -.14653E-04
   2  Index         2.2465        1.4388        .12020E-01    .53197E-03
   3  Normalizat    1.1925        .21055        .28142E-03    .28372E-03
   4  Prefactor     .88520        .12870        .19574E-03    .45271E-03
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   8005.637     FROM SIMPLEX   STATUS=UNCHANGED     81 CALLS      346 TOTAL
                     EDM=   .14E-04    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     6.3080        23.078        .18815E-03   -1.5206    
   2  Index         2.2465        1.4388        .11142E-02   -.58320    
   3  Normalizat    1.1925        .21055        .20380E-03   -.86834    
   4  Prefactor     .88520        .12870        .22396E-03   -.96660    
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   8005.637     FROM MIGRAD    STATUS=CONVERGED     28 CALLS      374 TOTAL
                     EDM=   .35E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     6.3080        18.628        .63931E-05   -.10670E-05
   2  Index         2.2465        1.1705        .24040E-02    .20707E-04
   3  Normalizat    1.1925        .21036        .56284E-04   -.24239E-06
   4  Prefactor     .88520        .12865        .39148E-04   -.17424E-06
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 6.30797
  Index      = 2.24652
  Normalizat = 1.19252
  Prefactor  = 0.885199
 **********
 **   18 **HESSE 
 **********

 FCN=   8005.637     FROM HESSE     STATUS=OK            25 CALLS      399 TOTAL
                     EDM=   .18E-13    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     6.3080        18.078        .12786E-05   -1.5206    
   2  Index         2.2465        1.1374        .48080E-03   -.58320    
   3  Normalizat    1.1925        .21036        .11257E-04   -.86834    
   4  Prefactor     .88520        .12865        .78296E-05   -.96660    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.77683e-14
Minuit parameter uncertainties:
  1  18.0936
  2  1.15199
  3  0.210513
  4  0.128697
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/377189': 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): 0
logL (Free Index) = 8005.63720976
delta logL = 0.0294787259218

Extracting fit parameters...

4FGL J0937.9-1434
   Spectrum: PowerLaw
257    Prefactor:  6.308e+00  1.809e+01  1.000e-04  1.000e+04 ( 1.000e-14)
258        Index:  2.247e+00  1.152e+00  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.852e-01  1.287e-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.193e+00  2.105e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.27
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/377189/cmap_HighResolution_594950401_595209601_4FGL_J0937.9-1434_daily_bin1372.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.46e-03', job_status='DONE', photon_flux_upper_limit='5.95e-08', time_completed='2021-08-31 19:47:42.865092', job_id='377189', GAL2='0.89', fit_tolerance='1e-08', EG2='1.19', EG='1.20', time_epoch_completed='1630464462.87', return_code2='0', ts='0.27', comment='SUCCESS', return_code='0', GAL='0.88', dlogl='2.95e-02', ts2='0.33', photon_index_error='0.00', photon_index='1.98' WHERE bin_id='1372' AND source_name='4FGL J0937.9-1434' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Aug 31 19:47:42 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0269>
Subject: Job 377189: <4FGL_J0937.9-1434_daily_bin1372> in cluster <slac> Done

Job <4FGL_J0937.9-1434_daily_bin1372> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Tue Aug 31 19:36:30 2021
Job was executed on host(s) <bullet0269>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Aug 31 19:36:32 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:36:32 2021
Terminated at Tue Aug 31 19:47:43 2021
Results reported at Tue Aug 31 19:47:43 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0937.9-1434_daily_bin1372 144.475 -14.5706 594950401 595209601 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 :                                   648.08 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             377.19 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   671 sec.
    Turnaround time :                            673 sec.

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

