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


Performing analysis on: 4FGL_J0937.9-1434_daily_bin1130
RA = 144.475, Dec = -14.5706
tmin = 532224001, tmax = 532483201
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='376819', job_status='RUN', time_executed='2021-08-31 19:36:07.573245', time_epoch_executed='1630463767.57' WHERE source_name='4FGL J0937.9-1434' and cadence='daily' and bin_id='1130'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/376819

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/376819/ft1_4FGL_J0937.9-1434_daily_bin1130.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/376819/ft2_4FGL_J0937.9-1434_daily_bin1130.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/376819/ft1_4FGL_J0937.9-1434_daily_bin1130.fits outfile=/scratch/kocevski/376819/ft1_filteredMKT_4FGL_J0937.9-1434_daily_bin1130.fits ra=144.475 dec=-14.5706 rad=12.0 tmin=532224001.0 tmax=532483201.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.13
user 2.70
sys 0.20

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/376819/ft1_filtered_4FGL_J0937.9-1434_daily_bin1130.fits" evtable="EVENTS" scfile=/scratch/kocevski/376819/ft2_4FGL_J0937.9-1434_daily_bin1130.fits sctable="SC_DATA" outfile=/scratch/kocevski/376819/ltcube_532224001_532483201_4FGL_J0937.9-1434_daily_bin1130.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/376819/ft2_4FGL_J0937.9-1434_daily_bin1130.fits
.....................!
real 10.12
user 9.74
sys 0.28

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/376819/ft1_filtered_4FGL_J0937.9-1434_daily_bin1130.fits evtable="EVENTS" scfile=/scratch/kocevski/376819/ft2_4FGL_J0937.9-1434_daily_bin1130.fits sctable="SC_DATA" expcube=/scratch/kocevski/376819/ltcube_532224001_532483201_4FGL_J0937.9-1434_daily_bin1130.fits outfile=/scratch/kocevski/376819/expmap_532224001_532483201_4FGL_J0937.9-1434_daily_bin1130.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/376819/ltcube_532224001_532483201_4FGL_J0937.9-1434_daily_bin1130.fits
.....................!
real 155.06
user 150.91
sys 3.78

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/376819/ft1_filtered_4FGL_J0937.9-1434_daily_bin1130.fits scfile=/scratch/kocevski/376819/ft2_4FGL_J0937.9-1434_daily_bin1130.fits outfile=/scratch/kocevski/376819/cmap_532224001_532483201_4FGL_J0937.9-1434_daily_bin1130.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.60
user 0.35
sys 0.12

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/376819/ft1_filtered_4FGL_J0937.9-1434_daily_bin1130.fits scfile=/scratch/kocevski/376819/ft2_4FGL_J0937.9-1434_daily_bin1130.fits outfile=/scratch/kocevski/376819/cmap_HighResolution_532224001_532483201_4FGL_J0937.9-1434_daily_bin1130.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.56
user 0.34
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/376819/ft1_filtered_4FGL_J0937.9-1434_daily_bin1130.fits evtable="EVENTS" scfile=/scratch/kocevski/376819/ft2_4FGL_J0937.9-1434_daily_bin1130.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/376819/Model_4FGL_J0937.9-1434_daily_bin1130.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/376819/ft1_filtered_4FGL_J0937.9-1434_daily_bin1130.fits.....................!
real 80.39
user 78.74
sys 1.06

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    5.7759       1.0000         .10000E-03   10000.    
     2 'norm      '    .10022E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .84845       1.0000         .10000E-03   10000.    
     4 'Prefactor '    3.7926       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    15.790       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .11790       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .29650E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10090E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    8.0319       1.0000         .10000E-03   10000.    
    11 'Prefactor '    8.7841       1.0000         .10000E-03   10000.    
    12 'norm      '    .10065E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    6.3681       1.0000         .10000E-03   10000.    
    15 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    2.3163       1.0000         .10000E-03   10000.    
    17 'norm      '    17.600       1.0000         .10000E-03   10000.    
    18 'Normalizat'    .81817       1.0000         .10000E-01   10.000    
    19 'Prefactor '    1.0314       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=   10140.55     FROM MIGRAD    STATUS=CONVERGED    425 CALLS     1967 TOTAL
                     EDM=   .76E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          5.7745        8.7080        .11863E-05   -.89493E-04
   2  norm          .10000E-03    1.1213        .98347E-07** at limit **
   3  Prefactor     .84573        2.9535       -.14739E-05   -.47637E-03
   4  Prefactor     3.7971        9.6723       -.56400E-05   -.52963E-04
   5  Prefactor     .10000E-03    1.9883       -.99281E-07** at limit **
   6  Prefactor     15.772        17.187        .10240E-04   -.12780E-03
   7  Prefactor     .10414E-03    25.041        .13365E-05** at limit **
   8  Prefactor     .10000E-03    76.897       -.29033E-04** at limit **
   9  Prefactor     .10000E-03    15.117       -.43945E-06** at limit **
  10  Prefactor     8.0367        18.545       -.14004E-04    .20259E-03
  11  Prefactor     8.7844        11.985       -.56342E-05    .18165E-03
  12  norm          .10000E-03    6.1234        .62021E-06** at limit **
  13  norm          .10000E-03    .95133        .16240E-06** at limit **
  14  norm          6.3690        5.7573       -.20345E-05    .23810E-03
  15  norm          .10000E-03    .41411       -.18307E-07** at limit **
  16  norm          2.3205        6.7238       -.75926E-06   -.45493E-03
  17  norm          17.599        2.0778       -.60419E-08    .88613E-04
  18  Normalizat    .81830        .15737       -.51745E-06    .31264E-03
  19  Prefactor     1.0315        .96491E-01    .13462E-05    .18703E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 5.77446
  norm       = 0.0001
  Prefactor  = 0.845726
  Prefactor  = 3.79707
  Prefactor  = 0.0001
  Prefactor  = 15.7717
  Prefactor  = 0.00010414
  Prefactor  = 0.000100002
  Prefactor  = 0.0001
  Prefactor  = 8.03671
  Prefactor  = 8.78444
  norm       = 0.000100002
  norm       = 0.0001
  norm       = 6.36895
  norm       = 0.0001
  norm       = 2.32048
  norm       = 17.5994
  Normalizat = 0.818296
  Prefactor  = 1.03147
 **********
 **   18 **HESSE 
 **********

 FCN=   10140.55     FROM HESSE     STATUS=OK           280 CALLS     2247 TOTAL
                     EDM=   .15E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          5.7745        8.6620        .16712E-03   -1.5227    
   2  norm          .10000E-03    1.1506        .20791E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .84573        5.0872        .30583E-02   -1.5524    
   4  Prefactor     3.7971        9.6758        .20728E-03   -1.5318    
   5  Prefactor     .10000E-03    1.9991        .13866E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     15.772        17.252        .10079E-03   -1.4913    
   7  Prefactor     .10414E-03    25.454        .12398       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    79.533        .21395E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    15.164        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     8.0367        18.470        .14147E-03   -1.5141    
  11  Prefactor     8.7844        12.001        .13524E-03   -1.5115    
  12  norm          .10000E-03    6.3543        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .10000E-03    .95554        .95889E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          6.3690        5.7529        .15905E-03   -1.5203    
  15  norm          .10000E-03    .41826        .63265E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          2.3205        6.7341        .26954E-03   -1.5403    
  17  norm          17.599        2.0776        .48034E-04   -1.4869    
  18  Normalizat    .81830        .18137        .31966E-03   -.99394    
  19  Prefactor     1.0315        .11172        .18268E-03   -.91688    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.50492e-09
