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


Performing analysis on: 4FGL_J0937.9-1434_daily_bin1484
RA = 144.475, Dec = -14.5706
tmin = 623980801, tmax = 624240001
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='377368', job_status='RUN', time_executed='2021-08-31 19:37:26.944132', time_epoch_executed='1630463846.94' WHERE source_name='4FGL J0937.9-1434' and cadence='daily' and bin_id='1484'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/377368

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/377368/ft1_4FGL_J0937.9-1434_daily_bin1484.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/377368/ft2_4FGL_J0937.9-1434_daily_bin1484.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/377368/ft1_4FGL_J0937.9-1434_daily_bin1484.fits outfile=/scratch/kocevski/377368/ft1_filteredMKT_4FGL_J0937.9-1434_daily_bin1484.fits ra=144.475 dec=-14.5706 rad=12.0 tmin=623980801.0 tmax=624240001.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.11
user 3.82
sys 0.21

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/377368/ft1_filtered_4FGL_J0937.9-1434_daily_bin1484.fits" evtable="EVENTS" scfile=/scratch/kocevski/377368/ft2_4FGL_J0937.9-1434_daily_bin1484.fits sctable="SC_DATA" outfile=/scratch/kocevski/377368/ltcube_623980801_624240001_4FGL_J0937.9-1434_daily_bin1484.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/377368/ft2_4FGL_J0937.9-1434_daily_bin1484.fits
.....................!
real 11.83
user 11.50
sys 0.30

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/377368/ft1_filtered_4FGL_J0937.9-1434_daily_bin1484.fits evtable="EVENTS" scfile=/scratch/kocevski/377368/ft2_4FGL_J0937.9-1434_daily_bin1484.fits sctable="SC_DATA" expcube=/scratch/kocevski/377368/ltcube_623980801_624240001_4FGL_J0937.9-1434_daily_bin1484.fits outfile=/scratch/kocevski/377368/expmap_623980801_624240001_4FGL_J0937.9-1434_daily_bin1484.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/377368/ltcube_623980801_624240001_4FGL_J0937.9-1434_daily_bin1484.fits
.....................!
real 191.68
user 187.32
sys 4.04

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/377368/ft1_filtered_4FGL_J0937.9-1434_daily_bin1484.fits scfile=/scratch/kocevski/377368/ft2_4FGL_J0937.9-1434_daily_bin1484.fits outfile=/scratch/kocevski/377368/cmap_623980801_624240001_4FGL_J0937.9-1434_daily_bin1484.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.37
sys 0.14

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

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

This is gtbin version HEAD
real 0.53
user 0.38
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/377368/ft1_filtered_4FGL_J0937.9-1434_daily_bin1484.fits evtable="EVENTS" scfile=/scratch/kocevski/377368/ft2_4FGL_J0937.9-1434_daily_bin1484.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/377368/Model_4FGL_J0937.9-1434_daily_bin1484.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/377368/ft1_filtered_4FGL_J0937.9-1434_daily_bin1484.fits.....................!
real 87.07
user 85.79
sys 1.11

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .13989E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    .10091E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    1.1855       1.0000         .10000E-03   10000.    
     4 'Prefactor '    16.501       1.0000         .10000E-03   10000.    
     5 'Prefactor '    2.8525       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    104.29       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10193E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    14.209       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10572E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    4.6849       1.0000         .10000E-03   10000.    
    12 'norm      '    .15073E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .10315E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    .66592       1.0000         .10000E-03   10000.    
    15 'norm      '    .86775       1.0000         .10000E-03   10000.    
    16 'norm      '    .30369E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    2.2934       1.0000         .10000E-03   10000.    
    18 'Normalizat'    .81985       1.0000         .10000E-01   10.000    
    19 'Prefactor '    1.0625       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=   9158.296     FROM MIGRAD    STATUS=CONVERGED    398 CALLS     1976 TOTAL
                     EDM=   .12E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    3.0201       -.28813E-06** at limit **
   2  norm          .10000E-03    .79741       -.79785E-07** at limit **
   3  Prefactor     1.1807        3.9675       -.79060E-06   -.14666E-03
   4  Prefactor     16.508        10.164       -.76502E-06    .80951E-04
   5  Prefactor     2.8513        4.0582        .11893E-05    .26578E-04
   6  Prefactor     .10000E-03    20.053        .52793E-05** at limit **
   7  Prefactor     104.28        37.216       -.85876E-05    .40904E-04
   8  Prefactor     .10000E-03    10.241        .54589E-05** at limit **
   9  Prefactor     14.188        24.592       -.32686E-04    .28479E-04
  10  Prefactor     .10000E-03    22.319       -.20846E-05** at limit **
  11  Prefactor     4.6691        12.705       -.45715E-05    .30081E-04
  12  norm          .10000E-03    2.6237        .65753E-06** at limit **
  13  norm          .10011E-03    1.5351       -.55368E-06** at limit **
  14  norm          .66589        .69023        .20375E-06   -.23103E-02
  15  norm          .86743        .78566       -.94651E-08    .19063E-03
  16  norm          .10005E-03    5.1703       -.17704E-05** at limit **
  17  norm          2.2928        1.1298       -.18894E-06    .11335E-03
  18  Normalizat    .82016        .16460        .67892E-05    .11665E-03
  19  Prefactor     1.0625        .10006        .52325E-07    .72039E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 1.18068
  Prefactor  = 16.5077
  Prefactor  = 2.85133
  Prefactor  = 0.0001
  Prefactor  = 104.283
  Prefactor  = 0.0001
  Prefactor  = 14.1878
  Prefactor  = 0.0001
  Prefactor  = 4.66915
  norm       = 0.000100001
  norm       = 0.000100114
  norm       = 0.665886
  norm       = 0.86743
  norm       = 0.000100046
  norm       = 2.29276
  Normalizat = 0.820165
  Prefactor  = 1.0625
 **********
 **   18 **HESSE 
 **********

 FCN=   9158.296     FROM HESSE     STATUS=OK           278 CALLS     2254 TOTAL
                     EDM=   .29E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    16.392        .32145E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .10000E-03    .81189        .83406E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     1.1807        3.9868        .33136E-03   -1.5491    
   4  Prefactor     16.508        10.089        .98596E-04   -1.4895    
   5  Prefactor     2.8513        4.0449        .22291E-03   -1.5370    
   6  Prefactor     .10000E-03    20.450        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     104.28        37.126        .39374E-04   -1.3662    
   8  Prefactor     .10000E-03    10.250        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     14.188        24.623        .10626E-03   -1.4954    
  10  Prefactor     .10000E-03    22.379        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     4.6691        12.660        .18592E-03   -1.5276    
  12  norm          .10000E-03    6.7728        .29909E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .10011E-03    11.000        .22755E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .66589        8.4582        .23861E-02   -1.5545    
  15  norm          .86743        .84524        .78609E-03   -1.5522    
  16  norm          .10005E-03    36.104        .41625E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          2.2928        1.1240        .68623E-04   -1.5405    
  18  Normalizat    .82016        .18549        .31571E-03   -.99325    
  19  Prefactor     1.0625        .11513        .17691E-03   -.90674    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.93069e-08
