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


Performing analysis on: 4FGL_J0937.9-1434_daily_bin1097
RA = 144.475, Dec = -14.5706
tmin = 523670401, tmax = 523929601
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='375490', job_status='RUN', time_executed='2021-08-31 19:33:02.141911', time_epoch_executed='1630463582.14' WHERE source_name='4FGL J0937.9-1434' and cadence='daily' and bin_id='1097'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/375490

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/375490/ft1_4FGL_J0937.9-1434_daily_bin1097.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/375490/ft2_4FGL_J0937.9-1434_daily_bin1097.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/375490/ft1_4FGL_J0937.9-1434_daily_bin1097.fits outfile=/scratch/kocevski/375490/ft1_filteredMKT_4FGL_J0937.9-1434_daily_bin1097.fits ra=144.475 dec=-14.5706 rad=12.0 tmin=523670401.0 tmax=523929601.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.59
user 3.34
sys 0.18

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/375490/ft2_4FGL_J0937.9-1434_daily_bin1097.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/375490/ft1_filteredMKT_4FGL_J0937.9-1434_daily_bin1097.fits evtable="EVENTS" outfile="/scratch/kocevski/375490/ft1_filtered_4FGL_J0937.9-1434_daily_bin1097.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 1.46
user 0.33
sys 0.17

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/375490/ft1_filtered_4FGL_J0937.9-1434_daily_bin1097.fits" evtable="EVENTS" scfile=/scratch/kocevski/375490/ft2_4FGL_J0937.9-1434_daily_bin1097.fits sctable="SC_DATA" outfile=/scratch/kocevski/375490/ltcube_523670401_523929601_4FGL_J0937.9-1434_daily_bin1097.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/375490/ft2_4FGL_J0937.9-1434_daily_bin1097.fits
.....................!
real 13.85
user 12.04
sys 0.38

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/375490/ft1_filtered_4FGL_J0937.9-1434_daily_bin1097.fits evtable="EVENTS" scfile=/scratch/kocevski/375490/ft2_4FGL_J0937.9-1434_daily_bin1097.fits sctable="SC_DATA" expcube=/scratch/kocevski/375490/ltcube_523670401_523929601_4FGL_J0937.9-1434_daily_bin1097.fits outfile=/scratch/kocevski/375490/expmap_523670401_523929601_4FGL_J0937.9-1434_daily_bin1097.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/375490/ltcube_523670401_523929601_4FGL_J0937.9-1434_daily_bin1097.fits
.....................!
real 194.44
user 186.86
sys 4.80

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/375490/ft1_filtered_4FGL_J0937.9-1434_daily_bin1097.fits scfile=/scratch/kocevski/375490/ft2_4FGL_J0937.9-1434_daily_bin1097.fits outfile=/scratch/kocevski/375490/cmap_523670401_523929601_4FGL_J0937.9-1434_daily_bin1097.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.38
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/375490/ft1_filtered_4FGL_J0937.9-1434_daily_bin1097.fits scfile=/scratch/kocevski/375490/ft2_4FGL_J0937.9-1434_daily_bin1097.fits outfile=/scratch/kocevski/375490/cmap_HighResolution_523670401_523929601_4FGL_J0937.9-1434_daily_bin1097.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.38
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/375490/ft1_filtered_4FGL_J0937.9-1434_daily_bin1097.fits evtable="EVENTS" scfile=/scratch/kocevski/375490/ft2_4FGL_J0937.9-1434_daily_bin1097.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/375490/Model_4FGL_J0937.9-1434_daily_bin1097.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/375490/ft1_filtered_4FGL_J0937.9-1434_daily_bin1097.fits.....................!
real 80.43
user 78.61
sys 1.45

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .26846       1.0000         .10000E-03   10000.    
     2 'norm      '    .10075E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    2.5509       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    3.4857       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10080E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    19.408       1.0000         .10000E-03   10000.    
     8 'Prefactor '    33.905       1.0000         .10000E-03   10000.    
     9 'Prefactor '    30.895       1.0000         .10000E-03   10000.    
    10 'Prefactor '    14.884       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    .10094E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    4.0514       1.0000         .10000E-03   10000.    
    14 'norm      '    2.3209       1.0000         .10000E-03   10000.    
    15 'norm      '    .10007E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    3.2347       1.0000         .10000E-03   10000.    
    18 'Normalizat'    .75259       1.0000         .10000E-01   10.000    
    19 'Prefactor '    1.1402       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=   8283.091     FROM MIGRAD    STATUS=CONVERGED    385 CALLS     1948 TOTAL
                     EDM=   .23E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .28676        4.1833        .35039E-06   -.22699E-03
   2  norm          .10000E-03    1.3771       -.56371E-07** at limit **
   3  Prefactor     2.5508        1.3719        .17168E-06   -.22147E-02
   4  Prefactor     .10000E-03    9.3712        .74089E-06** at limit **
   5  Prefactor     3.4856        4.2603       -.63832E-07   -.28014E-04
   6  Prefactor     .10000E-03    6.6190       -.86227E-06** at limit **
   7  Prefactor     19.409        24.808        .16835E-05    .12522E-04
   8  Prefactor     33.901        34.122       -.46147E-05   -.14059E-04
   9  Prefactor     30.895        29.209       -.56503E-06   -.36097E-04
  10  Prefactor     14.883        17.397       -.62390E-08   -.76669E-04
  11  Prefactor     .10000E-03    3.9255       -.44167E-05** at limit **
  12  norm          .10000E-03    4.0383        .45288E-05** at limit **
  13  norm          4.0514        3.1348        .73560E-06    .14781E-04
  14  norm          2.3210        4.1518        .24700E-09   -.49496E-04
  15  norm          .10000E-03    1.0840       -.39980E-08** at limit **
  16  norm          .10000E-03    2.8930        .20188E-06** at limit **
  17  norm          3.2347        1.3078       -.72301E-08   -.28615E-04
  18  Normalizat    .75259        .17576        .26062E-06   -.89818E-04
  19  Prefactor     1.1401        .10752       -.13758E-06   -.95856E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.286764
  norm       = 0.0001
  Prefactor  = 2.55081
  Prefactor  = 0.0001
  Prefactor  = 3.48562
  Prefactor  = 0.0001
  Prefactor  = 19.4095
  Prefactor  = 33.9009
  Prefactor  = 30.8946
  Prefactor  = 14.8833
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 4.05141
  norm       = 2.32101
  norm       = 0.0001
  norm       = 0.0001
  norm       = 3.23472
  Normalizat = 0.75259
  Prefactor  = 1.14014
 **********
 **   18 **HESSE 
 **********

 FCN=   8283.091     FROM HESSE     STATUS=OK           272 CALLS     2220 TOTAL
                     EDM=   .41E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .28676        42.452        .35381E-02   -1.5601    
   2  norm          .10000E-03    2.4129        .20367E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     2.5508        4.3581        .11859E-02   -1.5389    
   4  Prefactor     .10000E-03    9.4766        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     3.4856        4.2524        .20176E-03   -1.5335    
   6  Prefactor     .10000E-03    6.6238        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     19.409        24.833        .90914E-04   -1.4827    
   8  Prefactor     33.901        34.194        .68820E-04   -1.4543    
   9  Prefactor     30.895        29.327        .72085E-04   -1.4596    
  10  Prefactor     14.883        17.394        .10382E-03   -1.4936    
  11  Prefactor     .10000E-03    3.9455        .17638E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          .10000E-03    4.0697        .17750E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          4.0514        3.1349        .13698E-03   -1.5305    
  14  norm          2.3210        4.1311        .24213E-03   -1.5403    
  15  norm          .10000E-03    1.1349        .18490E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10000E-03    2.9038        .15116E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          3.2347        1.3069        .63522E-04   -1.5348    
  18  Normalizat    .75259        .19971        .33053E-03   -1.0185    
  19  Prefactor     1.1401        .12406        .17356E-03   -.88194    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.09911e-09
