/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 200 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 = 7419
number of fields = 22
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J0937.9-1434_daily_bin18
RA = 144.475, Dec = -14.5706
tmin = 243993601, tmax = 244252801
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='368986', job_status='RUN', time_executed='2021-08-31 19:14:17.429513', time_epoch_executed='1630462457.43' WHERE source_name='4FGL J0937.9-1434' and cadence='daily' and bin_id='18'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/368986

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/368986/ft1_4FGL_J0937.9-1434_daily_bin18.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/368986/ft2_4FGL_J0937.9-1434_daily_bin18.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/368986/ft1_4FGL_J0937.9-1434_daily_bin18.fits outfile=/scratch/kocevski/368986/ft1_filteredMKT_4FGL_J0937.9-1434_daily_bin18.fits ra=144.475 dec=-14.5706 rad=12.0 tmin=243993601.0 tmax=244252801.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 1.39
user 1.23
sys 0.15

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/368986/ft2_4FGL_J0937.9-1434_daily_bin18.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/368986/ft1_filteredMKT_4FGL_J0937.9-1434_daily_bin18.fits evtable="EVENTS" outfile="/scratch/kocevski/368986/ft1_filtered_4FGL_J0937.9-1434_daily_bin18.fits" apply_filter=yes overwrite=yes header_obstimes=yes tstart=0.0 tstop=0.0 gtifile="default" chatter=3 clobber=yes debug=no gui=no mode="ql"

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

This is gtmktime version HEAD
Applying GTI filter:
IN_SAA!=T && LIVETIME>0 && gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nogrb.gti',(START+STOP)/2) && (angsep(RA_SUN,DEC_SUN,RA_ZENITH,DEC_ZENITH)>115 || gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nosolarflares.gti',(START+STOP)/2))
real 0.49
user 0.34
sys 0.14

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/368986/ft1_filtered_4FGL_J0937.9-1434_daily_bin18.fits" evtable="EVENTS" scfile=/scratch/kocevski/368986/ft2_4FGL_J0937.9-1434_daily_bin18.fits sctable="SC_DATA" outfile=/scratch/kocevski/368986/ltcube_243993601_244252801_4FGL_J0937.9-1434_daily_bin18.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/368986/ft2_4FGL_J0937.9-1434_daily_bin18.fits
.....................!
real 12.85
user 12.52
sys 0.30

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/368986/ft1_filtered_4FGL_J0937.9-1434_daily_bin18.fits evtable="EVENTS" scfile=/scratch/kocevski/368986/ft2_4FGL_J0937.9-1434_daily_bin18.fits sctable="SC_DATA" expcube=/scratch/kocevski/368986/ltcube_243993601_244252801_4FGL_J0937.9-1434_daily_bin18.fits outfile=/scratch/kocevski/368986/expmap_243993601_244252801_4FGL_J0937.9-1434_daily_bin18.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/368986/ltcube_243993601_244252801_4FGL_J0937.9-1434_daily_bin18.fits
.....................!
real 191.86
user 187.18
sys 4.32

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/368986/ft1_filtered_4FGL_J0937.9-1434_daily_bin18.fits scfile=/scratch/kocevski/368986/ft2_4FGL_J0937.9-1434_daily_bin18.fits outfile=/scratch/kocevski/368986/cmap_243993601_244252801_4FGL_J0937.9-1434_daily_bin18.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.54
user 0.37
sys 0.15

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

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/368986/ft1_filtered_4FGL_J0937.9-1434_daily_bin18.fits evtable="EVENTS" scfile=/scratch/kocevski/368986/ft2_4FGL_J0937.9-1434_daily_bin18.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/368986/Model_4FGL_J0937.9-1434_daily_bin18.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/368986/ft1_filtered_4FGL_J0937.9-1434_daily_bin18.fits.....................!
real 91.68
user 90.14
sys 1.15

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10137E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    3.8835       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .15414E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    2.9209       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10083E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    2.7978       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10034E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10527E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10019E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    .10010E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    4.9292       1.0000         .10000E-03   10000.    
    15 'norm      '    1.4105       1.0000         .10000E-03   10000.    
    16 'norm      '    10.460       1.0000         .10000E-03   10000.    
    17 'norm      '    1.9107       1.0000         .10000E-03   10000.    
    18 'Normalizat'    1.1486       1.0000         .10000E-01   10.000    
    19 'Prefactor '    1.0467       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=   9143.588     FROM MIGRAD    STATUS=CONVERGED    402 CALLS     1658 TOTAL
                     EDM=   .30E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    21.318        .18436E-06** at limit **
   2  norm          3.8838        3.2401       -.11175E-06   -.30335E-05
   3  Prefactor     .10000E-03    3.9149        .24822E-05** at limit **
   4  Prefactor     .10000E-03    4.0456        .41635E-07** at limit **
   5  Prefactor     2.9198        6.3091        .49703E-05    .13502E-03
   6  Prefactor     .10000E-03    17.910        .33345E-06** at limit **
   7  Prefactor     2.7554        68.300        .32429E-05   -.11970E-03
   8  Prefactor     .10000E-03    12.261        .21125E-06** at limit **
   9  Prefactor     .10000E-03    82.749        .93711E-06** at limit **
  10  Prefactor     .10000E-03    8.1097        .96856E-07** at limit **
  11  Prefactor     .10000E-03    8.1541       -.31816E-06** at limit **
  12  norm          .10000E-03    3.4022        .71348E-07** at limit **
  13  norm          .10000E-03    .85265        .35320E-07** at limit **
  14  norm          4.9293        4.9358       -.29504E-07    .32562E-04
  15  norm          1.4103        1.2474        .36585E-07    .31173E-04
  16  norm          10.459        9.9816        .17380E-06   -.26792E-04
  17  norm          1.9102        1.5363        .10263E-06   -.37208E-04
  18  Normalizat    1.1487        .17448       -.45860E-06   -.19060E-03
  19  Prefactor     1.0467        .10625       -.43871E-06   -.48627E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  norm       = 3.8838
  Prefactor  = 0.000100005
  Prefactor  = 0.0001
  Prefactor  = 2.91976
  Prefactor  = 0.0001
  Prefactor  = 2.75538
  Prefactor  = 0.0001
  Prefactor  = 0.000100003
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  norm       = 4.92925
  norm       = 1.41032
  norm       = 10.4587
  norm       = 1.91016
  Normalizat = 1.14874
  Prefactor  = 1.04671
 **********
 **   18 **HESSE 
 **********

 FCN=   9143.588     FROM HESSE     STATUS=OK           266 CALLS     1924 TOTAL
                     EDM=   .87E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    21.904        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          3.8838        3.2242        .15018E-03   -1.5314    
   3  Prefactor     .10000E-03    13.638        .32821E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    4.0601        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     2.9198        6.4529        .11885E-02   -1.5366    
   6  Prefactor     .10000E-03    18.230        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     2.7554        70.428        .24323E-03   -1.5376    
   8  Prefactor     .10000E-03    12.290        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    85.599        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    8.1195        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    8.2266        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          .10000E-03    3.4368        .17219E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .10000E-03    .85631        .86225E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          4.9293        4.9398        .18116E-03   -1.5264    
  15  norm          1.4103        1.2553        .97565E-04   -1.5470    
  16  norm          10.459        9.9883        .12388E-03   -1.5061    
  17  norm          1.9102        1.5272        .10088E-03   -1.5432    
  18  Normalizat    1.1487        .20265        .29814E-03   -.88202    
  19  Prefactor     1.0467        .12295        .19151E-03   -.91188    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.73556e-10
