/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 184 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 = 7411
number of fields = 27
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J0937.9-1434_daily_bin415
RA = 144.475, Dec = -14.5706
tmin = 346896001, tmax = 347155201
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='372228', job_status='RUN', time_executed='2021-08-31 19:23:52.247723', time_epoch_executed='1630463032.25' WHERE source_name='4FGL J0937.9-1434' and cadence='daily' and bin_id='415'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/372228

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/372228/ft1_4FGL_J0937.9-1434_daily_bin415.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/372228/ft2_4FGL_J0937.9-1434_daily_bin415.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/372228/ft1_4FGL_J0937.9-1434_daily_bin415.fits outfile=/scratch/kocevski/372228/ft1_filteredMKT_4FGL_J0937.9-1434_daily_bin415.fits ra=144.475 dec=-14.5706 rad=12.0 tmin=346896001.0 tmax=347155201.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.52
user 3.22
sys 0.21

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/372228/ft1_filtered_4FGL_J0937.9-1434_daily_bin415.fits" evtable="EVENTS" scfile=/scratch/kocevski/372228/ft2_4FGL_J0937.9-1434_daily_bin415.fits sctable="SC_DATA" outfile=/scratch/kocevski/372228/ltcube_346896001_347155201_4FGL_J0937.9-1434_daily_bin415.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/372228/ft2_4FGL_J0937.9-1434_daily_bin415.fits
.....................!
real 12.02
user 11.67
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/372228/ft1_filtered_4FGL_J0937.9-1434_daily_bin415.fits evtable="EVENTS" scfile=/scratch/kocevski/372228/ft2_4FGL_J0937.9-1434_daily_bin415.fits sctable="SC_DATA" expcube=/scratch/kocevski/372228/ltcube_346896001_347155201_4FGL_J0937.9-1434_daily_bin415.fits outfile=/scratch/kocevski/372228/expmap_346896001_347155201_4FGL_J0937.9-1434_daily_bin415.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/372228/ltcube_346896001_347155201_4FGL_J0937.9-1434_daily_bin415.fits
.....................!
real 190.19
user 185.73
sys 4.11

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/372228/ft1_filtered_4FGL_J0937.9-1434_daily_bin415.fits scfile=/scratch/kocevski/372228/ft2_4FGL_J0937.9-1434_daily_bin415.fits outfile=/scratch/kocevski/372228/cmap_346896001_347155201_4FGL_J0937.9-1434_daily_bin415.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.52
user 0.37
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/372228/ft1_filtered_4FGL_J0937.9-1434_daily_bin415.fits scfile=/scratch/kocevski/372228/ft2_4FGL_J0937.9-1434_daily_bin415.fits outfile=/scratch/kocevski/372228/cmap_HighResolution_346896001_347155201_4FGL_J0937.9-1434_daily_bin415.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.53
user 0.39
sys 0.13

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/372228/ft1_filtered_4FGL_J0937.9-1434_daily_bin415.fits evtable="EVENTS" scfile=/scratch/kocevski/372228/ft2_4FGL_J0937.9-1434_daily_bin415.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/372228/Model_4FGL_J0937.9-1434_daily_bin415.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/372228/ft1_filtered_4FGL_J0937.9-1434_daily_bin415.fits.....................!
real 60.15
user 58.86
sys 1.13

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .14741E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    2.3808       1.0000         .10000E-03   10000.    
     3 'Prefactor '    16.729       1.0000         .10000E-03   10000.    
     4 'Prefactor '    10.202       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10096E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    5.7936       1.0000         .10000E-03   10000.    
     7 'Prefactor '    9.4079       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .18862E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .56969E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    18.177       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .19633E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    .22273E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    1.2770       1.0000         .10000E-03   10000.    
    15 'norm      '    2.7792       1.0000         .10000E-03   10000.    
    16 'norm      '    .33707E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    4.0825       1.0000         .10000E-03   10000.    
    18 'Normalizat'    .89437       1.0000         .10000E-01   10.000    
    19 'Prefactor '    .94460       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=   5472.529     FROM MIGRAD    STATUS=CONVERGED    407 CALLS     1905 TOTAL
                     EDM=   .15E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    5.3373        .66679E-06** at limit **
   2  norm          2.3853        3.7301        .78780E-06    .71316E-03
   3  Prefactor     16.730        9.2311        .13832E-06   -.38357E-03
   4  Prefactor     10.082        18.651       -.88601E-06   -.21671E-03
   5  Prefactor     .10000E-03    4.6726        .63341E-06** at limit **
   6  Prefactor     5.8432        18.919        .77526E-06   -.38090E-04
   7  Prefactor     9.3704        44.861        .22933E-06   -.11647E-03
   8  Prefactor     .10000E-03    39.618       -.34846E-06** at limit **
   9  Prefactor     .10001E-03    50.210        .24683E-05** at limit **
  10  Prefactor     17.921        31.641       -.11614E-06   -.11380E-03
  11  Prefactor     .10003E-03    60.203       -.43306E-05** at limit **
  12  norm          .10000E-03    6.4248        .12488E-07** at limit **
  13  norm          .10000E-03    1.1621        .12519E-06** at limit **
  14  norm          1.2833        12.178        .98299E-05   -.36383E-03
  15  norm          2.7786        1.8661        .22060E-07   -.21752E-03
  16  norm          .10000E-03    8.7811        .38743E-06** at limit **
  17  norm          4.0816        1.9621        .30702E-08   -.74514E-03
  18  Normalizat    .89478        .20983       -.22766E-05   -.73582E-03
  19  Prefactor     .94467        .12358        .81314E-07   -.82276E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.000100001
  norm       = 2.38525
  Prefactor  = 16.7302
  Prefactor  = 10.0817
  Prefactor  = 0.000100001
  Prefactor  = 5.8432
  Prefactor  = 9.37037
  Prefactor  = 0.0001
  Prefactor  = 0.000100014
  Prefactor  = 17.9212
  Prefactor  = 0.000100034
  norm       = 0.0001
  norm       = 0.0001
  norm       = 1.28335
  norm       = 2.77865
  norm       = 0.0001
  norm       = 4.08164
  Normalizat = 0.894784
  Prefactor  = 0.944671
 **********
 **   18 **HESSE 
 **********

 FCN=   5472.529     FROM HESSE     STATUS=OK           266 CALLS     2171 TOTAL
                     EDM=   .33E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    5.3762        .16737E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          2.3853        3.7322        .16447E-03   -1.5399    
   3  Prefactor     16.730        9.2513        .97922E-04   -1.4890    
   4  Prefactor     10.082        18.651        .12545E-03   -1.5073    
   5  Prefactor     .10000E-03    4.7611        .15665E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     5.8432        19.062        .16686E-03   -1.5224    
   7  Prefactor     9.3704        45.056        .13066E-03   -1.5096    
   8  Prefactor     .10000E-03    39.729        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10001E-03    51.467        .21091E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     17.921        31.578        .93942E-04   -1.4861    
  11  Prefactor     .10003E-03    63.494        .36285E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          .10000E-03    6.4992        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .10000E-03    1.1670        .77919E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          1.2833        12.606        .19656E-02   -1.5481    
  15  norm          2.7786        1.8637        .80351E-04   -1.5375    
  16  norm          .10000E-03    8.8895        .21340E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          4.0816        1.9627        .68205E-04   -1.5304    
  18  Normalizat    .89478        .24965        .30327E-03   -.96644    
  19  Prefactor     .94467        .14636        .18067E-03   -.94597    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.34652e-09
