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


Performing analysis on: 4FGL_J0937.9-1434_daily_bin1101
RA = 144.475, Dec = -14.5706
tmin = 524707201, tmax = 524966401
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='375497', job_status='RUN', time_executed='2021-08-31 19:33:12.959171', time_epoch_executed='1630463592.96' WHERE source_name='4FGL J0937.9-1434' and cadence='daily' and bin_id='1101'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/375497

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/375497/ft1_4FGL_J0937.9-1434_daily_bin1101.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/375497/ft2_4FGL_J0937.9-1434_daily_bin1101.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/375497/ft1_4FGL_J0937.9-1434_daily_bin1101.fits outfile=/scratch/kocevski/375497/ft1_filteredMKT_4FGL_J0937.9-1434_daily_bin1101.fits ra=144.475 dec=-14.5706 rad=12.0 tmin=524707201.0 tmax=524966401.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 4.35
user 3.20
sys 0.20

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/375497/ft2_4FGL_J0937.9-1434_daily_bin1101.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/375497/ft1_filteredMKT_4FGL_J0937.9-1434_daily_bin1101.fits evtable="EVENTS" outfile="/scratch/kocevski/375497/ft1_filtered_4FGL_J0937.9-1434_daily_bin1101.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.57
user 0.35
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/375497/ft1_filtered_4FGL_J0937.9-1434_daily_bin1101.fits" evtable="EVENTS" scfile=/scratch/kocevski/375497/ft2_4FGL_J0937.9-1434_daily_bin1101.fits sctable="SC_DATA" outfile=/scratch/kocevski/375497/ltcube_524707201_524966401_4FGL_J0937.9-1434_daily_bin1101.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/375497/ft2_4FGL_J0937.9-1434_daily_bin1101.fits
.....................!
real 12.59
user 11.59
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/375497/ft1_filtered_4FGL_J0937.9-1434_daily_bin1101.fits evtable="EVENTS" scfile=/scratch/kocevski/375497/ft2_4FGL_J0937.9-1434_daily_bin1101.fits sctable="SC_DATA" expcube=/scratch/kocevski/375497/ltcube_524707201_524966401_4FGL_J0937.9-1434_daily_bin1101.fits outfile=/scratch/kocevski/375497/expmap_524707201_524966401_4FGL_J0937.9-1434_daily_bin1101.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/375497/ltcube_524707201_524966401_4FGL_J0937.9-1434_daily_bin1101.fits
.....................!
real 193.41
user 186.24
sys 4.22

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/375497/ft1_filtered_4FGL_J0937.9-1434_daily_bin1101.fits scfile=/scratch/kocevski/375497/ft2_4FGL_J0937.9-1434_daily_bin1101.fits outfile=/scratch/kocevski/375497/cmap_524707201_524966401_4FGL_J0937.9-1434_daily_bin1101.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.38
sys 0.13

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/375497/ft1_filtered_4FGL_J0937.9-1434_daily_bin1101.fits scfile=/scratch/kocevski/375497/ft2_4FGL_J0937.9-1434_daily_bin1101.fits outfile=/scratch/kocevski/375497/cmap_HighResolution_524707201_524966401_4FGL_J0937.9-1434_daily_bin1101.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=500 nypix=500 binsz=0.1 coordsys="CEL" xref=144.475 yref=-14.5706 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

