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


Performing analysis on: 4FGL_J0937.9-1434_daily_bin1000
RA = 144.475, Dec = -14.5706
tmin = 498528001, tmax = 498787201
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='375334', job_status='RUN', time_executed='2021-08-31 19:32:16.706981', time_epoch_executed='1630463536.71' WHERE source_name='4FGL J0937.9-1434' and cadence='daily' and bin_id='1000'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/375334

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/375334/ft1_4FGL_J0937.9-1434_daily_bin1000.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/375334/ft2_4FGL_J0937.9-1434_daily_bin1000.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/375334/ft1_4FGL_J0937.9-1434_daily_bin1000.fits outfile=/scratch/kocevski/375334/ft1_filteredMKT_4FGL_J0937.9-1434_daily_bin1000.fits ra=144.475 dec=-14.5706 rad=12.0 tmin=498528001.0 tmax=498787201.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.54
user 4.72
sys 0.25

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/375334/ft2_4FGL_J0937.9-1434_daily_bin1000.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/375334/ft1_filteredMKT_4FGL_J0937.9-1434_daily_bin1000.fits evtable="EVENTS" outfile="/scratch/kocevski/375334/ft1_filtered_4FGL_J0937.9-1434_daily_bin1000.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.30
user 0.34
sys 0.18

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/375334/ft1_filtered_4FGL_J0937.9-1434_daily_bin1000.fits" evtable="EVENTS" scfile=/scratch/kocevski/375334/ft2_4FGL_J0937.9-1434_daily_bin1000.fits sctable="SC_DATA" outfile=/scratch/kocevski/375334/ltcube_498528001_498787201_4FGL_J0937.9-1434_daily_bin1000.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/375334/ft2_4FGL_J0937.9-1434_daily_bin1000.fits
.....................!
real 12.74
user 11.65
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/375334/ft1_filtered_4FGL_J0937.9-1434_daily_bin1000.fits evtable="EVENTS" scfile=/scratch/kocevski/375334/ft2_4FGL_J0937.9-1434_daily_bin1000.fits sctable="SC_DATA" expcube=/scratch/kocevski/375334/ltcube_498528001_498787201_4FGL_J0937.9-1434_daily_bin1000.fits outfile=/scratch/kocevski/375334/expmap_498528001_498787201_4FGL_J0937.9-1434_daily_bin1000.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/375334/ltcube_498528001_498787201_4FGL_J0937.9-1434_daily_bin1000.fits
.....................!
real 193.69
user 185.21
sys 4.96

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/375334/ft1_filtered_4FGL_J0937.9-1434_daily_bin1000.fits scfile=/scratch/kocevski/375334/ft2_4FGL_J0937.9-1434_daily_bin1000.fits outfile=/scratch/kocevski/375334/cmap_498528001_498787201_4FGL_J0937.9-1434_daily_bin1000.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.55
user 0.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/375334/ft1_filtered_4FGL_J0937.9-1434_daily_bin1000.fits scfile=/scratch/kocevski/375334/ft2_4FGL_J0937.9-1434_daily_bin1000.fits outfile=/scratch/kocevski/375334/cmap_HighResolution_498528001_498787201_4FGL_J0937.9-1434_daily_bin1000.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.55
user 0.38
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/375334/ft1_filtered_4FGL_J0937.9-1434_daily_bin1000.fits evtable="EVENTS" scfile=/scratch/kocevski/375334/ft2_4FGL_J0937.9-1434_daily_bin1000.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/375334/Model_4FGL_J0937.9-1434_daily_bin1000.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/375334/ft1_filtered_4FGL_J0937.9-1434_daily_bin1000.fits.....................!
real 56.32
user 54.56
sys 1.18

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10005E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    5.7861       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10325E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10019E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    33.818       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .12340E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    29.428       1.0000         .10000E-03   10000.    
     9 'Prefactor '    118.65       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .11071E-02   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    18.010       1.0000         .10000E-03   10000.    
    13 'norm      '    .10007E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    39.930       1.0000         .10000E-03   10000.    
    15 'norm      '    4.5833       1.0000         .10000E-03   10000.    
    16 'norm      '    18.165       1.0000         .10000E-03   10000.    
    17 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    18 'Normalizat'    1.0318       1.0000         .10000E-01   10.000    
    19 'Prefactor '    1.0810       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=   4494.240     FROM MIGRAD    STATUS=CONVERGED    391 CALLS     1911 TOTAL
                     EDM=   .24E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    18.271       -.40350E-06** at limit **
   2  norm          .10000E-03    2.8973       -.11456E-06** at limit **
   3  Prefactor     5.7879        7.1140        .35812E-05   -.14908E-03
   4  Prefactor     .10000E-03    8.8220       -.12538E-06** at limit **
   5  Prefactor     .10000E-03    5.8261       -.54530E-07** at limit **
   6  Prefactor     33.820        30.899        .45274E-07   -.41793E-04
   7  Prefactor     .10000E-03    157.95        .20587E-06** at limit **
   8  Prefactor     29.443        42.416        .15632E-05    .37357E-04
   9  Prefactor     118.67        61.317        .18328E-05    .12427E-03
  10  Prefactor     .10005E-03    364.72       -.19027E-04** at limit **
  11  Prefactor     .10000E-03    11.194        .27245E-06** at limit **
  12  norm          17.997        18.096       -.12468E-06    .37218E-03
  13  norm          .10000E-03    3.2181        .12068E-06** at limit **
  14  norm          39.941        28.331        .17313E-06   -.42243E-05
  15  norm          4.5831        3.4100        .11223E-06   -.10554E-04
  16  norm          18.160        21.251        .12399E-05    .92456E-04
  17  norm          .10000E-03    2.0027        .73129E-07** at limit **
  18  Normalizat    1.0320        .29905       -.28537E-05    .29161E-04
  19  Prefactor     1.0810        .16697       -.37496E-06    .81837E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 5.78793
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 33.8197
  Prefactor  = 0.0001
  Prefactor  = 29.4433
  Prefactor  = 118.668
  Prefactor  = 0.000100052
  Prefactor  = 0.0001
  norm       = 17.9968
  norm       = 0.0001
  norm       = 39.9413
  norm       = 4.58314
  norm       = 18.1602
  norm       = 0.0001
  Normalizat = 1.03196
  Prefactor  = 1.08096
 **********
 **   18 **HESSE 
 **********

 FCN=   4494.240     FROM HESSE     STATUS=OK           266 CALLS     2177 TOTAL
                     EDM=   .51E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    18.617        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .10000E-03    3.0172        .22258E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     5.7879        7.2337        .83484E-03   -1.5227    
   4  Prefactor     .10000E-03    8.8814        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    5.8634        .15799E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     33.820        31.059        .68908E-04   -1.4544    
   7  Prefactor     .10000E-03    159.11        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     29.443        42.474        .73855E-04   -1.4622    
   9  Prefactor     118.67        61.547        .18471E-03   -1.3525    
  10  Prefactor     .10005E-03    396.02        .41388E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    11.205        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          17.997        18.424        .94376E-04   -1.4859    
  13  norm          .10000E-03    3.2448        .11740E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          39.941        28.339        .63433E-04   -1.4443    
  15  norm          4.5831        3.4054        .10311E-03   -1.5280    
  16  norm          18.160        21.259        .93974E-04   -1.4855    
  17  norm          .10000E-03    3.9468        .18389E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Normalizat    1.0320        .34585        .35386E-03   -.91967    
  19  Prefactor     1.0810        .19461        .20092E-03   -.90077    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.05354e-10