Minuit parameter uncertainties:
  1  8.66392
  2  7.53197e-06
  3  4.14873
  4  9.67973
  5  2.08447e-06
  6  17.2572
  7  0.0205407
  8  0.000742412
  9  5.39669e-07
  10  18.4829
  11  12.0042
  12  0.000219716
  13  3.4673e-06
  14  5.7534
  15  5.59511e-07
  16  6.73628
  17  2.07764
  18  0.181504
  19  0.111748
Done.

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

Extracting fit parameters...

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

GAL_V02
   Spectrum: PowerLaw
534    Prefactor:  1.031e+00  1.117e-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.183e-01  1.815e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.24
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/376819/likelihoodResults_532224001_532483201_4FGL_J0937.9-1434_daily_bin1130.txt

Performing a free index iterative likelihood fit...

Freezing all point sources, except source of interest...

Done.

Freeing candidate source...
Done.

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 10139.534091
delta logL = 1.01638556019

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 10139.4973325
delta logL = 1.05314406246

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    1.0245       1.0000         .10000E-03   10000.    
     2 'Index     '    3.4503       1.0000          .0000       10.000    
     3 'Normalizat'    .75710       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0506       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=   10139.50     FROM MIGRAD    STATUS=CONVERGED     57 CALLS      276 TOTAL
                     EDM=   .26E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     1.0181        10.688        .12668E-01    .12518E-02
   2  Index         3.4520        1.7576        .79958E-01    .34966E-03
   3  Normalizat    .75716        .38777E-01    .74847E-01    .34894E-04
   4  Prefactor     1.0506        .24283E-01    .39874E-01   -.43236E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.01813
  Index      = 3.45203
  Normalizat = 0.757163
  Prefactor  = 1.05061
 **********
 **   18 **HESSE 
 **********

 FCN=   10139.50     FROM HESSE     STATUS=NOT POSDEF    35 CALLS      311 TOTAL
                     EDM=   .30E-06    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     1.0181        26.665        .73959E-03   -1.5506    
   2  Index         3.4520        3.2719        .42789E-02   -.31477    
   3  Normalizat    .75716        .14418        .33130E-03   -1.0168    
   4  Prefactor     1.0506        .86985E-01    .18112E-03   -.91061    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 3.00083e-07
