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


Performing analysis on: 4FGL_J0937.9-1434_daily_bin1041
RA = 144.475, Dec = -14.5706
tmin = 509155201, tmax = 509414401
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='375400', job_status='RUN', time_executed='2021-08-31 19:32:51.644345', time_epoch_executed='1630463571.64' WHERE source_name='4FGL J0937.9-1434' and cadence='daily' and bin_id='1041'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/375400

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/375400/ft1_4FGL_J0937.9-1434_daily_bin1041.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/375400/ft2_4FGL_J0937.9-1434_daily_bin1041.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/375400/ft1_4FGL_J0937.9-1434_daily_bin1041.fits outfile=/scratch/kocevski/375400/ft1_filteredMKT_4FGL_J0937.9-1434_daily_bin1041.fits ra=144.475 dec=-14.5706 rad=12.0 tmin=509155201.0 tmax=509414401.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.82
user 3.46
sys 0.21

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/375400/ft1_filtered_4FGL_J0937.9-1434_daily_bin1041.fits" evtable="EVENTS" scfile=/scratch/kocevski/375400/ft2_4FGL_J0937.9-1434_daily_bin1041.fits sctable="SC_DATA" outfile=/scratch/kocevski/375400/ltcube_509155201_509414401_4FGL_J0937.9-1434_daily_bin1041.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/375400/ft2_4FGL_J0937.9-1434_daily_bin1041.fits
.....................!
real 11.84
user 11.43
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/375400/ft1_filtered_4FGL_J0937.9-1434_daily_bin1041.fits evtable="EVENTS" scfile=/scratch/kocevski/375400/ft2_4FGL_J0937.9-1434_daily_bin1041.fits sctable="SC_DATA" expcube=/scratch/kocevski/375400/ltcube_509155201_509414401_4FGL_J0937.9-1434_daily_bin1041.fits outfile=/scratch/kocevski/375400/expmap_509155201_509414401_4FGL_J0937.9-1434_daily_bin1041.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/375400/ltcube_509155201_509414401_4FGL_J0937.9-1434_daily_bin1041.fits
.....................!
real 195.07
user 185.32
sys 4.40

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/375400/ft1_filtered_4FGL_J0937.9-1434_daily_bin1041.fits scfile=/scratch/kocevski/375400/ft2_4FGL_J0937.9-1434_daily_bin1041.fits outfile=/scratch/kocevski/375400/cmap_509155201_509414401_4FGL_J0937.9-1434_daily_bin1041.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.62
user 0.36
sys 0.16

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

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/375400/ft1_filtered_4FGL_J0937.9-1434_daily_bin1041.fits evtable="EVENTS" scfile=/scratch/kocevski/375400/ft2_4FGL_J0937.9-1434_daily_bin1041.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/375400/Model_4FGL_J0937.9-1434_daily_bin1041.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/375400/ft1_filtered_4FGL_J0937.9-1434_daily_bin1041.fits.....................!
real 81.06
user 79.73
sys 1.12

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    14.945       1.0000         .10000E-03   10000.    
     2 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    6.1488       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10781E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .20366E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    28.925       1.0000         .10000E-03   10000.    
     7 'Prefactor '    4.6982       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .58744E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .21414E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10285E-02   1.0000         .10000E-03   10000.    
    11 'Prefactor '    14.273       1.0000         .10000E-03   10000.    
    12 'norm      '    10.131       1.0000         .10000E-03   10000.    
    13 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    .10649E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    1.6279       1.0000         .10000E-03   10000.    
    16 'norm      '    8.4486       1.0000         .10000E-03   10000.    
    17 'norm      '    1.1736       1.0000         .10000E-03   10000.    
    18 'Normalizat'    .95437       1.0000         .10000E-01   10.000    
    19 'Prefactor '    .95054       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=   8206.791     FROM MIGRAD    STATUS=CONVERGED    389 CALLS     1954 TOTAL
                     EDM=   .40E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          14.957        9.4295        .10820E-06    .55838E-04
   2  norm          .10000E-03    1.7885        .16561E-06** at limit **
   3  Prefactor     6.1509        5.1217       -.34563E-05   -.33255E-03
   4  Prefactor     .10000E-03    6.4422        .51510E-06** at limit **
   5  Prefactor     .10005E-03    4.1718       -.14288E-05** at limit **
   6  Prefactor     29.076        21.192        .83008E-06    .22425E-04
   7  Prefactor     4.7173        34.881        .27914E-04   -.16116E-04
   8  Prefactor     .10000E-03    16.771        .49875E-05** at limit **
   9  Prefactor     .10000E-03    23.674        .47094E-05** at limit **
  10  Prefactor     .10000E-03    15.616        .30532E-05** at limit **
  11  Prefactor     14.299        12.762       -.43567E-05   -.62828E-04
  12  norm          10.112        6.6252       -.29946E-05   -.16222E-03
  13  norm          .10000E-03    1.5760        .86844E-07** at limit **
  14  norm          .10000E-03    5.8085       -.36526E-06** at limit **
  15  norm          1.6282        1.4507       -.29140E-07   -.21926E-03
  16  norm          8.4832        10.379        .38638E-06   -.67679E-04
  17  norm          1.1740        1.0986       -.30762E-06   -.11858E-02
  18  Normalizat    .95395        .17126        .88444E-07    .15063E-03
  19  Prefactor     .95064        .10192        .85120E-06    .75188E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 14.9573
  norm       = 0.0001
  Prefactor  = 6.15092
  Prefactor  = 0.0001
  Prefactor  = 0.000100054
  Prefactor  = 29.0758
  Prefactor  = 4.71728
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 14.2993
  norm       = 10.1123
  norm       = 0.0001
  norm       = 0.0001
  norm       = 1.62817
  norm       = 8.4832
  norm       = 1.17397
  Normalizat = 0.953947
  Prefactor  = 0.950636
 **********
 **   18 **HESSE 
 **********

 FCN=   8206.791     FROM HESSE     STATUS=OK           270 CALLS     2224 TOTAL
                     EDM=   .29E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          14.957        9.4154        .10360E-03   -1.4934    
   2  norm          .10000E-03    1.8225        .11811E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     6.1509        5.1707        .16190E-03   -1.5212    
   4  Prefactor     .10000E-03    6.4838        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10005E-03    20.508        .35199E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     29.076        21.290        .74494E-04   -1.4629    
   7  Prefactor     4.7173        34.161        .18565E-03   -1.5274    
   8  Prefactor     .10000E-03    16.779        .21075E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    23.786        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    15.702        .20744E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     14.299        12.779        .10602E-03   -1.4951    
  12  norm          10.112        6.6434        .12589E-03   -1.5072    
  13  norm          .10000E-03    1.5958        .11102E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .10000E-03    5.9339        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          1.6282        1.4436        .99796E-04   -1.5453    
  16  norm          8.4832        10.371        .13792E-03   -1.5125    
  17  norm          1.1740        1.0818        .87440E-04   -1.5491    
  18  Normalizat    .95395        .19956        .29043E-03   -.94590    
  19  Prefactor     .95064        .12008        .18085E-03   -.94394    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.94621e-09
