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


Performing analysis on: 4FGL_J0937.9-1434_daily_bin1518
RA = 144.475, Dec = -14.5706
tmin = 632793601, tmax = 633052801
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='378401', job_status='RUN', time_executed='2021-08-31 19:42:19.912950', time_epoch_executed='1630464139.91' WHERE source_name='4FGL J0937.9-1434' and cadence='daily' and bin_id='1518'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/378401

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/378401/ft1_4FGL_J0937.9-1434_daily_bin1518.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/378401/ft2_4FGL_J0937.9-1434_daily_bin1518.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/378401/ft1_4FGL_J0937.9-1434_daily_bin1518.fits outfile=/scratch/kocevski/378401/ft1_filteredMKT_4FGL_J0937.9-1434_daily_bin1518.fits ra=144.475 dec=-14.5706 rad=12.0 tmin=632793601.0 tmax=633052801.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.68
user 3.39
sys 0.21

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/378401/ft1_filtered_4FGL_J0937.9-1434_daily_bin1518.fits" evtable="EVENTS" scfile=/scratch/kocevski/378401/ft2_4FGL_J0937.9-1434_daily_bin1518.fits sctable="SC_DATA" outfile=/scratch/kocevski/378401/ltcube_632793601_633052801_4FGL_J0937.9-1434_daily_bin1518.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/378401/ft2_4FGL_J0937.9-1434_daily_bin1518.fits
.....................!
real 12.24
user 11.86
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/378401/ft1_filtered_4FGL_J0937.9-1434_daily_bin1518.fits evtable="EVENTS" scfile=/scratch/kocevski/378401/ft2_4FGL_J0937.9-1434_daily_bin1518.fits sctable="SC_DATA" expcube=/scratch/kocevski/378401/ltcube_632793601_633052801_4FGL_J0937.9-1434_daily_bin1518.fits outfile=/scratch/kocevski/378401/expmap_632793601_633052801_4FGL_J0937.9-1434_daily_bin1518.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/378401/ltcube_632793601_633052801_4FGL_J0937.9-1434_daily_bin1518.fits
.....................!
real 190.95
user 185.59
sys 4.94

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/378401/ft1_filtered_4FGL_J0937.9-1434_daily_bin1518.fits scfile=/scratch/kocevski/378401/ft2_4FGL_J0937.9-1434_daily_bin1518.fits outfile=/scratch/kocevski/378401/cmap_632793601_633052801_4FGL_J0937.9-1434_daily_bin1518.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.56
user 0.36
sys 0.13

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/378401/ft1_filtered_4FGL_J0937.9-1434_daily_bin1518.fits scfile=/scratch/kocevski/378401/ft2_4FGL_J0937.9-1434_daily_bin1518.fits outfile=/scratch/kocevski/378401/cmap_HighResolution_632793601_633052801_4FGL_J0937.9-1434_daily_bin1518.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.14

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/378401/ft1_filtered_4FGL_J0937.9-1434_daily_bin1518.fits evtable="EVENTS" scfile=/scratch/kocevski/378401/ft2_4FGL_J0937.9-1434_daily_bin1518.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/378401/Model_4FGL_J0937.9-1434_daily_bin1518.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/378401/ft1_filtered_4FGL_J0937.9-1434_daily_bin1518.fits.....................!
real 81.37
user 79.59
sys 1.21

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    4.2561       1.0000         .10000E-03   10000.    
     2 'norm      '    .10011E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    32.345       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10599E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    10.912       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    10.540       1.0000         .10000E-03   10000.    
    12 'norm      '    .94664       1.0000         .10000E-03   10000.    
    13 'norm      '    .10006E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    6.1990       1.0000         .10000E-03   10000.    
    15 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    2.0082       1.0000         .10000E-03   10000.    
    17 'norm      '    1.6529       1.0000         .10000E-03   10000.    
    18 'Normalizat'    .53866       1.0000         .10000E-01   10.000    
    19 'Prefactor '    1.1508       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.
 MACHINE ACCURACY LIMITS FURTHER IMPROVEMENT.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   8368.665     FROM MIGRAD    STATUS=CONVERGED    398 CALLS     1688 TOTAL
                     EDM=   .17E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          4.2561        6.4905         .0000        .41436E-02
   2  norm          .10000E-03    1.3934         .0000    ** at limit **
   3  Prefactor     .10000E-03    3.9751         .0000    ** at limit **
   4  Prefactor     .10000E-03    3.4062         .0000    ** at limit **
   5  Prefactor     .10000E-03    1.7855         .0000    ** at limit **
   6  Prefactor     .10000E-03    6.1644         .0000    ** at limit **
   7  Prefactor     32.344        22.036         .0000        .68691E-03
   8  Prefactor     .10000E-03    54.777         .0000    ** at limit **
   9  Prefactor     10.912        16.046         .0000        .43471E-04
  10  Prefactor     .10000E-03    10.065         .0000    ** at limit **
  11  Prefactor     10.540        8.6379         .0000       -.57290E-03
  12  norm          .94662        2.6769         .0000        .12317E-02
  13  norm          .10000E-03    1.5340         .0000    ** at limit **
  14  norm          6.1991        6.2728         .0000        .82518E-04
  15  norm          .10000E-03    .53241         .0000    ** at limit **
  16  norm          2.0064        9.0334         .0000        .93637E-02
  17  norm          1.6529        .96182         .0000        .52337E-03
  18  Normalizat    .53871        .15908         .0000        .48879E-04
  19  Prefactor     1.1508        .10062         .0000        .74289E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 4.25608
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 32.3445
  Prefactor  = 0.0001
  Prefactor  = 10.9115
  Prefactor  = 0.0001
  Prefactor  = 10.5396
  norm       = 0.946615
  norm       = 0.0001
  norm       = 6.19911
  norm       = 0.0001
  norm       = 2.0064
  norm       = 1.65288
  Normalizat = 0.538708
  Prefactor  = 1.15082
 **********
 **   18 **HESSE 
 **********

 FCN=   8368.665     FROM HESSE     STATUS=OK           270 CALLS     1958 TOTAL
                     EDM=   .20E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          4.2561        6.4390        .97652E-03   -1.5295    
   2  norm          .10000E-03    2.6107        .20827E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    4.1208        .35590E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    3.4165        .16485E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    1.7908        .11937E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    6.1816        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     32.344        22.028        .70455E-04   -1.4570    
   8  Prefactor     .10000E-03    55.338        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     10.912        16.039        .12128E-03   -1.5047    
  10  Prefactor     .10000E-03    10.084        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     10.540        8.6288        .12341E-03   -1.5059    
  12  norm          .94662        2.6049        .24151E-03   -1.5513    
  13  norm          .10000E-03    1.5995        .22121E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          6.1991        6.2737        .16124E-03   -1.5210    
  15  norm          .10000E-03    .80821        .12990E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          2.0064        8.9604        .14608E-02   -1.5425    
  17  norm          1.6529        .95338        .65957E-04   -1.5451    
  18  Normalizat    .53871        .17556        .34830E-03   -1.1065    
  19  Prefactor     1.1508        .11259        .15952E-03   -.87858    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.02714e-09