Minuit parameter uncertainties:
  1  6.98203
  2  5.1043e-06
  3  4.35864
  4  4.14724e-06
  5  4.25275
  6  1.82525e-05
  7  24.8464
  8  34.2141
  9  29.3411
  10  17.3998
  11  1.06103e-05
  12  8.67364e-06
  13  3.13499
  14  4.13159
  15  2.30407e-06
  16  7.96818e-07
  17  1.30687
  18  0.199901
  19  0.124092
Done.

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

Extracting fit parameters...

4FGL J0937.9-1434
   Spectrum: PowerLaw
257    Prefactor:  1.488e+01  1.740e+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:  1.140e+00  1.241e-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:  7.526e-01  1.999e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.76
Ra Dec: 144.475 -14.571
Photon Index (Fixed Index): 1.98 +/- 0.00
Photon Flux (Fixed Index): 1.33e-08 +/- 1.55e-08
Energy Flux (Fixed Index): 9.66e-06 +/- 1.13e-05

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

Saving results to:
/scratch/kocevski/375490/likelihoodResults_523670401_523929601_4FGL_J0937.9-1434_daily_bin1097.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) = 8283.08237566
delta logL = 0.00880721187423

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 8283.07508484
delta logL = 0.0160980358014

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    12.301       1.0000         .10000E-03   10000.    
     2 'Index     '    2.1545       1.0000          .0000       10.000    
     3 'Normalizat'    .74837       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1413       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=   8283.075     FROM MIGRAD    STATUS=CONVERGED     92 CALLS      265 TOTAL
                     EDM=   .24E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     12.298        24.313        .11421E-03   -.47779E-05
   2  Index         2.1546        1.1429        .10868E-01    .48376E-04
   3  Normalizat    .74837        .19362        .33141E-03   -.74784E-04
   4  Prefactor     1.1413        .12203        .17348E-03   -.27823E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 12.2979
  Index      = 2.15459
  Normalizat = 0.748368
  Prefactor  = 1.14127
 **********
 **   18 **HESSE 
 **********

 FCN=   8283.075     FROM HESSE     STATUS=OK            25 CALLS      290 TOTAL
                     EDM=   .83E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     12.298        20.804        .45685E-05   -1.5006    
   2  Index         2.1546        .98060        .43471E-03   -.60539    
   3  Normalizat    .74837        .19281        .13256E-04   -1.0201    
   4  Prefactor     1.1413        .12195        .34696E-04   -.88158    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.3296e-11
