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


Performing analysis on: 4FGL_J0937.9-1434_daily_bin1336
RA = 144.475, Dec = -14.5706
tmin = 585619201, tmax = 585878401
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='377127', job_status='RUN', time_executed='2021-08-31 19:37:38.858275', time_epoch_executed='1630463858.86' WHERE source_name='4FGL J0937.9-1434' and cadence='daily' and bin_id='1336'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/377127

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/377127/ft1_4FGL_J0937.9-1434_daily_bin1336.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/377127/ft2_4FGL_J0937.9-1434_daily_bin1336.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/377127/ft1_4FGL_J0937.9-1434_daily_bin1336.fits outfile=/scratch/kocevski/377127/ft1_filteredMKT_4FGL_J0937.9-1434_daily_bin1336.fits ra=144.475 dec=-14.5706 rad=12.0 tmin=585619201.0 tmax=585878401.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.80
user 2.49
sys 0.20

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/377127/ft1_filtered_4FGL_J0937.9-1434_daily_bin1336.fits" evtable="EVENTS" scfile=/scratch/kocevski/377127/ft2_4FGL_J0937.9-1434_daily_bin1336.fits sctable="SC_DATA" outfile=/scratch/kocevski/377127/ltcube_585619201_585878401_4FGL_J0937.9-1434_daily_bin1336.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/377127/ft2_4FGL_J0937.9-1434_daily_bin1336.fits
.....................!
real 12.97
user 12.59
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/377127/ft1_filtered_4FGL_J0937.9-1434_daily_bin1336.fits evtable="EVENTS" scfile=/scratch/kocevski/377127/ft2_4FGL_J0937.9-1434_daily_bin1336.fits sctable="SC_DATA" expcube=/scratch/kocevski/377127/ltcube_585619201_585878401_4FGL_J0937.9-1434_daily_bin1336.fits outfile=/scratch/kocevski/377127/expmap_585619201_585878401_4FGL_J0937.9-1434_daily_bin1336.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/377127/ltcube_585619201_585878401_4FGL_J0937.9-1434_daily_bin1336.fits
.....................!
real 193.89
user 188.61
sys 4.77

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/377127/ft1_filtered_4FGL_J0937.9-1434_daily_bin1336.fits scfile=/scratch/kocevski/377127/ft2_4FGL_J0937.9-1434_daily_bin1336.fits outfile=/scratch/kocevski/377127/cmap_585619201_585878401_4FGL_J0937.9-1434_daily_bin1336.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.38
sys 0.14

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

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

This is gtbin version HEAD
real 0.54
user 0.38
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/377127/ft1_filtered_4FGL_J0937.9-1434_daily_bin1336.fits evtable="EVENTS" scfile=/scratch/kocevski/377127/ft2_4FGL_J0937.9-1434_daily_bin1336.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/377127/Model_4FGL_J0937.9-1434_daily_bin1336.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/377127/ft1_filtered_4FGL_J0937.9-1434_daily_bin1336.fits.....................!
real 81.44
user 80.05
sys 1.13

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    10.501       1.0000         .10000E-03   10000.    
     2 'norm      '    2.1898       1.0000         .10000E-03   10000.    
     3 'Prefactor '    4.9695       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10028E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    28.991       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .24912E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10248E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    16.363       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10014E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10048E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    2.4449       1.0000         .10000E-03   10000.    
    15 'norm      '    .67406       1.0000         .10000E-03   10000.    
    16 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    3.1374       1.0000         .10000E-03   10000.    
    18 'Normalizat'    .54606       1.0000         .10000E-01   10.000    
    19 'Prefactor '    1.3696       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=   8471.662     FROM MIGRAD    STATUS=CONVERGED    391 CALLS     2127 TOTAL
                     EDM=   .17E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY= 20.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          10.502        13.785        .27232E-05    .28012E-04
   2  norm          2.1901        2.1409       -.22877E-06   -.55837E-03
   3  Prefactor     4.9714        5.2214       -.12947E-06   -.48491E-03
   4  Prefactor     .10000E-03    3.6974       -.56679E-06** at limit **
   5  Prefactor     .10000E-03    4.7892        .13235E-06** at limit **
   6  Prefactor     28.993        26.332       -.73897E-06    .12056E-03
   7  Prefactor     .10005E-03    563.23       -.14904E-03** at limit **
   8  Prefactor     .10005E-03    98.817        .38345E-05** at limit **
   9  Prefactor     16.362        21.950        .44102E-06    .42973E-04
  10  Prefactor     .10000E-03    10.621       -.94450E-07** at limit **
  11  Prefactor     .10000E-03    5.9410       -.76914E-07** at limit **
  12  norm          .10000E-03    1.2027       -.15121E-06** at limit **
  13  norm          .10000E-03    1.3171        .27628E-06** at limit **
  14  norm          2.4451        2.6608        .40470E-06   -.57348E-03
  15  norm          .67466        1.7812        .46200E-06    .72129E-03
  16  norm          .10000E-03    2.3744        .36114E-06** at limit **
  17  norm          3.1378        1.4497        .37522E-07    .15906E-03
  18  Normalizat    .54598        .20279       -.12388E-05   -.42725E-03
  19  Prefactor     1.3696        .12260       -.96529E-06   -.15824E-02
                               ERR DEF=  .500    