Minuit parameter uncertainties:
  1  0.00012388
  2  3.73255
  3  9.2521
  4  18.6617
  5  0.000111104
  6  19.082
  7  41.1446
  8  0.000212561
  9  0.0017062
  10  31.6072
  11  0.00294278
  12  1.33304e-05
  13  1.12126e-05
  14  8.04627
  15  1.86374
  16  3.41879e-05
  17  1.96273
  18  0.249972
  19  0.146426
Done.

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

Extracting fit parameters...

4FGL J0937.9-1434
   Spectrum: PowerLaw
257    Prefactor:  1.792e+01  3.161e+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:  9.447e-01  1.464e-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:  8.948e-01  2.500e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/372228/likelihoodResults_346896001_347155201_4FGL_J0937.9-1434_daily_bin415.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) = 5471.91126871
delta logL = 0.617591824288

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5471.90337377
delta logL = 0.625486762089

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    2.7928       1.0000         .10000E-03   10000.    
     2 'Index     '    3.1684       1.0000          .0000       10.000    
     3 'Normalizat'    .83713       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .96266       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=   5471.903     FROM MIGRAD    STATUS=CONVERGED     58 CALLS      310 TOTAL
                     EDM=   .34E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     2.7840        58.761        .60865E-02    .25506E-03
   2  Index         3.1696        2.6024        .80121E-01    .16402E-03
   3  Normalizat    .83708        .72426E-01    .70641E-01   -.13202E-04
   4  Prefactor     .96273        .41189E-01    .45799E-01   -.48596E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 2.78402
  Index      = 3.16961
  Normalizat = 0.837077
  Prefactor  = 0.962729
 **********
 **   18 **HESSE 
 **********

 FCN=   5471.903     FROM HESSE     STATUS=NOT POSDEF    31 CALLS      341 TOTAL
                     EDM=   .57E-06    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     2.7840        105.95        .10497E-03   -1.5374    
   2  Index         3.1696        3.8436        .40492E-02   -.37479    
   3  Normalizat    .83708        .24491        .31258E-03   -.98708    
   4  Prefactor     .96273        .14146        .17907E-03   -.93982    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 5.68315e-07
