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


Performing analysis on: 4FGL_J0937.9-1434_daily_bin1344
RA = 144.475, Dec = -14.5706
tmin = 587692801, tmax = 587952001
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='377140', job_status='RUN', time_executed='2021-08-31 19:38:19.376775', time_epoch_executed='1630463899.38' WHERE source_name='4FGL J0937.9-1434' and cadence='daily' and bin_id='1344'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/377140

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/377140/ft1_4FGL_J0937.9-1434_daily_bin1344.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/377140/ft2_4FGL_J0937.9-1434_daily_bin1344.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/377140/ft1_4FGL_J0937.9-1434_daily_bin1344.fits outfile=/scratch/kocevski/377140/ft1_filteredMKT_4FGL_J0937.9-1434_daily_bin1344.fits ra=144.475 dec=-14.5706 rad=12.0 tmin=587692801.0 tmax=587952001.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.52
user 3.27
sys 0.19

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/377140/ft1_filtered_4FGL_J0937.9-1434_daily_bin1344.fits" evtable="EVENTS" scfile=/scratch/kocevski/377140/ft2_4FGL_J0937.9-1434_daily_bin1344.fits sctable="SC_DATA" outfile=/scratch/kocevski/377140/ltcube_587692801_587952001_4FGL_J0937.9-1434_daily_bin1344.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/377140/ft2_4FGL_J0937.9-1434_daily_bin1344.fits
.....................!
real 12.67
user 11.89
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/377140/ft1_filtered_4FGL_J0937.9-1434_daily_bin1344.fits evtable="EVENTS" scfile=/scratch/kocevski/377140/ft2_4FGL_J0937.9-1434_daily_bin1344.fits sctable="SC_DATA" expcube=/scratch/kocevski/377140/ltcube_587692801_587952001_4FGL_J0937.9-1434_daily_bin1344.fits outfile=/scratch/kocevski/377140/expmap_587692801_587952001_4FGL_J0937.9-1434_daily_bin1344.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/377140/ltcube_587692801_587952001_4FGL_J0937.9-1434_daily_bin1344.fits
.....................!
real 191.09
user 185.88
sys 4.37

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/377140/ft1_filtered_4FGL_J0937.9-1434_daily_bin1344.fits scfile=/scratch/kocevski/377140/ft2_4FGL_J0937.9-1434_daily_bin1344.fits outfile=/scratch/kocevski/377140/cmap_587692801_587952001_4FGL_J0937.9-1434_daily_bin1344.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 1.01
user 0.40
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/377140/ft1_filtered_4FGL_J0937.9-1434_daily_bin1344.fits scfile=/scratch/kocevski/377140/ft2_4FGL_J0937.9-1434_daily_bin1344.fits outfile=/scratch/kocevski/377140/cmap_HighResolution_587692801_587952001_4FGL_J0937.9-1434_daily_bin1344.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.84
user 0.39
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    20.854       1.0000         .10000E-03   10000.    
     2 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .17509E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .60478E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    6.2305       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .15502E-02   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .11494E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .13256E-02   1.0000         .10000E-03   10000.    
     9 'Prefactor '    14.466       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .11834E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    15.735       1.0000         .10000E-03   10000.    
    12 'norm      '    4.4959       1.0000         .10000E-03   10000.    
    13 'norm      '    .77511       1.0000         .10000E-03   10000.    
    14 'norm      '    12.490       1.0000         .10000E-03   10000.    
    15 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    3.0756       1.0000         .10000E-03   10000.    
    17 'norm      '    4.0903       1.0000         .10000E-03   10000.    
    18 'Normalizat'    1.0546       1.0000         .10000E-01   10.000    
    19 'Prefactor '    .90622       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=   7940.098     FROM MIGRAD    STATUS=CONVERGED    388 CALLS     1654 TOTAL
                     EDM=   .21E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          20.837        10.437        .63814E-07   -.56086E-07
   2  norm          .10000E-03    1.5703       -.66585E-07** at limit **
   3  Prefactor     .10000E-03    2.7730       -.38671E-06** at limit **
   4  Prefactor     .10000E-03    7.7044        .40533E-06** at limit **
   5  Prefactor     6.2178        5.0177       -.14854E-06    .29027E-04
   6  Prefactor     .10000E-03    8.5872        .55071E-06** at limit **
   7  Prefactor     .10000E-03    29.582       -.80469E-06** at limit **
   8  Prefactor     .10000E-03    33.708       -.42165E-06** at limit **
   9  Prefactor     14.506        25.171       -.54413E-05    .48497E-04
  10  Prefactor     .10000E-03    6.9613       -.90969E-07** at limit **
  11  Prefactor     15.781        10.857       -.25992E-07    .15883E-04
  12  norm          4.5111        5.5538        .17492E-05    .74695E-04
  13  norm          .77443        2.8378        .84154E-06    .10272E-03
  14  norm          12.469        7.7539        .58605E-06   -.48282E-04
  15  norm          .10000E-03    .73000       -.14869E-07** at limit **
  16  norm          3.0778        9.1620        .40763E-05    .26163E-04
  17  norm          4.0900        1.3378        .22409E-07    .38114E-04
  18  Normalizat    1.0544        .18005       -.21331E-05    .56887E-04
  19  Prefactor     .90624        .10487        .12108E-05    .11143E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 20.8368
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 6.21777
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 14.506
  Prefactor  = 0.0001
  Prefactor  = 15.7806
  norm       = 4.51106
  norm       = 0.774428
  norm       = 12.4691
  norm       = 0.0001
  norm       = 3.07776
  norm       = 4.09005
  Normalizat = 1.05445
  Prefactor  = 0.906237
 **********
 **   18 **HESSE 
 **********

 FCN=   7940.098     FROM HESSE     STATUS=OK           272 CALLS     1926 TOTAL
                     EDM=   .58E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          20.837        10.428        .87708E-04   -1.4795    
   2  norm          .10000E-03    1.6007        .10893E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    6.7025        .28538E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    7.8375        .21060E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     6.2178        5.0191        .16082E-03   -1.5209    
   6  Prefactor     .10000E-03    38.467        .50426E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    29.792        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    33.961        .20565E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     14.506        25.293        .10531E-03   -1.4946    
  10  Prefactor     .10000E-03    6.9627        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     15.781        10.858        .10097E-03   -1.4913    
  12  norm          4.5111        5.5524        .94943E-03   -1.5283    
  13  norm          .77443        2.8258        .27677E-03   -1.5532    
  14  norm          12.469        7.7534        .11334E-03   -1.5002    
  15  norm          .10000E-03    .76316        .14863E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          3.0778        9.1652        .11564E-02   -1.5357    
  17  norm          4.0900        1.3377        .56754E-04   -1.5303    
  18  Normalizat    1.0544        .20671        .28448E-03   -.91228    
  19  Prefactor     .90624        .12218        .18612E-03   -.95923    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.78982e-11
