/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 144 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 = 7182
number of fields = 27
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J0937.9-1434_daily_bin314
RA = 144.475, Dec = -14.5706
tmin = 320716801, tmax = 320976001
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='372055', job_status='RUN', time_executed='2021-08-31 19:23:26.122580', time_epoch_executed='1630463006.12' WHERE source_name='4FGL J0937.9-1434' and cadence='daily' and bin_id='314'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/372055

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

Retrieving the FT1 file...

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

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

Retrieving 44 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/372055/ft1_4FGL_J0937.9-1434_daily_bin314.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/372055/ft2_4FGL_J0937.9-1434_daily_bin314.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/372055/ft1_4FGL_J0937.9-1434_daily_bin314.fits outfile=/scratch/kocevski/372055/ft1_filteredMKT_4FGL_J0937.9-1434_daily_bin314.fits ra=144.475 dec=-14.5706 rad=12.0 tmin=320716801.0 tmax=320976001.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.43
user 3.20
sys 0.18

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/372055/ft1_filtered_4FGL_J0937.9-1434_daily_bin314.fits" evtable="EVENTS" scfile=/scratch/kocevski/372055/ft2_4FGL_J0937.9-1434_daily_bin314.fits sctable="SC_DATA" outfile=/scratch/kocevski/372055/ltcube_320716801_320976001_4FGL_J0937.9-1434_daily_bin314.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/372055/ft2_4FGL_J0937.9-1434_daily_bin314.fits
.....................!
real 17.62
user 10.97
sys 0.30

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/372055/ft1_filtered_4FGL_J0937.9-1434_daily_bin314.fits evtable="EVENTS" scfile=/scratch/kocevski/372055/ft2_4FGL_J0937.9-1434_daily_bin314.fits sctable="SC_DATA" expcube=/scratch/kocevski/372055/ltcube_320716801_320976001_4FGL_J0937.9-1434_daily_bin314.fits outfile=/scratch/kocevski/372055/expmap_320716801_320976001_4FGL_J0937.9-1434_daily_bin314.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/372055/ltcube_320716801_320976001_4FGL_J0937.9-1434_daily_bin314.fits
.....................!
real 191.29
user 186.60
sys 4.22

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/372055/ft1_filtered_4FGL_J0937.9-1434_daily_bin314.fits scfile=/scratch/kocevski/372055/ft2_4FGL_J0937.9-1434_daily_bin314.fits outfile=/scratch/kocevski/372055/cmap_320716801_320976001_4FGL_J0937.9-1434_daily_bin314.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.52
user 0.36
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/372055/ft1_filtered_4FGL_J0937.9-1434_daily_bin314.fits scfile=/scratch/kocevski/372055/ft2_4FGL_J0937.9-1434_daily_bin314.fits outfile=/scratch/kocevski/372055/cmap_HighResolution_320716801_320976001_4FGL_J0937.9-1434_daily_bin314.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.53
user 0.37
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/372055/ft1_filtered_4FGL_J0937.9-1434_daily_bin314.fits evtable="EVENTS" scfile=/scratch/kocevski/372055/ft2_4FGL_J0937.9-1434_daily_bin314.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/372055/Model_4FGL_J0937.9-1434_daily_bin314.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/372055/ft1_filtered_4FGL_J0937.9-1434_daily_bin314.fits.....................!
real 78.36
user 77.12
sys 1.05

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    13.222       1.0000         .10000E-03   10000.    
     2 'norm      '    4.9560       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    7.8980       1.0000         .10000E-03   10000.    
     6 'Prefactor '    5.2108       1.0000         .10000E-03   10000.    
     7 'Prefactor '    57.036       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10155E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    24.288       1.0000         .10000E-03   10000.    
    10 'Prefactor '    1.6314       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    3.6457       1.0000         .10000E-03   10000.    
    13 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    7.3926       1.0000         .10000E-03   10000.    
    15 'norm      '    .10004E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    2.1620       1.0000         .10000E-03   10000.    
    17 'norm      '    .18342E-03   1.0000         .10000E-03   10000.    
    18 'Normalizat'    1.0569       1.0000         .10000E-01   10.000    
    19 'Prefactor '    .89248       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=   7696.936     FROM MIGRAD    STATUS=CONVERGED    391 CALLS     1887 TOTAL
                     EDM=   .88E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          13.221        9.3568        .17047E-07   -.96082E-05
   2  norm          4.9559        2.7861       -.31604E-07   -.38158E-04
   3  Prefactor     .10000E-03    2.1613       -.24918E-07** at limit **
   4  Prefactor     .10000E-03    6.7043        .77440E-06** at limit **
   5  Prefactor     7.8981        5.1601       -.20736E-06   -.18679E-04
   6  Prefactor     5.2068        13.188        .63233E-05    .66332E-04
   7  Prefactor     57.037        35.335        .20438E-06    .20560E-04
   8  Prefactor     .10000E-03    19.596        .15353E-06** at limit **
   9  Prefactor     24.289        21.720       -.64506E-07    .18073E-04
  10  Prefactor     1.5894        105.15       -.12275E-04    .24273E-04
  11  Prefactor     .10000E-03    5.3592        .68426E-06** at limit **
  12  norm          3.6418        7.0177       -.50419E-05   -.15557E-03
  13  norm          .10000E-03    .88182       -.36689E-07** at limit **
  14  norm          7.3924        7.1600       -.61065E-06   -.28584E-04
  15  norm          .10000E-03    1.1163        .20305E-07** at limit **
  16  norm          2.1625        3.7412        .14423E-05   -.15779E-02
  17  norm          .10000E-03    .42356       -.13966E-06** at limit **
  18  Normalizat    1.0568        .16930        .51356E-06    .11469E-03
  19  Prefactor     .89253        .10198        .26421E-06    .16829E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 13.2213
  norm       = 4.95587
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 7.89808
  Prefactor  = 5.20682
  Prefactor  = 57.0372
  Prefactor  = 0.0001
  Prefactor  = 24.2892
  Prefactor  = 1.58938
  Prefactor  = 0.0001
  norm       = 3.64183
  norm       = 0.0001
  norm       = 7.3924
  norm       = 0.0001
  norm       = 2.16247
  norm       = 0.000100004
  Normalizat = 1.05677
  Prefactor  = 0.892525
 **********
 **   18 **HESSE 
 **********

 FCN=   7696.936     FROM HESSE     STATUS=OK           272 CALLS     2159 TOTAL
                     EDM=   .11E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          13.221        9.3555        .11016E-03   -1.4981    
   2  norm          4.9559        2.7854        .10543E-03   -1.5263    
   3  Prefactor     .10000E-03    2.1838        .12592E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    6.8059        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     7.8981        5.1613        .14268E-03   -1.5146    
   6  Prefactor     5.2068        13.223        .17610E-03   -1.5252    
   7  Prefactor     57.037        35.411        .53118E-04   -1.4196    
   8  Prefactor     .10000E-03    19.629        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     24.289        21.751        .81280E-04   -1.4722    
  10  Prefactor     1.5894        98.573        .33106E-03   -1.5456    
  11  Prefactor     .10000E-03    5.3825        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          3.6418        6.8611        .21157E-03   -1.5326    
  13  norm          .10000E-03    .88427        .80450E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          7.3924        7.1662        .14751E-03   -1.5164    
  15  norm          .10000E-03    1.1455        .18089E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          2.1625        9.9074        .14006E-02   -1.5414    
  17  norm          .10000E-03    5.6769        .10953E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Normalizat    1.0568        .20013        .27680E-03   -.91152    
  19  Prefactor     .89253        .11977        .18370E-03   -.96403    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.0563e-08
