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


Performing analysis on: 4FGL_J0937.9-1434_daily_bin1567
RA = 144.475, Dec = -14.5706
tmin = 645494401, tmax = 645753601
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='378489', job_status='RUN', time_executed='2021-08-31 19:42:18.976158', time_epoch_executed='1630464138.98' WHERE source_name='4FGL J0937.9-1434' and cadence='daily' and bin_id='1567'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/378489

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

Retrieving the FT1 file...

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

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

Retrieving 48 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/378489/ft1_4FGL_J0937.9-1434_daily_bin1567.fits


Retrieving the FT1 file...

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

Retrieving 48 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/378489/ft2_4FGL_J0937.9-1434_daily_bin1567.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/378489/ft1_4FGL_J0937.9-1434_daily_bin1567.fits outfile=/scratch/kocevski/378489/ft1_filteredMKT_4FGL_J0937.9-1434_daily_bin1567.fits ra=144.475 dec=-14.5706 rad=12.0 tmin=645494401.0 tmax=645753601.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 2.56
user 2.37
sys 0.18

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/378489/ft2_4FGL_J0937.9-1434_daily_bin1567.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/378489/ft1_filteredMKT_4FGL_J0937.9-1434_daily_bin1567.fits evtable="EVENTS" outfile="/scratch/kocevski/378489/ft1_filtered_4FGL_J0937.9-1434_daily_bin1567.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/378489/ft1_filtered_4FGL_J0937.9-1434_daily_bin1567.fits" evtable="EVENTS" scfile=/scratch/kocevski/378489/ft2_4FGL_J0937.9-1434_daily_bin1567.fits sctable="SC_DATA" outfile=/scratch/kocevski/378489/ltcube_645494401_645753601_4FGL_J0937.9-1434_daily_bin1567.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/378489/ft2_4FGL_J0937.9-1434_daily_bin1567.fits
.....................!
real 12.37
user 11.99
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/378489/ft1_filtered_4FGL_J0937.9-1434_daily_bin1567.fits evtable="EVENTS" scfile=/scratch/kocevski/378489/ft2_4FGL_J0937.9-1434_daily_bin1567.fits sctable="SC_DATA" expcube=/scratch/kocevski/378489/ltcube_645494401_645753601_4FGL_J0937.9-1434_daily_bin1567.fits outfile=/scratch/kocevski/378489/expmap_645494401_645753601_4FGL_J0937.9-1434_daily_bin1567.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/378489/ltcube_645494401_645753601_4FGL_J0937.9-1434_daily_bin1567.fits
.....................!
real 192.27
user 187.06
sys 4.82

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/378489/ft1_filtered_4FGL_J0937.9-1434_daily_bin1567.fits scfile=/scratch/kocevski/378489/ft2_4FGL_J0937.9-1434_daily_bin1567.fits outfile=/scratch/kocevski/378489/cmap_645494401_645753601_4FGL_J0937.9-1434_daily_bin1567.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.57
user 0.38
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/378489/ft1_filtered_4FGL_J0937.9-1434_daily_bin1567.fits scfile=/scratch/kocevski/378489/ft2_4FGL_J0937.9-1434_daily_bin1567.fits outfile=/scratch/kocevski/378489/cmap_HighResolution_645494401_645753601_4FGL_J0937.9-1434_daily_bin1567.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.39
sys 0.14

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/378489/ft1_filtered_4FGL_J0937.9-1434_daily_bin1567.fits evtable="EVENTS" scfile=/scratch/kocevski/378489/ft2_4FGL_J0937.9-1434_daily_bin1567.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/378489/Model_4FGL_J0937.9-1434_daily_bin1567.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/378489/ft1_filtered_4FGL_J0937.9-1434_daily_bin1567.fits.....................!
real 103.67
user 102.23
sys 1.14

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    15.645       1.0000         .10000E-03   10000.    
     2 'norm      '    .21323       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .61938       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .91516       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .15146E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    6.7855       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10029E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    11.290       1.0000         .10000E-03   10000.    
    12 'norm      '    2.0971       1.0000         .10000E-03   10000.    
    13 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    5.3484       1.0000         .10000E-03   10000.    
    15 'norm      '    .70931       1.0000         .10000E-03   10000.    
    16 'norm      '    1.1040       1.0000         .10000E-03   10000.    
    17 'norm      '    1.0614       1.0000         .10000E-03   10000.    
    18 'Normalizat'    .92778       1.0000         .10000E-01   10.000    
    19 'Prefactor '    1.0174       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=   10891.90     FROM MIGRAD    STATUS=CONVERGED    393 CALLS     1660 TOTAL
                     EDM=   .99E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          15.642        10.062        .94717E-06    .33156E-03
   2  norm          .21658        1.1484       -.19596E-06    .13316E-03
   3  Prefactor     .62222        2.3811       -.22063E-05    .10739E-02
   4  Prefactor     .93444        5.7766       -.16484E-05    .34310E-03
   5  Prefactor     .10000E-03    2.6219       -.33041E-07** at limit **
   6  Prefactor     .10001E-03    32.059        .36083E-05** at limit **
   7  Prefactor     .10000E-03    8.9133        .16170E-05** at limit **
   8  Prefactor     6.7658        21.197       -.31345E-04   -.18716E-04
   9  Prefactor     .10000E-03    9.0578       -.19958E-05** at limit **
  10  Prefactor     .10000E-03    10.818        .25668E-06** at limit **
  11  Prefactor     11.290        9.2666       -.48206E-06    .39336E-04
  12  norm          2.0988        4.8833       -.65618E-06   -.34843E-04
  13  norm          .10000E-03    1.0141       -.10562E-07** at limit **
  14  norm          5.3485        4.5218        .53671E-09    .54811E-05
  15  norm          .70936        1.2236       -.10041E-06   -.29248E-03
  16  norm          1.1014        1.0121        .33418E-06   -.14177E-02
  17  norm          1.0616        1.0095       -.18153E-06   -.24507E-03
  18  Normalizat    .92786        .14368        .19631E-05    .39612E-03
  19  Prefactor     1.0174        .89140E-01    .20924E-06    .84743E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 15.6422
  norm       = 0.216585
  Prefactor  = 0.622224
  Prefactor  = 0.934443
  Prefactor  = 0.0001
  Prefactor  = 0.00010001
  Prefactor  = 0.0001
  Prefactor  = 6.7658
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 11.2902
  norm       = 2.09876
  norm       = 0.0001
  norm       = 5.3485
  norm       = 0.70936
  norm       = 1.10142
  norm       = 1.06159
  Normalizat = 0.927863
  Prefactor  = 1.01737
 **********
 **   18 **HESSE 
 **********

 FCN=   10891.90     FROM HESSE     STATUS=OK           280 CALLS     1940 TOTAL
                     EDM=   .19E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          15.642        9.9234        .10126E-03   -1.4917    
   2  norm          .21658        2.4709        .20917E-02   -1.5615    
   3  Prefactor     .62222        4.5146        .29573E-02   -1.5550    
   4  Prefactor     .93444        17.727        .45871E-02   -1.5515    
   5  Prefactor     .10000E-03    2.6613        .16500E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10001E-03    33.260        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    8.9301        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     6.7658        21.290        .15403E-03   -1.5188    
   9  Prefactor     .10000E-03    9.0725        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    10.874        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     11.290        9.2654        .11923E-03   -1.5036    
  12  norm          2.0988        4.8683        .28501E-03   -1.5418    
  13  norm          .10000E-03    1.0308        .10260E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          5.3485        4.5215        .17378E-03   -1.5245    
  15  norm          .70936        1.0551        .14596E-02   -1.5540    
  16  norm          1.1014        8.8462        .22564E-02   -1.5498    
  17  norm          1.0616        .98756        .96793E-04   -1.5502    
  18  Normalizat    .92786        .16720        .29254E-03   -.95488    
  19  Prefactor     1.0174        .10495        .17645E-03   -.92153    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.88225e-08