Minuit parameter uncertainties:
  1  9.41636
  2  1.07186e-06
  3  5.17104
  4  1.64902e-07
  5  0.00210704
  6  21.2955
  7  25.409
  8  2.30269e-05
  9  1.24732e-05
  10  0.000160772
  11  12.7818
  12  6.64386
  13  8.19576e-07
  14  7.30485e-06
  15  1.44359
  16  10.3731
  17  1.08179
  18  0.199716
  19  0.12011
Done.

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

Extracting fit parameters...

4FGL J0937.9-1434
   Spectrum: PowerLaw
257    Prefactor:  1.000e-04  1.608e-04  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:  9.506e-01  1.201e-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.539e-01  1.997e-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.78e-08 ph cm-2 s-1
Energy Flux Upper Limit: 3.58e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/375400/likelihoodResults_509155201_509414401_4FGL_J0937.9-1434_daily_bin1041.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) = 8206.79098384
delta logL = -0.000303491289742

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 8206.79068035
delta logL = -2.63025867753e-09

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    1.9868       1.0000          .0000       10.000    
     3 'Normalizat'    .95393       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .95065       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=   8206.791     FROM MIGRAD    STATUS=CONVERGED     53 CALLS      211 TOTAL
                     EDM=   .26E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    220.37        .90712E-02** at limit **
   2  Index         1.9940        8.8923        .50000       -.37806E-05
   3  Normalizat    .95395        .16386E-01    .65661E-01   -.58891E-04
   4  Prefactor     .95064        .10244E-01    .45647E-01   -.14025E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100001
  Index      = 1.99398
  Normalizat = 0.953946
  Prefactor  = 0.950636
 **********
 **   18 **HESSE 
 **********

 FCN=   8206.791     FROM HESSE     STATUS=NOT POSDEF    31 CALLS      242 TOTAL
                     EDM=   .30E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    1274.2        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         1.9940        7.5666        .50000       -.64501    
   3  Normalizat    .95395        .43963E-01    .29043E-03   -.94590    
   4  Prefactor     .95064        .27514E-01    .18085E-03   -.94394    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 3.00854e-09
Minuit parameter uncertainties:
  1  0.00282672
  2  36.8351
  3  0.0439649
  4  0.0275148
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/375400': 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) = 8206.79068034
delta logL = 1.3031240087e-08

Extracting fit parameters...

4FGL J0937.9-1434
   Spectrum: PowerLaw
257    Prefactor:  1.000e-04  2.827e-03  1.000e-04  1.000e+04 ( 1.000e-14)
258        Index:  1.994e+00  3.684e+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:  9.506e-01  2.751e-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:  9.539e-01  4.396e-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/375400/cmap_HighResolution_509155201_509414401_4FGL_J0937.9-1434_daily_bin1041.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.58e-03', job_status='DONE', photon_flux_upper_limit='4.78e-08', time_completed='2021-08-31 19:44:16.592882', job_id='375400', GAL2='0.95', fit_tolerance='1e-08', EG2='0.95', EG='0.95', time_epoch_completed='1630464256.59', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.95', dlogl='1.30e-08', ts2='-0.00', photon_index_error='0.00', photon_index='1.98' WHERE bin_id='1041' AND source_name='4FGL J0937.9-1434' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Aug 31 19:44:16 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0196>
Subject: Job 375400: <4FGL_J0937.9-1434_daily_bin1041> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0937.9-1434_daily_bin1041 144.475 -14.5706 509155201 509414401 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 :                                   653.32 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             314.39 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   781 sec.
    Turnaround time :                            783 sec.

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