Minuit parameter uncertainties:
  1  34.4141
  2  4.52305
  3  0.245232
  4  0.141519
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/372228': 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) = 5471.90337313
delta logL = 0.625487402606

Extracting fit parameters...

4FGL J0937.9-1434
   Spectrum: PowerLaw
257    Prefactor:  2.784e+00  3.441e+01  1.000e-04  1.000e+04 ( 1.000e-14)
258        Index:  3.170e+00  4.523e+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:  9.627e-01  1.415e-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:  8.371e-01  2.452e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.74
Ra Dec: 144.475 -14.571
Photon Index (Free Index): 3.17 +/- 4.52
Photon Flux (Free Index): 6.60e-08 +/- 9.12e-08
Energy Flux (Free Index): 1.22e-05 +/- 1.39e-05

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/372228/cmap_HighResolution_346896001_347155201_4FGL_J0937.9-1434_daily_bin415.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.79e-03', comment='SUCCESS', energy_flux2='1.22e-05', dlogl='6.25e-01', photon_flux2='6.60e-08', job_status='DONE', time_completed='2021-08-31 19:32:46.709049', photon_index_error2='4.52', photon_index2='3.17', ts='0.44', fit_tolerance='1e-08', GAL='0.94', photon_index_error='0.00', photon_flux_upper_limit='9.07e-08', energy_flux_error2='1.39e-05', EG='0.89', time_epoch_completed='1630463566.71', return_code='0', job_id='372228', GAL2='0.96', EG2='0.84', return_code2='102', photon_flux_error2='9.12e-08', ts2='1.74', photon_index='1.98' WHERE bin_id='415' AND source_name='4FGL J0937.9-1434' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Aug 31 19:32:46 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0089>
Subject: Job 372228: <4FGL_J0937.9-1434_daily_bin415> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0937.9-1434_daily_bin415 144.475 -14.5706 346896001 347155201 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 :                                   533.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             267.96 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   727 sec.
    Turnaround time :                            731 sec.

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