Minuit parameter uncertainties:
  1  10.4285
  2  1.81133e-06
  3  6.60571e-05
  4  2.03401e-05
  5  5.01943
  6  1.45101e-05
  7  2.99188e-05
  8  1.82755e-05
  9  25.3115
  10  1.886e-06
  11  10.859
  12  5.55303
  13  2.82626
  14  7.75398
  15  1.036e-06
  16  9.16933
  17  1.33767
  18  0.206866
  19  0.12222
Done.

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

Extracting fit parameters...

4FGL J0937.9-1434
   Spectrum: PowerLaw
257    Prefactor:  1.000e-04  1.886e-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:  9.062e-01  1.222e-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:  1.054e+00  2.069e-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.41e-08 ph cm-2 s-1
Energy Flux Upper Limit: 2.56e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/377140/likelihoodResults_587692801_587952001_4FGL_J0937.9-1434_daily_bin1344.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) = 7940.09852863
delta logL = -0.000682770267304

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 7940.09784556
delta logL = 2.9487273423e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10045E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    1.9447       1.0000          .0000       10.000    
     3 'Normalizat'    1.0545       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .90622       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=   7940.098     FROM MIGRAD    STATUS=CONVERGED     90 CALLS      248 TOTAL
                     EDM=   .10E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10182E-03    48.093        .18142E-02** at limit **
   2  Index         1.8805        6.8411        .50000        .31412E-04
   3  Normalizat    1.0544        .11047E-01    .28448E-03    .39962E-05
   4  Prefactor     .90624        .67933E-02    .18612E-03   -.29320E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000101824
  Index      = 1.88047
  Normalizat = 1.05445
  Prefactor  = 0.906237
 **********
 **   18 **HESSE 
 **********

 FCN=   7940.098     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      277 TOTAL
                     EDM=   .47E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10182E-03    213.04        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         1.8805        8.4602        .50000       -.67373    
   3  Normalizat    1.0544        .23853E-01    .11379E-04   -.91228    
   4  Prefactor     .90624        .14668E-01    .74448E-05   -.95924    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 4.66443e-08
Minuit parameter uncertainties:
  1  0.039566
  2  332.187
  3  0.0238529
  4  0.0146681
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/377140': 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) = 7940.09784508
delta logL = 7.71606210037e-07

Extracting fit parameters...

4FGL J0937.9-1434
   Spectrum: PowerLaw
257    Prefactor:  1.018e-04  3.957e-02  1.000e-04  1.000e+04 ( 1.000e-14)
258        Index:  1.880e+00  3.322e+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:  9.062e-01  1.467e-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:  1.054e+00  2.385e-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/377140/cmap_HighResolution_587692801_587952001_4FGL_J0937.9-1434_daily_bin1344.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.56e-03', job_status='DONE', photon_flux_upper_limit='3.41e-08', time_completed='2021-08-31 19:50:16.291060', job_id='377140', GAL2='0.91', fit_tolerance='1e-08', EG2='1.05', EG='1.05', time_epoch_completed='1630464616.29', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.91', dlogl='7.72e-07', ts2='-0.00', photon_index_error='0.00', photon_index='1.98' WHERE bin_id='1344' AND source_name='4FGL J0937.9-1434' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Aug 31 19:50:16 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0225>
Subject: Job 377140: <4FGL_J0937.9-1434_daily_bin1344> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0937.9-1434_daily_bin1344 144.475 -14.5706 587692801 587952001 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.42 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             282.12 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   828 sec.
    Turnaround time :                            831 sec.

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