This is gtbin version HEAD
real 0.54
user 0.38
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    35.089       1.0000         .10000E-03   10000.    
     2 'norm      '    3.3829       1.0000         .10000E-03   10000.    
     3 'Prefactor '    5.5387       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10021E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    2.5779       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .29482E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10262E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    60.515       1.0000         .10000E-03   10000.    
     9 'Prefactor '    29.377       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    28.300       1.0000         .10000E-03   10000.    
    12 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .83304       1.0000         .10000E-03   10000.    
    14 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    2.4881       1.0000         .10000E-03   10000.    
    16 'norm      '    .10027E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    2.3277       1.0000         .10000E-03   10000.    
    18 'Normalizat'    1.3395       1.0000         .10000E-01   10.000    
    19 'Prefactor '    .72860       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=   5446.848     FROM MIGRAD    STATUS=CONVERGED    384 CALLS     1895 TOTAL
                     EDM=   .87E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          35.093        17.930        .23510E-06    .10418E-03
   2  norm          3.3834        3.4742       -.13777E-07   -.26971E-04
   3  Prefactor     5.5362        6.4522        .31240E-05   -.93867E-03
   4  Prefactor     .10000E-03    5.6116        .20287E-07** at limit **
   5  Prefactor     2.5854        11.986        .53110E-06   -.70779E-04
   6  Prefactor     .10000E-03    25.226       -.95124E-07** at limit **
   7  Prefactor     .10000E-03    39.438        .30858E-06** at limit **
   8  Prefactor     60.493        51.916       -.45145E-05   -.38981E-03
   9  Prefactor     29.390        29.907        .31431E-05    .35689E-03
  10  Prefactor     .10000E-03    9.7759        .60900E-07** at limit **
  11  Prefactor     28.307        19.410        .80084E-06    .21132E-03
  12  norm          .10000E-03    3.1289        .75477E-07** at limit **
  13  norm          .83650        2.4431        .63366E-06   -.40553E-04
  14  norm          .10000E-03    16.133       -.69235E-07** at limit **
  15  norm          2.4880        1.9070        .11282E-07   -.45689E-04
  16  norm          .10000E-03    5.9354        .40401E-07** at limit **
  17  norm          2.3280        1.8223        .82033E-07   -.54914E-04
  18  Normalizat    1.3384        .23011        .20768E-06   -.74423E-04
  19  Prefactor     .72915        .12730       -.10831E-05    .25554E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 35.0935
  norm       = 3.38336
  Prefactor  = 5.53619
  Prefactor  = 0.0001
  Prefactor  = 2.58545
  Prefactor  = 0.000100002
  Prefactor  = 0.0001
  Prefactor  = 60.4931
  Prefactor  = 29.3905
  Prefactor  = 0.0001
  Prefactor  = 28.3067
  norm       = 0.0001
  norm       = 0.836504
  norm       = 0.0001
  norm       = 2.48803
  norm       = 0.0001
  norm       = 2.32804
  Normalizat = 1.33842
  Prefactor  = 0.729154
 **********
 **   18 **HESSE 
 **********

 FCN=   5446.848     FROM HESSE     STATUS=OK           264 CALLS     2159 TOTAL
                     EDM=   .11E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          35.093        17.918        .67652E-04   -1.4522    
   2  norm          3.3834        3.4650        .13121E-03   -1.5340    
   3  Prefactor     5.5362        6.7844        .85357E-03   -1.5237    
   4  Prefactor     .10000E-03    5.6180        .17072E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     2.5854        12.082        .25419E-03   -1.5386    
   6  Prefactor     .10000E-03    25.585        .21397E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    39.537        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     60.493        54.967        .51578E-04   -1.4151    
   9  Prefactor     29.390        30.814        .73919E-04   -1.4623    
  10  Prefactor     .10000E-03    9.7769        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     28.307        19.509        .75309E-04   -1.4643    
  12  norm          .10000E-03    3.1367        .12747E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .83650        2.2782        .19201E-02   -1.5525    
  14  norm          .10000E-03    16.586        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          2.4880        1.9077        .86506E-04   -1.5392    
  16  norm          .10000E-03    5.9494        .17559E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          2.3280        1.8194        .84126E-04   -1.5403    
  18  Normalizat    1.3384        .27046        .27758E-03   -.82427    
  19  Prefactor     .72915        .14865        .20818E-03   -1.0240    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.09661e-08
Minuit parameter uncertainties:
  1  17.9211
  2  3.46523
  3  6.78538
  4  1.07077e-06
  5  11.1814
  6  0.000420945
  7  2.98006e-05
  8  55.0134
  9  30.8304
  10  1.30316e-07
  11  19.5132
  12  3.80637e-06
  13  2.27843
  14  4.8091e-06
  15  1.90774
  16  1.63725e-06
  17  1.81944
  18  0.270752
  19  0.148729
Done.

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

Extracting fit parameters...

4FGL J0937.9-1434
   Spectrum: PowerLaw
