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


Performing analysis on: 4FGL_J0937.9-1434_daily_bin1556
RA = 144.475, Dec = -14.5706
tmin = 642643201, tmax = 642902401
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='378469', job_status='RUN', time_executed='2021-08-31 19:42:10.454536', time_epoch_executed='1630464130.45' WHERE source_name='4FGL J0937.9-1434' and cadence='daily' and bin_id='1556'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/378469

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/378469/ft1_4FGL_J0937.9-1434_daily_bin1556.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/378469/ft2_4FGL_J0937.9-1434_daily_bin1556.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/378469/ft1_4FGL_J0937.9-1434_daily_bin1556.fits outfile=/scratch/kocevski/378469/ft1_filteredMKT_4FGL_J0937.9-1434_daily_bin1556.fits ra=144.475 dec=-14.5706 rad=12.0 tmin=642643201.0 tmax=642902401.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.59
user 3.36
sys 0.18

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/378469/ft1_filtered_4FGL_J0937.9-1434_daily_bin1556.fits" evtable="EVENTS" scfile=/scratch/kocevski/378469/ft2_4FGL_J0937.9-1434_daily_bin1556.fits sctable="SC_DATA" outfile=/scratch/kocevski/378469/ltcube_642643201_642902401_4FGL_J0937.9-1434_daily_bin1556.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/378469/ft2_4FGL_J0937.9-1434_daily_bin1556.fits
.....................!
real 12.23
user 11.88
sys 0.30

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/378469/ft1_filtered_4FGL_J0937.9-1434_daily_bin1556.fits evtable="EVENTS" scfile=/scratch/kocevski/378469/ft2_4FGL_J0937.9-1434_daily_bin1556.fits sctable="SC_DATA" expcube=/scratch/kocevski/378469/ltcube_642643201_642902401_4FGL_J0937.9-1434_daily_bin1556.fits outfile=/scratch/kocevski/378469/expmap_642643201_642902401_4FGL_J0937.9-1434_daily_bin1556.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/378469/ltcube_642643201_642902401_4FGL_J0937.9-1434_daily_bin1556.fits
.....................!
real 189.45
user 184.89
sys 4.12

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/378469/ft1_filtered_4FGL_J0937.9-1434_daily_bin1556.fits scfile=/scratch/kocevski/378469/ft2_4FGL_J0937.9-1434_daily_bin1556.fits outfile=/scratch/kocevski/378469/cmap_642643201_642902401_4FGL_J0937.9-1434_daily_bin1556.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.36
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/378469/ft1_filtered_4FGL_J0937.9-1434_daily_bin1556.fits scfile=/scratch/kocevski/378469/ft2_4FGL_J0937.9-1434_daily_bin1556.fits outfile=/scratch/kocevski/378469/cmap_HighResolution_642643201_642902401_4FGL_J0937.9-1434_daily_bin1556.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/378469/ft1_filtered_4FGL_J0937.9-1434_daily_bin1556.fits evtable="EVENTS" scfile=/scratch/kocevski/378469/ft2_4FGL_J0937.9-1434_daily_bin1556.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/378469/Model_4FGL_J0937.9-1434_daily_bin1556.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/378469/ft1_filtered_4FGL_J0937.9-1434_daily_bin1556.fits.....................!
real 77.31
user 75.90
sys 1.17

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    7.8753       1.0000         .10000E-03   10000.    
     2 'norm      '    1.3721       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10030E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    3.1600       1.0000         .10000E-03   10000.    
     5 'Prefactor '    2.1129       1.0000         .10000E-03   10000.    
     6 'Prefactor '    9.4525       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    21.104       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10026E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10065E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    4.3737       1.0000         .10000E-03   10000.    
    12 'norm      '    6.4656       1.0000         .10000E-03   10000.    
    13 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    1.5581       1.0000         .10000E-03   10000.    
    15 'norm      '    1.2656       1.0000         .10000E-03   10000.    
    16 'norm      '    3.5736       1.0000         .10000E-03   10000.    
    17 'norm      '    2.0520       1.0000         .10000E-03   10000.    
    18 'Normalizat'    1.0820       1.0000         .10000E-01   10.000    
    19 'Prefactor '    .91349       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=   7460.833     FROM MIGRAD    STATUS=CONVERGED    385 CALLS     1911 TOTAL
                     EDM=   .54E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          7.8759        7.7117       -.68961E-07   -.15976E-04
   2  norm          1.3722        2.0138        .76050E-07   -.60276E-04
   3  Prefactor     .10000E-03    2.9302        .29859E-06** at limit **
   4  Prefactor     3.1596        9.0594        .32685E-06   -.49761E-04
   5  Prefactor     2.1128        5.6134        .72968E-06   -.94583E-04
   6  Prefactor     9.4593        15.949        .98242E-06    .17447E-04
   7  Prefactor     .10000E-03    11.503        .20364E-07** at limit **
   8  Prefactor     21.070        37.594       -.59447E-05   -.33334E-03
   9  Prefactor     .10000E-03    71.384        .44494E-06** at limit **
  10  Prefactor     .10000E-03    27.873        .33453E-07** at limit **
  11  Prefactor     4.3736        8.6048        .47243E-05   -.36529E-03
  12  norm          6.4679        6.1321        .93868E-07    .47906E-04
  13  norm          .10000E-03    1.0870       -.19533E-07** at limit **
  14  norm          1.5567        10.170        .16932E-05   -.69450E-04
  15  norm          1.2655        1.1899       -.46767E-08    .39550E-04
  16  norm          3.5734        8.0811        .25646E-06   -.66124E-04
  17  norm          2.0520        1.1506        .20597E-07   -.88380E-04
  18  Normalizat    1.0818        .17954        .10472E-05   -.16598E-03
  19  Prefactor     .91367        .10836       -.11700E-05    .38493E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 7.8759
  norm       = 1.3722
  Prefactor  = 0.0001
  Prefactor  = 3.15958
  Prefactor  = 2.11282
  Prefactor  = 9.45931
  Prefactor  = 0.0001
  Prefactor  = 21.0705
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 4.37358
  norm       = 6.46788
  norm       = 0.0001
  norm       = 1.55669
  norm       = 1.26554
  norm       = 3.57343
  norm       = 2.052
  Normalizat = 1.08179
  Prefactor  = 0.913665
 **********
 **   18 **HESSE 
 **********

 FCN=   7460.833     FROM HESSE     STATUS=OK           274 CALLS     2185 TOTAL
                     EDM=   .12E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          7.8759        7.6963        .14288E-03   -1.5147    
   2  norm          1.3722        1.9760        .14234E-03   -1.5474    
   3  Prefactor     .10000E-03    6.4502        .28461E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     3.1596        9.0109        .22801E-03   -1.5352    
   5  Prefactor     2.1128        5.5926        .28380E-03   -1.5417    
   6  Prefactor     9.4593        16.021        .13035E-03   -1.5093    
   7  Prefactor     .10000E-03    11.514        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     21.070        40.223        .87188E-04   -1.4790    
   9  Prefactor     .10000E-03    72.332        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    28.008        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     4.3736        8.8031        .96294E-03   -1.5290    
  12  norm          6.4679        6.1248        .15784E-03   -1.5199    
  13  norm          .10000E-03    1.0903        .87936E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          1.5567        10.226        .34098E-03   -1.5458    
  15  norm          1.2655        1.2129        .88923E-04   -1.5483    
  16  norm          3.5734        8.0753        .21378E-03   -1.5330    
  17  norm          2.0520        1.1442        .66935E-04   -1.5421    
  18  Normalizat    1.0818        .21077        .28085E-03   -.90339    
  19  Prefactor     .91367        .12635        .18481E-03   -.95665    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.21647e-09
