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


Performing analysis on: 4FGL_J0937.9-1434_daily_bin1252
RA = 144.475, Dec = -14.5706
tmin = 563846401, tmax = 564105601
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='376989', job_status='RUN', time_executed='2021-08-31 19:37:38.463628', time_epoch_executed='1630463858.46' WHERE source_name='4FGL J0937.9-1434' and cadence='daily' and bin_id='1252'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/376989

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/376989/ft1_4FGL_J0937.9-1434_daily_bin1252.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/376989/ft2_4FGL_J0937.9-1434_daily_bin1252.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/376989/ft1_4FGL_J0937.9-1434_daily_bin1252.fits outfile=/scratch/kocevski/376989/ft1_filteredMKT_4FGL_J0937.9-1434_daily_bin1252.fits ra=144.475 dec=-14.5706 rad=12.0 tmin=563846401.0 tmax=564105601.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.86
user 2.63
sys 0.19

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/376989/ft1_filtered_4FGL_J0937.9-1434_daily_bin1252.fits" evtable="EVENTS" scfile=/scratch/kocevski/376989/ft2_4FGL_J0937.9-1434_daily_bin1252.fits sctable="SC_DATA" outfile=/scratch/kocevski/376989/ltcube_563846401_564105601_4FGL_J0937.9-1434_daily_bin1252.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/376989/ft2_4FGL_J0937.9-1434_daily_bin1252.fits
.....................!
real 13.25
user 12.91
sys 0.27

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/376989/ft1_filtered_4FGL_J0937.9-1434_daily_bin1252.fits evtable="EVENTS" scfile=/scratch/kocevski/376989/ft2_4FGL_J0937.9-1434_daily_bin1252.fits sctable="SC_DATA" expcube=/scratch/kocevski/376989/ltcube_563846401_564105601_4FGL_J0937.9-1434_daily_bin1252.fits outfile=/scratch/kocevski/376989/expmap_563846401_564105601_4FGL_J0937.9-1434_daily_bin1252.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/376989/ltcube_563846401_564105601_4FGL_J0937.9-1434_daily_bin1252.fits
.....................!
real 189.92
user 185.54
sys 3.87

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/376989/ft1_filtered_4FGL_J0937.9-1434_daily_bin1252.fits scfile=/scratch/kocevski/376989/ft2_4FGL_J0937.9-1434_daily_bin1252.fits outfile=/scratch/kocevski/376989/cmap_563846401_564105601_4FGL_J0937.9-1434_daily_bin1252.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.53
user 0.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/376989/ft1_filtered_4FGL_J0937.9-1434_daily_bin1252.fits scfile=/scratch/kocevski/376989/ft2_4FGL_J0937.9-1434_daily_bin1252.fits outfile=/scratch/kocevski/376989/cmap_HighResolution_563846401_564105601_4FGL_J0937.9-1434_daily_bin1252.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.57
user 0.40
sys 0.14

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10008E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    1.8102       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .46297E-02   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .58405       1.0000         .10000E-03   10000.    
     6 'Prefactor '    4.9955       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    15.261       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10532E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    5.1144       1.0000         .10000E-03   10000.    
    12 'norm      '    3.4053       1.0000         .10000E-03   10000.    
    13 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    5.7832       1.0000         .10000E-03   10000.    
    15 'norm      '    .57247       1.0000         .10000E-03   10000.    
    16 'norm      '    .10050E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .75931       1.0000         .10000E-03   10000.    
    18 'Normalizat'    .93867       1.0000         .10000E-01   10.000    
    19 'Prefactor '    1.0814       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=   11401.02     FROM MIGRAD    STATUS=CONVERGED    405 CALLS     1681 TOTAL
                     EDM=   .13E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    4.8812        .54483E-07** at limit **
   2  norm          1.8099        1.7473        .48009E-07    .82198E-04
   3  Prefactor     .10000E-03    1.5217        .32146E-07** at limit **
   4  Prefactor     .10000E-03    2.4802        .96013E-08** at limit **
   5  Prefactor     .58341        3.2354       -.91663E-06    .40417E-03
   6  Prefactor     4.9955        7.4671        .12446E-06   -.60956E-04
   7  Prefactor     .10000E-03    7.7658        .46355E-07** at limit **
   8  Prefactor     .10000E-03    5.2748       -.46942E-07** at limit **
   9  Prefactor     15.260        19.038       -.28420E-06   -.44104E-05
  10  Prefactor     .10000E-03    69.475       -.79202E-06** at limit **
  11  Prefactor     5.1088        11.360        .38684E-05    .10493E-03
  12  norm          3.4049        1.7625        .31227E-07   -.38566E-03
  13  norm          .10000E-03    .61083        .26713E-08** at limit **
  14  norm          5.7827        5.2176       -.11556E-07    .19820E-04
  15  norm          .57202        1.0398        .32225E-07    .22191E-04
  16  norm          .10000E-03    8.1655       -.54288E-07** at limit **
  17  norm          .75906        .91931        .15315E-07   -.44081E-04
  18  Normalizat    .93856        .14569       -.42083E-06    .71066E-04
  19  Prefactor     1.0815        .89980E-01   -.29306E-07    .39728E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  norm       = 1.80994
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.583411
  Prefactor  = 4.99549
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 15.26
  Prefactor  = 0.0001
  Prefactor  = 5.10878
  norm       = 3.4049
  norm       = 0.0001
  norm       = 5.78267
  norm       = 0.572023
  norm       = 0.0001
  norm       = 0.759065
  Normalizat = 0.938555
  Prefactor  = 1.08151
 **********
 **   18 **HESSE 
 **********

 FCN=   11401.02     FROM HESSE     STATUS=OK           276 CALLS     1957 TOTAL
                     EDM=   .59E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    4.9990        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          1.8099        1.7301        .13452E-03   -1.5439    
   3  Prefactor     .10000E-03    20.333        .25245E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    2.4886        .16419E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .58341        6.5420        .34710E-02   -1.5555    
   6  Prefactor     4.9955        7.6718        .89962E-03   -1.5261    
   7  Prefactor     .10000E-03    7.7754        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    5.2761        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     15.260        19.082        .10252E-03   -1.4926    
  10  Prefactor     .10000E-03    71.170        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     5.1088        11.577        .17778E-03   -1.5256    
  12  norm          3.4049        5.5102        .10962E-02   -1.5339    
  13  norm          .10000E-03    .61324        .81487E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          5.7827        5.2230        .83506E-03   -1.5227    
  15  norm          .57202        .90835        .14253E-02   -1.5557    
  16  norm          .10000E-03    8.3934        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .75906        .82768        .10774E-02   -1.5534    
  18  Normalizat    .93856        .16886        .29941E-03   -.95118    
  19  Prefactor     1.0815        .10392        .17747E-03   -.90060    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.93287e-09