Final values: 
  norm       = 10.5021
  norm       = 2.19011
  Prefactor  = 4.97145
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 28.9929
  Prefactor  = 0.000100046
  Prefactor  = 0.000100052
  Prefactor  = 16.3623
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  norm       = 0.0001
  norm       = 0.0001
  norm       = 2.44505
  norm       = 0.674662
  norm       = 0.0001
  norm       = 3.13775
  Normalizat = 0.545984
  Prefactor  = 1.36962
 **********
 **   18 **HESSE 
 **********

 FCN=   8471.662     FROM HESSE     STATUS=OK           274 CALLS     2401 TOTAL
                     EDM=   .31E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          10.502        13.820        .12364E-03   -1.5060    
   2  norm          2.1901        2.1511        .12837E-03   -1.5412    
   3  Prefactor     4.9714        6.0081        .90203E-03   -1.5262    
   4  Prefactor     .10000E-03    3.7074        .17298E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    4.8098        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     28.993        26.285        .74408E-04   -1.4631    
   7  Prefactor     .10005E-03    30.311        .12822       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10005E-03    100.53        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     16.362        21.954        .99011E-04   -1.4899    
  10  Prefactor     .10000E-03    10.632        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    5.9618        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          .10000E-03    1.2020        .98505E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .10000E-03    1.3270        .10319E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          2.4451        5.0091        .13082E-02   -1.5395    
  15  norm          .67466        1.7761        .19283E-03   -1.5544    
  16  norm          .10000E-03    2.3807        .13857E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          3.1378        1.4444        .70989E-04   -1.5354    
  18  Normalizat    .54598        .21604        .41853E-03   -1.1033    
  19  Prefactor     1.3696        .13399        .17226E-03   -.81260    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.07205e-09
Minuit parameter uncertainties:
  1  13.8246
  2  2.15121
  3  6.00882
  4  7.55997e-05
  5  7.56062e-05
  6  26.2957
  7  0.00236266
  8  0.00456172
  9  21.9648
  10  0.000113338
  11  0.000127246
  12  1.81285e-05
  13  2.93361e-05
  14  5.01
  15  1.77623
  16  2.91647e-05
  17  1.44444
  18  0.216375
  19  0.134019
Done.

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

Extracting fit parameters...

4FGL J0937.9-1434
   Spectrum: PowerLaw
257    Prefactor:  1.000e-04  1.133e-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.370e+00  1.340e-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:  5.460e-01  2.164e-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: 4.12e-08 ph cm-2 s-1
Energy Flux Upper Limit: 3.09e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/377127/likelihoodResults_585619201_585878401_4FGL_J0937.9-1434_daily_bin1336.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) = 8471.66292897
delta logL = -0.000444138446255

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 8471.6624849
delta logL = -6.9276211434e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10882E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    1.9368       1.0000          .0000       10.000    
     3 'Normalizat'    .54592       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.3697       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.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   8471.662     FROM MIGRAD    STATUS=FAILED        94 CALLS      247 TOTAL
                     EDM=   .27E-06    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10001E-03    805.03        .18142E-02** at limit **
   2  Index         1.8890        5.0447        .50000        .31888E-04
   3  Normalizat    .54598        .40891E-01    .41853E-03   -.17276E-04
   4  Prefactor     1.3696        .25813E-01    .17226E-03   -.18479E-05
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   8471.662     FROM SIMPLEX   STATUS=UNCHANGED    172 CALLS      419 TOTAL
                     EDM=   .12E-04    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10001E-03    805.03        .60450E-03** at limit **
   2  Index         1.8890        5.0447        .35466E-05    .31888E-04
   3  Normalizat    .54598        .40891E-01    .12122E-06   -.17276E-04
   4  Prefactor     1.3696        .25813E-01    .32226E-07   -.18479E-05
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   8471.662     FROM MIGRAD    STATUS=CONVERGED     34 CALLS      453 TOTAL
                     EDM=   .74E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10001E-03    6211.1        .36285E-03** at limit **
   2  Index         1.8887        5.2603        .50000        .31883E-04
   3  Normalizat    .54598        .11352        .16741E-04   -.16570E-04
   4  Prefactor     1.3696        .71680E-01    .68903E-05     .0000    
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100013
  Index      = 1.88873
  Normalizat = 0.545981
  Prefactor  = 1.36962
 **********
 **   18 **HESSE 
 **********

 FCN=   8471.662     FROM HESSE     STATUS=OK            29 CALLS      482 TOTAL
                     EDM=   .16E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10001E-03    13.540        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         1.8887        5.9208        .50000       -.67162    
   3  Normalizat    .54598        .20781        .33482E-05   -1.1033    
   4  Prefactor     1.3696        .13138        .68903E-05   -.81260    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.61395e-09
Minuit parameter uncertainties:
  1  0.000838451
  2  4.05705
  3  0.208108
  4  0.131415
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/377127': 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) = 8471.66248407
delta logL = 7.5546449807e-07

Extracting fit parameters...

4FGL J0937.9-1434
   Spectrum: PowerLaw
257    Prefactor:  1.000e-04  8.385e-04  1.000e-04  1.000e+04 ( 1.000e-14)
258        Index:  1.889e+00  4.057e+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.370e+00  1.314e-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:  5.460e-01  2.081e-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/377127/cmap_HighResolution_585619201_585878401_4FGL_J0937.9-1434_daily_bin1336.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.09e-03', job_status='DONE', photon_flux_upper_limit='4.12e-08', time_completed='2021-08-31 19:50:15.326454', job_id='377127', GAL2='1.37', fit_tolerance='1e-08', EG2='0.55', EG='0.55', time_epoch_completed='1630464615.33', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.37', dlogl='7.55e-07', ts2='-0.00', photon_index_error='0.00', photon_index='1.98' WHERE bin_id='1336' AND source_name='4FGL J0937.9-1434' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Aug 31 19:50:15 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0190>
Subject: Job 377127: <4FGL_J0937.9-1434_daily_bin1336> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0937.9-1434_daily_bin1336 144.475 -14.5706 585619201 585878401 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 :                                   683.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             322.35 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   829 sec.
    Turnaround time :                            831 sec.

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