Minuit parameter uncertainties:
  1  20.8166
  2  0.99014
  3  0.192987
  4  0.121978
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/375490': 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) = 8283.07508483
delta logL = 0.0160980494875

Extracting fit parameters...

4FGL J0937.9-1434
   Spectrum: PowerLaw
257    Prefactor:  1.230e+01  2.082e+01  1.000e-04  1.000e+04 ( 1.000e-14)
258        Index:  2.155e+00  9.901e-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.141e+00  1.220e-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:  7.484e-01  1.930e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.80
Ra Dec: 144.475 -14.571
Photon Index (Free Index): 2.15 +/- 0.99
Photon Flux (Free Index): 1.70e-08 +/- 2.90e-08
Energy Flux (Free Index): 8.31e-06 +/- 1.10e-05

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/375490/cmap_HighResolution_523670401_523929601_4FGL_J0937.9-1434_daily_bin1097.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.55e-03', comment='SUCCESS', photon_flux='1.33e-08', energy_flux2='8.31e-06', photon_flux_error='1.55e-08', dlogl='1.61e-02', energy_flux='9.66e-06', photon_flux2='1.70e-08', job_status='DONE', time_completed='2021-08-31 19:44:25.807799', photon_index_error2='0.99', photon_index2='2.15', ts='1.76', fit_tolerance='1e-08', GAL='1.14', photon_index_error='0.00', photon_flux_upper_limit='6.08e-08', energy_flux_error2='1.10e-05', EG='0.75', time_epoch_completed='1630464265.81', return_code='0', job_id='375490', GAL2='1.14', EG2='0.75', return_code2='0', energy_flux_error='1.13e-05', photon_flux_error2='2.90e-08', ts2='1.80', photon_index='1.98' WHERE bin_id='1097' AND source_name='4FGL J0937.9-1434' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Aug 31 19:44:25 PDT 2021


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

Job <4FGL_J0937.9-1434_daily_bin1097> was submitted from host <rhel6-64m> by user <kocevski> in cluster <slac> at Tue Aug 31 19:31:22 2021
Job was executed on host(s) <bullet0008>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Aug 31 19:31:23 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:23 2021
Terminated at Tue Aug 31 19:44:26 2021
Results reported at Tue Aug 31 19:44:26 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0937.9-1434_daily_bin1097 144.475 -14.5706 523670401 523929601 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 :                                   660.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             328.76 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   783 sec.
    Turnaround time :                            784 sec.

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