257    Prefactor:  1.000e-04  1.303e-07  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:  7.292e-01  1.487e-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.338e+00  2.708e-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.92e-08 ph cm-2 s-1
Energy Flux Upper Limit: 3.69e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/375497/likelihoodResults_524707201_524966401_4FGL_J0937.9-1434_daily_bin1101.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) = 5446.8487645
delta logL = -0.000483513500512

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5446.84828112
delta logL = -1.36255039251e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10018E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    1.9555       1.0000          .0000       10.000    
     3 'Normalizat'    1.3386       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .72906       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.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   5446.848     FROM MIGRAD    STATUS=FAILED        87 CALLS      236 TOTAL
                     EDM=   .10E-03    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    515.70        .18142E-02** at limit **
   2  Index         1.9316        5.8730        .20000        .18026E-04
   3  Normalizat    1.3384        .44271E-01    .27758E-03    .64710E-05
   4  Prefactor     .72915        .25457E-01    .20818E-03    .64441E-05
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   5446.848     FROM SIMPLEX   STATUS=UNCHANGED    171 CALLS      407 TOTAL
                     EDM=   .13E-04    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    515.70        .51227E-03** at limit **
   2  Index         1.9316        5.8730        .29401E-05    .18026E-04
   3  Normalizat    1.3384        .44271E-01    .41802E-07    .64710E-05
   4  Prefactor     .72915        .25457E-01    .15138E-07    .64441E-05
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   5445.729     FROM MIGRAD    STATUS=CONVERGED    124 CALLS      531 TOTAL
                     EDM=   .92E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    .65681E-02    .18579E-03** at limit **
   2  Index         6.6429        1.8492        .74051E-01    .26338E-03
   3  Normalizat    1.1885        .74015E-01    .11103E-03    .65427E-04
   4  Prefactor     .78532        .40829E-01    .83270E-04    .98709E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 6.64288
  Normalizat = 1.1885
  Prefactor  = 0.785325
 **********
 **   18 **HESSE 
 **********

 FCN=   5445.729     FROM HESSE     STATUS=OK            31 CALLS      562 TOTAL
                     EDM=   .24E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    .68785E-03    .11298E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         6.6429        .23457        .28006E-02   -5.9484    
   3  Normalizat    1.1885        .27115        .22207E-04   -.86959    
   4  Prefactor     .78532        .15157        .16654E-04   -1.0027    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.39069e-11
Minuit parameter uncertainties:
  1  4.28747e-09
  2  0.23467
  3  0.271474
  4  0.151647
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/375497': 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) = 5445.72919025
delta logL = 1.11909073679

Extracting fit parameters...

4FGL J0937.9-1434
   Spectrum: PowerLaw
257    Prefactor:  1.000e-04  4.287e-09  1.000e-04  1.000e+04 ( 1.000e-14)
258        Index:  6.643e+00  2.347e-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:  7.853e-01  1.516e-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.188e+00  2.715e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.50
Ra Dec: 144.475 -14.571
Photon Index (Free Index): 6.64 +/- 0.23
Photon Flux (Free Index): 1.34e-07 +/- 1.00e-07
Energy Flux (Free Index): 1.62e-05 +/- 1.21e-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/375497/cmap_HighResolution_524707201_524966401_4FGL_J0937.9-1434_daily_bin1101.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.69e-03', comment='SUCCESS', energy_flux2='1.62e-05', dlogl='1.12e+00', photon_flux2='1.34e-07', job_status='DONE', time_completed='2021-08-31 19:42:31.538168', photon_index_error2='0.23', photon_index2='6.64', ts='-0.00', fit_tolerance='1e-08', GAL='0.73', photon_index_error='0.00', photon_flux_upper_limit='4.92e-08', energy_flux_error2='1.21e-05', EG='1.34', time_epoch_completed='1630464151.54', return_code='0', job_id='375497', GAL2='0.79', EG2='1.19', return_code2='0', photon_flux_error2='1.00e-07', ts2='2.50', photon_index='1.98' WHERE bin_id='1101' AND source_name='4FGL J0937.9-1434' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Aug 31 19:42:31 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0214>
Subject: Job 375497: <4FGL_J0937.9-1434_daily_bin1101> in cluster <slac> Done

Job <4FGL_J0937.9-1434_daily_bin1101> was submitted from host <rhel6-64m> by user <kocevski> in cluster <slac> at Tue Aug 31 19:31:22 2021
Job was executed on host(s) <bullet0214>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Aug 31 19:31:23 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Tue Aug 31 19:31:23 2021
Terminated at Tue Aug 31 19:42:32 2021
Results reported at Tue Aug 31 19:42:32 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0937.9-1434_daily_bin1101 144.475 -14.5706 524707201 524966401 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 :                                   538.42 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             306.17 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   668 sec.
    Turnaround time :                            670 sec.

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