Minuit parameter uncertainties:
  1  10.4255
  2  3.60847
  3  0.144249
  4  0.0869964
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/376819': 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) = 10139.4973293
delta logL = 1.05314724409

Extracting fit parameters...

4FGL J0937.9-1434
   Spectrum: PowerLaw
257    Prefactor:  1.018e+00  1.043e+01  1.000e-04  1.000e+04 ( 1.000e-14)
258        Index:  3.452e+00  3.608e+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.051e+00  8.700e-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:  7.572e-01  1.442e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.45
Ra Dec: 144.475 -14.571
Photon Index (Free Index): 3.45 +/- 3.61
Photon Flux (Free Index): 5.62e-08 +/- 5.46e-08
Energy Flux (Free Index): 9.47e-06 +/- 7.53e-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/376819/cmap_HighResolution_532224001_532483201_4FGL_J0937.9-1434_daily_bin1130.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.94e-03', comment='SUCCESS', energy_flux2='9.47e-06', dlogl='1.05e+00', photon_flux2='5.62e-08', job_status='DONE', time_completed='2021-08-31 19:46:28.541255', photon_index_error2='3.61', photon_index2='3.45', ts='0.24', fit_tolerance='1e-08', GAL='1.03', photon_index_error='0.00', photon_flux_upper_limit='5.26e-08', energy_flux_error2='7.53e-06', EG='0.82', time_epoch_completed='1630464388.54', return_code='0', job_id='376819', GAL2='1.05', EG2='0.76', return_code2='102', photon_flux_error2='5.46e-08', ts2='2.45', photon_index='1.98' WHERE bin_id='1130' AND source_name='4FGL J0937.9-1434' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Aug 31 19:46:28 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0033>
Subject: Job 376819: <4FGL_J0937.9-1434_daily_bin1130> in cluster <slac> Done

Job <4FGL_J0937.9-1434_daily_bin1130> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Tue Aug 31 19:35:56 2021
Job was executed on host(s) <bullet0033>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Aug 31 19:35:58 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:35:58 2021
Terminated at Tue Aug 31 19:46:30 2021
Results reported at Tue Aug 31 19:46:30 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0937.9-1434_daily_bin1130 144.475 -14.5706 532224001 532483201 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 :                                   615.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             354.30 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   630 sec.
    Turnaround time :                            634 sec.

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