Minuit parameter uncertainties:
  1  9.92441
  2  1.46282
  3  3.35214
  4  8.14231
  5  1.86009e-06
  6  0.00114412
  7  1.05859e-05
  8  21.3142
  9  3.88251e-07
  10  1.63394e-06
  11  9.26655
  12  4.86926
  13  2.53871e-07
  14  4.5218
  15  1.05516
  16  6.24388
  17  0.987571
  18  0.167296
  19  0.104972
Done.

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

Extracting fit parameters...

4FGL J0937.9-1434
   Spectrum: PowerLaw
257    Prefactor:  1.000e-04  1.634e-06  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.017e+00  1.050e-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.279e-01  1.673e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/378489/likelihoodResults_645494401_645753601_4FGL_J0937.9-1434_daily_bin1567.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) = 10891.9042491
delta logL = -0.000438331982878

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 10891.9038104
delta logL = 4.0478153096e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10030E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    1.9297       1.0000          .0000       10.000    
     3 'Normalizat'    .92785       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0174       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5370E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   10891.90     FROM MIGRAD    STATUS=CONVERGED     97 CALLS      256 TOTAL
                     EDM=   .43E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10160E-03    58.902        .18142E-02** at limit **
   2  Index         1.8623        5.6526        .50000        .24414E-04
   3  Normalizat    .92786        .77638E-02    .29254E-03    .19431E-05
   4  Prefactor     1.0174        .49119E-02    .17645E-03   -.69586E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000101603
  Index      = 1.8623
  Normalizat = 0.927863
  Prefactor  = 1.01737
 **********
 **   18 **HESSE 
 **********

 FCN=   10891.90     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      285 TOTAL
                     EDM=   .20E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10160E-03    264.78        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         1.8623        8.2182        .50000       -.67839    
   3  Normalizat    .92786        .16789E-01    .11702E-04   -.95488    
   4  Prefactor     1.0174        .10622E-01    .70578E-05   -.92153    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.9516e-08
