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


Performing analysis on: 4FGL_J0937.9-1434_daily_bin134
RA = 144.475, Dec = -14.5706
tmin = 274060801, tmax = 274320001
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='370259', job_status='RUN', time_executed='2021-08-31 19:15:39.704587', time_epoch_executed='1630462539.7' WHERE source_name='4FGL J0937.9-1434' and cadence='daily' and bin_id='134'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/370259

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/370259/ft1_4FGL_J0937.9-1434_daily_bin134.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/370259/ft2_4FGL_J0937.9-1434_daily_bin134.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/370259/ft1_4FGL_J0937.9-1434_daily_bin134.fits outfile=/scratch/kocevski/370259/ft1_filteredMKT_4FGL_J0937.9-1434_daily_bin134.fits ra=144.475 dec=-14.5706 rad=12.0 tmin=274060801.0 tmax=274320001.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.69
user 3.48
sys 0.20

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/370259/ft1_filtered_4FGL_J0937.9-1434_daily_bin134.fits" evtable="EVENTS" scfile=/scratch/kocevski/370259/ft2_4FGL_J0937.9-1434_daily_bin134.fits sctable="SC_DATA" outfile=/scratch/kocevski/370259/ltcube_274060801_274320001_4FGL_J0937.9-1434_daily_bin134.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/370259/ft2_4FGL_J0937.9-1434_daily_bin134.fits
.....................!
real 11.85
user 11.45
sys 0.36

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/370259/ft1_filtered_4FGL_J0937.9-1434_daily_bin134.fits evtable="EVENTS" scfile=/scratch/kocevski/370259/ft2_4FGL_J0937.9-1434_daily_bin134.fits sctable="SC_DATA" expcube=/scratch/kocevski/370259/ltcube_274060801_274320001_4FGL_J0937.9-1434_daily_bin134.fits outfile=/scratch/kocevski/370259/expmap_274060801_274320001_4FGL_J0937.9-1434_daily_bin134.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/370259/ltcube_274060801_274320001_4FGL_J0937.9-1434_daily_bin134.fits
.....................!
real 190.03
user 184.90
sys 4.77

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/370259/ft1_filtered_4FGL_J0937.9-1434_daily_bin134.fits scfile=/scratch/kocevski/370259/ft2_4FGL_J0937.9-1434_daily_bin134.fits outfile=/scratch/kocevski/370259/cmap_274060801_274320001_4FGL_J0937.9-1434_daily_bin134.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.54
user 0.40
sys 0.12

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/370259/ft1_filtered_4FGL_J0937.9-1434_daily_bin134.fits scfile=/scratch/kocevski/370259/ft2_4FGL_J0937.9-1434_daily_bin134.fits outfile=/scratch/kocevski/370259/cmap_HighResolution_274060801_274320001_4FGL_J0937.9-1434_daily_bin134.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/370259/ft1_filtered_4FGL_J0937.9-1434_daily_bin134.fits evtable="EVENTS" scfile=/scratch/kocevski/370259/ft2_4FGL_J0937.9-1434_daily_bin134.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/370259/Model_4FGL_J0937.9-1434_daily_bin134.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/370259/ft1_filtered_4FGL_J0937.9-1434_daily_bin134.fits.....................!
real 68.36
user 67.04
sys 1.15

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10024E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    4.4849       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    21.475       1.0000         .10000E-03   10000.    
     5 'Prefactor '    10.352       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10014E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    100.64       1.0000         .10000E-03   10000.    
     8 'Prefactor '    8.7921       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .12806E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    11.440       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    6.8460       1.0000         .10000E-03   10000.    
    13 'norm      '    4.4310       1.0000         .10000E-03   10000.    
    14 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .11002E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .10015E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    2.0291       1.0000         .10000E-03   10000.    
    18 'Normalizat'    .94902       1.0000         .10000E-01   10.000    
    19 'Prefactor '    1.0262       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=   6697.508     FROM MIGRAD    STATUS=CONVERGED    385 CALLS     1869 TOTAL
                     EDM=   .19E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    4.3934       -.18510E-08** at limit **
   2  norm          4.4853        3.2593        .92988E-07   -.91276E-05
   3  Prefactor     .10000E-03    4.5877        .42679E-07** at limit **
   4  Prefactor     21.478        15.693       -.10219E-05    .15611E-03
   5  Prefactor     10.352        10.256        .34366E-06   -.10693E-03
   6  Prefactor     .10000E-03    11.267       -.90384E-07** at limit **
   7  Prefactor     100.64        47.756        .46074E-05   -.41312E-03
   8  Prefactor     8.7959        44.014        .79623E-05   -.91233E-04
   9  Prefactor     .10000E-03    76.500        .38729E-06** at limit **
  10  Prefactor     11.436        21.513       -.59395E-06    .40265E-04
  11  Prefactor     .10000E-03    8.0112       -.82932E-08** at limit **
  12  norm          6.8451        5.0609       -.12076E-05   -.23336E-02
  13  norm          4.4301        4.3082       -.12094E-06   -.19778E-03
  14  norm          .10000E-03    2.5996       -.79058E-09** at limit **
  15  norm          .10000E-03    1.1725        .60879E-07** at limit **
  16  norm          .10000E-03    5.1611        .10711E-07** at limit **
  17  norm          2.0293        1.2961       -.56393E-08   -.34573E-03
  18  Normalizat    .94863        .20614       -.94482E-06   -.10870E-04
  19  Prefactor     1.0263        .12118        .29026E-07   -.49371E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  norm       = 4.48528
  Prefactor  = 0.0001
  Prefactor  = 21.4783
  Prefactor  = 10.352
  Prefactor  = 0.0001
  Prefactor  = 100.644
  Prefactor  = 8.79588
  Prefactor  = 0.0001
  Prefactor  = 11.4363
  Prefactor  = 0.0001
  norm       = 6.8451
  norm       = 4.43006
  norm       = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  norm       = 2.0293
  Normalizat = 0.948631
  Prefactor  = 1.02635
 **********
 **   18 **HESSE 
 **********

 FCN=   6697.508     FROM HESSE     STATUS=OK           268 CALLS     2137 TOTAL
                     EDM=   .38E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    4.3977        .16751E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          4.4853        3.2549        .12023E-03   -1.5284    
   3  Prefactor     .10000E-03    4.6372        .17112E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     21.478        15.637        .86432E-04   -1.4781    
   5  Prefactor     10.352        10.232        .12453E-03   -1.5064    
   6  Prefactor     .10000E-03    11.296        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     100.64        44.812        .40076E-04   -1.3698    
   8  Prefactor     8.7959        41.781        .13518E-03   -1.5115    
   9  Prefactor     .10000E-03    77.340        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     11.436        21.462        .11844E-03   -1.5031    
  11  Prefactor     .10000E-03    8.0485        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          6.8451        6.2464        .76671E-03   -1.5185    
  13  norm          4.4301        4.2985        .16070E-03   -1.5287    
  14  norm          .10000E-03    2.6012        .12887E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .10000E-03    2.8590        .17148E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10000E-03    5.1833        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          2.0293        1.2897        .71500E-04   -1.5423    
  18  Normalizat    .94863        .23802        .31981E-03   -.94772    
  19  Prefactor     1.0263        .14080        .18781E-03   -.91856    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.78099e-09