Minuit parameter uncertainties:
  1  4.94592e-05
  2  1.44487e-05
  3  7.23482
  4  1.33295e-05
  5  1.56611e-05
  6  31.074
  7  0.000392702
  8  42.5177
  9  61.5802
  10  0.00915894
  11  1.83577e-05
  12  18.4303
  13  2.68297e-06
  14  28.3489
  15  3.40555
  16  21.268
  17  6.46502e-05
  18  0.346602
  19  0.194733
Done.

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

Extracting fit parameters...

4FGL J0937.9-1434
   Spectrum: PowerLaw
257    Prefactor:  1.001e-04  9.159e-03  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.081e+00  1.947e-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.032e+00  3.466e-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: 1.21e-07 ph cm-2 s-1
Energy Flux Upper Limit: 9.05e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/375334/likelihoodResults_498528001_498787201_4FGL_J0937.9-1434_daily_bin1000.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) = 4494.24021826
delta logL = -1.18982306958e-05

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4493.87971644
delta logL = 0.360489915794

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    4.5520       1.0000         .10000E-03   10000.    
     2 'Index     '    3.0967       1.0000          .0000       10.000    
     3 'Normalizat'    .96581       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0938       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=   4493.880     FROM MIGRAD    STATUS=CONVERGED     59 CALLS      300 TOTAL
                     EDM=   .86E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     4.5394        182.43        .47171E-02    .34154E-03
   2  Index         3.0982        3.2817        .82303E-01    .15389E-03
   3  Normalizat    .96563        .98382E-01    .82200E-01    .57998E-05
   4  Prefactor     1.0937        .53146E-01    .37829E-01   -.15261E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 4.53937
  Index      = 3.09817
  Normalizat = 0.965634
  Prefactor  = 1.09375
 **********
 **   18 **HESSE 
 **********

 FCN=   4493.880     FROM HESSE     STATUS=OK            31 CALLS      331 TOTAL
                     EDM=   .18E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     4.5394        85.907        .16966E-03   -1.5282    
   2  Index         3.0982        2.9033        .49256E-02   -.39019    
   3  Normalizat    .96563        .34408        .36389E-03   -.94191    
   4  Prefactor     1.0937        .19541        .19958E-03   -.89667    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.77656e-07
Minuit parameter uncertainties:
  1  39.5604
  2  3.1388
  3  0.344874
  4  0.195542
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/375334': 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) = 4493.87971468
delta logL = 0.360491677277

Extracting fit parameters...

4FGL J0937.9-1434
   Spectrum: PowerLaw
257    Prefactor:  4.539e+00  3.956e+01  1.000e-04  1.000e+04 ( 1.000e-14)
258        Index:  3.098e+00  3.139e+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:  1.094e+00  1.955e-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:  9.656e-01  3.449e-01  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/375334/cmap_HighResolution_498528001_498787201_4FGL_J0937.9-1434_daily_bin1000.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='9.05e-03', job_status='DONE', photon_flux_upper_limit='1.21e-07', time_completed='2021-08-31 19:41:19.176888', job_id='375334', GAL2='1.09', fit_tolerance='1e-08', EG2='0.97', EG='1.03', time_epoch_completed='1630464079.18', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.08', dlogl='3.60e-01', ts2='0.75', photon_index_error='0.00', photon_index='1.98' WHERE bin_id='1000' AND source_name='4FGL J0937.9-1434' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Aug 31 19:41:19 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0160>
Subject: Job 375334: <4FGL_J0937.9-1434_daily_bin1000> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0937.9-1434_daily_bin1000 144.475 -14.5706 498528001 498787201 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 :                                   502.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             322.95 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   608 sec.
    Turnaround time :                            610 sec.

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