Minuit parameter uncertainties:
  1  7.6973
  2  1.9761
  3  3.59028e-05
  4  9.0148
  5  5.59401
  6  16.0279
  7  9.29127e-06
  8  40.2751
  9  0.000140723
  10  5.72365e-05
  11  8.80569
  12  6.12541
  13  1.31616e-06
  14  7.98122
  15  1.21291
  16  8.07778
  17  1.14422
  18  0.210935
  19  0.126386
Done.

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

Extracting fit parameters...

4FGL J0937.9-1434
   Spectrum: PowerLaw
257    Prefactor:  1.000e-04  5.724e-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:  9.137e-01  1.264e-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.082e+00  2.109e-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: 5.26e-08 ph cm-2 s-1
Energy Flux Upper Limit: 3.94e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/378469/likelihoodResults_642643201_642902401_4FGL_J0937.9-1434_daily_bin1556.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) = 7460.83366161
delta logL = -0.000170108660313

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7460.8334906
delta logL = 9.09783011593e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10329E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.2762       1.0000          .0000       10.000    
     3 'Normalizat'    1.0818       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .91366       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=   7460.833     FROM MIGRAD    STATUS=CONVERGED     69 CALLS      258 TOTAL
                     EDM=   .36E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10089E-03    .25977E-01    .90712E-01** at limit **
   2  Index         2.3950        3.3735        .50000       -.21772E-04
   3  Normalizat    1.0818        .25374E-03    .63493E-01   -.51808E-04
   4  Prefactor     .91366        .15562E-03    .45179E-01   -.10114E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100891
  Index      = 2.39499
  Normalizat = 1.0818
  Prefactor  = 0.913664
 **********
 **   18 **HESSE 
 **********

 FCN=   7460.833     FROM HESSE     STATUS=NOT POSDEF    41 CALLS      299 TOTAL
                     EDM=   .38E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10089E-03    .34436E-01    .77544E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.3950        3.4565        .50000       -.54802    
   3  Normalizat    1.0818        .26240E-03    .28085E-03   -.90338    
   4  Prefactor     .91366        .16105E-03    .18481E-03   -.95665    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 3.7915e-10