Minuit parameter uncertainties:
  1  5.40029e-06
  2  3.255
  3  1.96327e-06
  4  15.64
  5  10.2337
  6  2.67229e-05
  7  44.827
  8  38.3839
  9  8.97506e-05
  10  21.4766
  11  3.42012e-06
  12  6.24702
  13  4.29879
  14  5.64746e-08
  15  9.94405e-06
  16  7.27193e-06
  17  1.28975
  18  0.238282
  19  0.14085
Done.

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

Extracting fit parameters...

4FGL J0937.9-1434
   Spectrum: PowerLaw
257    Prefactor:  1.144e+01  2.148e+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:  1.026e+00  1.409e-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.486e-01  2.383e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/370259/likelihoodResults_274060801_274320001_4FGL_J0937.9-1434_daily_bin134.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) = 6697.43782304
delta logL = 0.0702387365945

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6697.43576363
delta logL = 0.0722981472381

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    17.535       1.0000         .10000E-03   10000.    
     2 'Index     '    1.6443       1.0000          .0000       10.000    
     3 'Normalizat'    .95249       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0249       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=   6697.436     FROM MIGRAD    STATUS=CONVERGED     58 CALLS      258 TOTAL
                     EDM=   .21E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     17.628        1074.9        .23912E-02    .34170E-04
   2  Index         1.6489        5.6358        .28346        .54056E-04
   3  Normalizat    .95231        .70816E-01    .72152E-01   -.11487E-03
   4  Prefactor     1.0248        .35669E-01    .41683E-01   -.17218E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 17.6284
  Index      = 1.64891
  Normalizat = 0.95231
  Prefactor  = 1.02482
 **********
 **   18 **HESSE 
 **********

 FCN=   6697.436     FROM HESSE     STATUS=OK            31 CALLS      289 TOTAL
                     EDM=   .70E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     17.628        31.262        .95646E-04   -1.4868    
   2  Index         1.6489        .81881        .10274E-01   -.73450    
   3  Normalizat    .95231        .22907        .31925E-03   -.94646    
   4  Prefactor     1.0248        .14048        .18792E-03   -.91907    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.99823e-11
Minuit parameter uncertainties:
  1  31.2912
  2  0.825602
  3  0.229303
  4  0.140534
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/370259': 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) = 6697.43573452
delta logL = 0.0723272584764

Extracting fit parameters...

4FGL J0937.9-1434
   Spectrum: PowerLaw
257    Prefactor:  1.763e+01  3.129e+01  1.000e-04  1.000e+04 ( 1.000e-14)
258        Index:  1.649e+00  8.256e-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:  1.025e+00  1.405e-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.523e-01  2.293e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.42
Ra Dec: 144.475 -14.571

Creating a high resolution counts map...
INFO: Auto-setting vmin to  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/370259/cmap_HighResolution_274060801_274320001_4FGL_J0937.9-1434_daily_bin134.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.19e-03', job_status='DONE', photon_flux_upper_limit='6.93e-08', time_completed='2021-08-31 19:25:24.117556', job_id='370259', GAL2='1.02', fit_tolerance='1e-08', EG2='0.95', EG='0.95', time_epoch_completed='1630463124.12', return_code2='0', ts='0.42', comment='SUCCESS', return_code='0', GAL='1.03', dlogl='7.23e-02', ts2='0.57', photon_index_error='0.00', photon_index='1.98' WHERE bin_id='134' AND source_name='4FGL J0937.9-1434' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Aug 31 19:25:24 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0073>
Subject: Job 370259: <4FGL_J0937.9-1434_daily_bin134> in cluster <slac> Done

Job <4FGL_J0937.9-1434_daily_bin134> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Tue Aug 31 19:15:23 2021
Job was executed on host(s) <bullet0073>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Aug 31 19:15:24 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:15:24 2021
Terminated at Tue Aug 31 19:25:25 2021
Results reported at Tue Aug 31 19:25:25 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0937.9-1434_daily_bin134 144.475 -14.5706 274060801 274320001 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 :                                   580.00 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             340.50 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   600 sec.
    Turnaround time :                            602 sec.

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