Minuit parameter uncertainties:
  1  6.54815e-05
  2  3.22431
  3  0.000500827
  4  3.53776e-06
  5  6.45445
  6  1.19331e-05
  7  27.8969
  8  4.02801e-05
  9  0.00105047
  10  2.31e-05
  11  7.46443e-06
  12  8.51185e-06
  13  2.08458e-06
  14  4.94017
  15  1.25528
  16  9.98993
  17  1.52728
  18  0.202793
  19  0.122983
Done.

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

Extracting fit parameters...

4FGL J0937.9-1434
   Spectrum: PowerLaw
257    Prefactor:  1.000e-04  2.310e-05  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.047e+00  1.230e-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.149e+00  2.028e-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.55e-08 ph cm-2 s-1
Energy Flux Upper Limit: 2.66e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/368986/likelihoodResults_243993601_244252801_4FGL_J0937.9-1434_daily_bin18.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) = 9143.58841031
delta logL = -0.000585604771913

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 9143.58782456
delta logL = 1.41239070217e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10048E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    1.9506       1.0000          .0000       10.000    
     3 'Normalizat'    1.1488       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0467       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=   9143.588     FROM MIGRAD    STATUS=CONVERGED     89 CALLS      245 TOTAL
                     EDM=   .24E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10083E-03    44.477        .18142E-02** at limit **
   2  Index         1.9061        5.3332        .50000        .23000E-04
   3  Normalizat    1.1487        .10227E-01    .29813E-03   -.30506E-06
   4  Prefactor     1.0467        .63413E-02    .19151E-03   -.71235E-06
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100828
  Index      = 1.90608
  Normalizat = 1.14874
  Prefactor  = 1.04671
 **********
 **   18 **HESSE 
 **********

 FCN=   9143.588     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      274 TOTAL
                     EDM=   .11E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10083E-03    200.97        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         1.9061        8.7757        .50000       -.66719    
   3  Normalizat    1.1487        .22219E-01    .11925E-04   -.88202    
   4  Prefactor     1.0467        .13777E-01    .76605E-05   -.91188    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.09245e-08
Minuit parameter uncertainties:
  1  0.0258859
  2  264.527
  3  0.0222191
  4  0.0137772
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/368986': 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) = 9143.58782428
delta logL = 4.28271960118e-07

Extracting fit parameters...

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

GAL_V02
   Spectrum: PowerLaw
534    Prefactor:  1.047e+00  1.378e-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.149e+00  2.222e-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/368986/cmap_HighResolution_243993601_244252801_4FGL_J0937.9-1434_daily_bin18.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.66e-03', job_status='DONE', photon_flux_upper_limit='3.55e-08', time_completed='2021-08-31 19:25:19.063169', job_id='368986', GAL2='1.05', fit_tolerance='1e-08', EG2='1.15', EG='1.15', time_epoch_completed='1630463119.06', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.05', dlogl='4.28e-07', ts2='-0.00', photon_index_error='0.00', photon_index='1.98' WHERE bin_id='18' AND source_name='4FGL J0937.9-1434' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Aug 31 19:25:19 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0052>
Subject: Job 368986: <4FGL_J0937.9-1434_daily_bin18> in cluster <slac> Done

Job <4FGL_J0937.9-1434_daily_bin18> was submitted from host <rhel6-64e> by user <kocevski> in cluster <slac> at Tue Aug 31 19:10:46 2021
Job was executed on host(s) <bullet0052>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Aug 31 19:10:48 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:10:48 2021
Terminated at Tue Aug 31 19:25:19 2021
Results reported at Tue Aug 31 19:25:19 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0937.9-1434_daily_bin18 144.475 -14.5706 243993601 244252801 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 :                                   657.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             290.54 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   871 sec.
    Turnaround time :                            873 sec.

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