Minuit parameter uncertainties:
  1  0.000350338
  2  4.02874
  3  0.000262403
  4  0.000161049
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/378469': 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) = 7460.83349003
delta logL = 1.47230912262e-06

Extracting fit parameters...

4FGL J0937.9-1434
   Spectrum: PowerLaw
257    Prefactor:  1.009e-04  3.503e-04  1.000e-04  1.000e+04 ( 1.000e-14)
258        Index:  2.395e+00  4.029e+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.137e-01  1.610e-04  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.082e+00  2.624e-04  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/378469/cmap_HighResolution_642643201_642902401_4FGL_J0937.9-1434_daily_bin1556.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.94e-03', job_status='DONE', photon_flux_upper_limit='5.26e-08', time_completed='2021-08-31 19:52:34.770271', job_id='378469', GAL2='0.91', fit_tolerance='1e-08', EG2='1.08', EG='1.08', time_epoch_completed='1630464754.77', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.91', dlogl='1.47e-06', ts2='-0.00', photon_index_error='0.00', photon_index='1.98' WHERE bin_id='1556' AND source_name='4FGL J0937.9-1434' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Aug 31 19:52:34 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0197>
Subject: Job 378469: <4FGL_J0937.9-1434_daily_bin1556> in cluster <slac> Done

Job <4FGL_J0937.9-1434_daily_bin1556> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Tue Aug 31 19:40:37 2021
Job was executed on host(s) <bullet0197>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Aug 31 19:40:38 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:38 2021
Terminated at Tue Aug 31 19:52:35 2021
Results reported at Tue Aug 31 19:52:35 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0937.9-1434_daily_bin1556 144.475 -14.5706 642643201 642902401 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 :                                   621.34 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             334.95 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   717 sec.
    Turnaround time :                            718 sec.

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