Minuit parameter uncertainties:
  1  9.35655
  2  2.78546
  3  2.80193e-06
  4  5.38798e-07
  5  5.16159
  6  13.2309
  7  35.4237
  8  7.28486e-05
  9  21.7585
  10  25.0761
  11  2.0338e-05
  12  6.86253
  13  2.84259e-07
  14  7.167
  15  4.72024e-07
  16  9.25961
  17  0.000297226
  18  0.200271
  19  0.119801
Done.

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

Extracting fit parameters...

4FGL J0937.9-1434
   Spectrum: PowerLaw
257    Prefactor:  1.589e+00  2.508e+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:  8.925e-01  1.198e-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.057e+00  2.003e-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: 6.15e-08 ph cm-2 s-1
Energy Flux Upper Limit: 4.60e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/372055/likelihoodResults_320716801_320976001_4FGL_J0937.9-1434_daily_bin314.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) = 7696.85684429
delta logL = 0.0786930472977

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 7696.85339694
delta logL = 0.0821403910677

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    1.9934       1.0000         .10000E-03   10000.    
     2 'Index     '    2.7911       1.0000          .0000       10.000    
     3 'Normalizat'    1.0438       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .89483       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=   7696.853     FROM MIGRAD    STATUS=CONVERGED     63 CALLS      238 TOTAL
                     EDM=   .24E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     2.0029        243.75        .73355E-02    .12574E-02
   2  Index         2.7908        6.3529        .99932E-01    .26760E-03
   3  Normalizat    1.0438        .46415E-01    .62917E-01   -.25470E-03
   4  Prefactor     .89491        .27310E-01    .44939E-01   -.53040E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 2.00292
  Index      = 2.79079
  Normalizat = 1.04381
  Prefactor  = 0.894911
 **********
 **   18 **HESSE 
 **********

 FCN=   7696.853     FROM HESSE     STATUS=NOT POSDEF    31 CALLS      269 TOTAL
                     EDM=   .16E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     2.0029        606.20        .29342E-03   -1.5425    
   2  Index         2.7908        6.4949        .12400E-01   -.45765    
   3  Normalizat    1.0438        .17749        .27828E-03   -.91577    
   4  Prefactor     .89491        .10329        .18346E-03   -.96319    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.59458e-08