Minuit parameter uncertainties:
  1  3.58141e-06
  2  1.73018
  3  8.15645e-05
  4  1.48712e-06
  5  3.90746
  6  7.67327
  7  4.40936e-06
  8  4.75575e-08
  9  19.0894
  10  0.00026144
  11  11.5819
  12  5.51098
  13  2.37062e-07
  14  5.22337
  15  0.908371
  16  1.53026e-06
  17  0.827697
  18  0.168959
  19  0.103935
Done.

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

Extracting fit parameters...

4FGL J0937.9-1434
   Spectrum: PowerLaw
257    Prefactor:  1.000e-04  2.614e-04  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.082e+00  1.039e-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.386e-01  1.690e-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.05e-08 ph cm-2 s-1
Energy Flux Upper Limit: 3.78e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/376989/likelihoodResults_563846401_564105601_4FGL_J0937.9-1434_daily_bin1252.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) = 11401.0162307
delta logL = -6.68670509185e-05

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 11399.7836405
delta logL = 1.2325233901

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .54454       1.0000         .10000E-03   10000.    
     2 'Index     '    3.7084       1.0000          .0000       10.000    
     3 'Normalizat'    .86124       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1054       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=   11399.78     FROM MIGRAD    STATUS=CONVERGED     58 CALLS      312 TOTAL
                     EDM=   .98E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .53538        4.1356        .11451E-01    .26701E-02
   2  Index         3.7139        1.4483        .74682E-01    .45767E-03
   3  Normalizat    .86149        .32944E-01    .70286E-01    .52708E-04
   4  Prefactor     1.1054        .20815E-01    .37385E-01    .12754E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.535385
  Index      = 3.71389
  Normalizat = 0.861492
  Prefactor  = 1.10537
 **********
 **   18 **HESSE 
 **********

 FCN=   11399.78     FROM HESSE     STATUS=NOT POSDEF    35 CALLS      347 TOTAL
                     EDM=   .27E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .53538        11.695        .52280E-03   -1.5562    
   2  Index         3.7139        2.9168        .39116E-02   -.26015    
   3  Normalizat    .86149        .12774        .31099E-03   -.97827    
   4  Prefactor     1.1054        .78742E-01    .17563E-03   -.89295    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 2.71816e-10
Minuit parameter uncertainties:
  1  5.00527
  2  3.13151
  3  0.127785
  4  0.0787502
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/376989': 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) = 11399.7836238
delta logL = 1.23254010946

Extracting fit parameters...

4FGL J0937.9-1434
   Spectrum: PowerLaw
257    Prefactor:  5.354e-01  5.005e+00  1.000e-04  1.000e+04 ( 1.000e-14)
258        Index:  3.714e+00  3.132e+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.105e+00  7.875e-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:  8.615e-01  1.278e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.63
Ra Dec: 144.475 -14.571
Photon Index (Free Index): 3.71 +/- 3.13
Photon Flux (Free Index): 6.54e-08 +/- 4.53e-08
Energy Flux (Free Index): 1.03e-05 +/- 8.12e-06

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/376989/cmap_HighResolution_563846401_564105601_4FGL_J0937.9-1434_daily_bin1252.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.78e-03', comment='SUCCESS', energy_flux2='1.03e-05', dlogl='1.23e+00', photon_flux2='6.54e-08', job_status='DONE', time_completed='2021-08-31 19:50:26.403086', photon_index_error2='3.13', photon_index2='3.71', ts='-0.00', fit_tolerance='1e-08', GAL='1.08', photon_index_error='0.00', photon_flux_upper_limit='5.05e-08', energy_flux_error2='8.12e-06', EG='0.94', time_epoch_completed='1630464626.4', return_code='0', job_id='376989', GAL2='1.11', EG2='0.86', return_code2='102', photon_flux_error2='4.53e-08', ts2='2.63', photon_index='1.98' WHERE bin_id='1252' AND source_name='4FGL J0937.9-1434' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Aug 31 19:50:26 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0009>
Subject: Job 376989: <4FGL_J0937.9-1434_daily_bin1252> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0937.9-1434_daily_bin1252 144.475 -14.5706 563846401 564105601 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 :                                   764.09 sec.
    Max Memory :                                 1204 MB
    Average Memory :                             366.85 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   851 sec.
    Turnaround time :                            853 sec.

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