Minuit parameter uncertainties:
  1  6.44001
  2  1.22611e-06
  3  4.236e-06
  4  9.53108e-07
  5  2.95017e-06
  6  4.49167e-06
  7  22.0339
  8  0.0002787
  9  16.0456
  10  5.12584e-05
  11  8.62977
  12  2.60525
  13  4.29928e-06
  14  6.27434
  15  6.77327e-07
  16  8.48204
  17  0.953387
  18  0.17574
  19  0.112616
Done.

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

Extracting fit parameters...

4FGL J0937.9-1434
   Spectrum: PowerLaw
257    Prefactor:  1.000e-04  5.126e-05  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.151e+00  1.126e-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:  5.387e-01  1.757e-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: 3.64e-08 ph cm-2 s-1
Energy Flux Upper Limit: 2.72e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/378401/likelihoodResults_632793601_633052801_4FGL_J0937.9-1434_daily_bin1518.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) = 8368.66533539
delta logL = -0.000472407420602

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 8368.66486284
delta logL = 1.45892045111e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    1.9513       1.0000          .0000       10.000    
     3 'Normalizat'    .53871       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1508       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=   8368.665     FROM MIGRAD    STATUS=CONVERGED     91 CALLS      245 TOTAL
                     EDM=   .25E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10079E-03    54.301        .18142E-02** at limit **
   2  Index         1.9068        9.0463        .50000        .18054E-04
   3  Normalizat    .53871        .87233E-02    .34830E-03   -.20146E-03
   4  Prefactor     1.1508        .57155E-02    .15952E-03   -.42110E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100786
  Index      = 1.90684
  Normalizat = 0.538708
  Prefactor  = 1.15082
 **********
 **   18 **HESSE 
 **********

 FCN=   8368.665     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      274 TOTAL
                     EDM=   .12E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10079E-03    252.96        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         1.9068        5.6228        .50000       -.66700    
   3  Normalizat    .53871        .19269E-01    .13932E-04   -1.1065    
   4  Prefactor     1.1508        .12624E-01    .31904E-04   -.87859    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.16308e-08
Minuit parameter uncertainties:
  1  0.0283166
  2  301.788
  3  0.0192689
  4  0.0126243
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/378401': 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) = 8368.66486265
delta logL = 3.34872311214e-07

Extracting fit parameters...

4FGL J0937.9-1434
   Spectrum: PowerLaw
257    Prefactor:  1.008e-04  2.832e-02  1.000e-04  1.000e+04 ( 1.000e-14)
258        Index:  1.907e+00  3.018e+02  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.151e+00  1.262e-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:  5.387e-01  1.927e-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/378401/cmap_HighResolution_632793601_633052801_4FGL_J0937.9-1434_daily_bin1518.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.72e-03', job_status='DONE', photon_flux_upper_limit='3.64e-08', time_completed='2021-08-31 19:53:46.655330', job_id='378401', GAL2='1.15', fit_tolerance='1e-08', EG2='0.54', EG='0.54', time_epoch_completed='1630464826.66', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.15', dlogl='3.35e-07', ts2='-0.00', photon_index_error='0.00', photon_index='1.98' WHERE bin_id='1518' AND source_name='4FGL J0937.9-1434' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Aug 31 19:53:46 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0009>
Subject: Job 378401: <4FGL_J0937.9-1434_daily_bin1518> in cluster <slac> Done

Job <4FGL_J0937.9-1434_daily_bin1518> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Tue Aug 31 19:40:33 2021
Job was executed on host(s) <bullet0009>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Aug 31 19:40:34 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:40:34 2021
Terminated at Tue Aug 31 19:53:47 2021
Results reported at Tue Aug 31 19:53:47 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0937.9-1434_daily_bin1518 144.475 -14.5706 632793601 633052801 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 :                                   635.30 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             262.35 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   792 sec.
    Turnaround time :                            794 sec.

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