Minuit parameter uncertainties:
  1  0.0413825
  2  263.614
  3  0.0167894
  4  0.0106217
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/378489': 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) = 10891.90381
delta logL = 8.29793862067e-07

Extracting fit parameters...

4FGL J0937.9-1434
   Spectrum: PowerLaw
257    Prefactor:  1.016e-04  4.138e-02  1.000e-04  1.000e+04 ( 1.000e-14)
258        Index:  1.862e+00  2.636e+02  0.000e+00  1.000e+01 (-1.000e+00)
259        Scale:  3.063e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
534    Prefactor:  1.017e+00  1.062e-02  0.000e+00  1.000e+01 ( 1.000e+00)
535        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
536        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
533   Normalization:  9.279e-01  1.679e-02  1.000e-02  1.000e+01 ( 1.000e+00)


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

Creating a high resolution counts map...
INFO: Auto-setting vmin to -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/378489/cmap_HighResolution_645494401_645753601_4FGL_J0937.9-1434_daily_bin1567.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.39e-03', job_status='DONE', photon_flux_upper_limit='3.19e-08', time_completed='2021-08-31 19:54:22.805542', job_id='378489', GAL2='1.02', fit_tolerance='1e-08', EG2='0.93', EG='0.93', time_epoch_completed='1630464862.81', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.02', dlogl='8.30e-07', ts2='-0.00', photon_index_error='0.00', photon_index='1.98' WHERE bin_id='1567' AND source_name='4FGL J0937.9-1434' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Aug 31 19:54:22 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0221>
Subject: Job 378489: <4FGL_J0937.9-1434_daily_bin1567> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0937.9-1434_daily_bin1567 144.475 -14.5706 645494401 645753601 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 :                                   720.00 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             296.27 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   824 sec.
    Turnaround time :                            825 sec.

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