Minuit parameter uncertainties:
  1  0.000145764
  2  3.02312e-06
  3  3.98771
  4  10.0904
  5  4.04531
  6  0.000144257
  7  37.1341
  8  6.94759e-06
  9  24.6406
  10  4.4698e-05
  11  12.6677
  12  0.000158129
  13  0.00224447
  14  4.74692
  15  0.845253
  16  0.00258098
  17  1.12401
  18  0.185635
  19  0.115156
Done.

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

Extracting fit parameters...

4FGL J0937.9-1434
   Spectrum: PowerLaw
257    Prefactor:  1.000e-04  4.470e-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.063e+00  1.152e-01  0.000e+00  1.000e+01 ( 1.000e+00)
535        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
536        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
533   Normalization:  8.202e-01  1.856e-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.34e-08 ph cm-2 s-1
Energy Flux Upper Limit: 4.00e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/377368/likelihoodResults_623980801_624240001_4FGL_J0937.9-1434_daily_bin1484.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) = 9158.29660936
delta logL = -0.000212905772059

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 9158.29660935
delta logL = -0.00021289182223

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .96355E-02   1.0000         .10000E-03   10000.    
     2 'Index     '    1.9797       1.0000          .0000       10.000    
     3 'Normalizat'    .82017       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0625       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=   9158.296     FROM MIGRAD    STATUS=CONVERGED     55 CALLS      200 TOTAL
                     EDM=   .16E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    156.07        .90713E-02** at limit **
   2  Index         1.9716        6.9339        .50000        .28060E-05
   3  Normalizat    .82017        .11022E-01    .71343E-01    .14822E-04
   4  Prefactor     1.0625        .69815E-02    .39227E-01   -.65426E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 1.97159
  Normalizat = 0.820168
  Prefactor  = 1.0625
 **********
 **   18 **HESSE 
 **********

 FCN=   9158.296     FROM HESSE     STATUS=OK            31 CALLS      231 TOTAL
                     EDM=   .18E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    23.676        .18143E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         1.9716        5.9702        .50000       -.65062    
   3  Normalizat    .82017        .17823        .31570E-03   -.99325    
   4  Prefactor     1.0625        .11315        .17691E-03   -.90674    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.78545e-11
Minuit parameter uncertainties:
  1  9.30255e-05
  2  4.10523
  3  0.17836
  4  0.113178
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/377368': 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) = 9158.29639645
delta logL = 6.03722583037e-09

Extracting fit parameters...

4FGL J0937.9-1434
   Spectrum: PowerLaw
257    Prefactor:  1.000e-04  9.303e-05  1.000e-04  1.000e+04 ( 1.000e-14)
258        Index:  1.972e+00  4.105e+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:  1.063e+00  1.132e-01  0.000e+00  1.000e+01 ( 1.000e+00)
535        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
536        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
533   Normalization:  8.202e-01  1.784e-01  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/377368/cmap_HighResolution_623980801_624240001_4FGL_J0937.9-1434_daily_bin1484.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.00e-03', job_status='DONE', photon_flux_upper_limit='5.34e-08', time_completed='2021-08-31 19:50:11.132690', job_id='377368', GAL2='1.06', fit_tolerance='1e-08', EG2='0.82', EG='0.82', time_epoch_completed='1630464611.13', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.06', dlogl='6.04e-09', ts2='-0.00', photon_index_error='0.00', photon_index='1.98' WHERE bin_id='1484' AND source_name='4FGL J0937.9-1434' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Aug 31 19:50:11 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0220>
Subject: Job 377368: <4FGL_J0937.9-1434_daily_bin1484> in cluster <slac> Done

Job <4FGL_J0937.9-1434_daily_bin1484> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Tue Aug 31 19:36:46 2021
Job was executed on host(s) <bullet0220>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Aug 31 19:36:47 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:36:47 2021
Terminated at Tue Aug 31 19:50:11 2021
Results reported at Tue Aug 31 19:50:11 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0937.9-1434_daily_bin1484 144.475 -14.5706 623980801 624240001 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 :                                   688.18 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             319.84 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   804 sec.
    Turnaround time :                            805 sec.

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