Minuit parameter uncertainties:
  1  70.4196
  2  12.7418
  3  0.177592
  4  0.103316
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/372055': 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) = 7696.8533936
delta logL = 0.0821437386667

Extracting fit parameters...

4FGL J0937.9-1434
   Spectrum: PowerLaw
257    Prefactor:  2.003e+00  7.042e+01  1.000e-04  1.000e+04 ( 1.000e-14)
258        Index:  2.791e+00  1.274e+01  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:  8.949e-01  1.033e-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.044e+00  1.776e-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/372055/cmap_HighResolution_320716801_320976001_4FGL_J0937.9-1434_daily_bin314.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.60e-03', job_status='DONE', photon_flux_upper_limit='6.15e-08', time_completed='2021-08-31 19:33:56.324155', job_id='372055', GAL2='0.89', fit_tolerance='1e-08', EG2='1.04', EG='1.06', time_epoch_completed='1630463636.32', return_code2='102', ts='0.00', comment='SUCCESS', return_code='0', GAL='0.89', dlogl='8.21e-02', ts2='0.17', photon_index_error='0.00', photon_index='1.98' WHERE bin_id='314' AND source_name='4FGL J0937.9-1434' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Aug 31 19:33:56 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0235>
Subject: Job 372055: <4FGL_J0937.9-1434_daily_bin314> in cluster <slac> Done

Job <4FGL_J0937.9-1434_daily_bin314> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Tue Aug 31 19:20:26 2021
Job was executed on host(s) <bullet0235>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Aug 31 19:20:27 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:20:27 2021
Terminated at Tue Aug 31 19:33:57 2021
Results reported at Tue Aug 31 19:33:57 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0937.9-1434_daily_bin314 144.475 -14.5706 320716801 320976001 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 :                                   622.42 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             292.63 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   809 sec.
    Turnaround time :                            811 sec.

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

