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


Performing analysis on: 4FGL_J0937.9-1434_daily_bin1623
RA = 144.475, Dec = -14.5706
tmin = 660009601, tmax = 660268801
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='286020', job_status='RUN', time_executed='2021-12-07 20:28:05.859357', time_epoch_executed='1638937685.86' WHERE source_name='4FGL J0937.9-1434' and cadence='daily' and bin_id='1623'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/286020

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/286020/ft1_4FGL_J0937.9-1434_daily_bin1623.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/286020/ft2_4FGL_J0937.9-1434_daily_bin1623.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/286020/ft1_4FGL_J0937.9-1434_daily_bin1623.fits outfile=/scratch/kocevski/286020/ft1_filteredMKT_4FGL_J0937.9-1434_daily_bin1623.fits ra=144.475 dec=-14.5706 rad=12.0 tmin=660009601.0 tmax=660268801.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 4.91
user 4.63
sys 0.26

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/286020/ft1_filtered_4FGL_J0937.9-1434_daily_bin1623.fits" evtable="EVENTS" scfile=/scratch/kocevski/286020/ft2_4FGL_J0937.9-1434_daily_bin1623.fits sctable="SC_DATA" outfile=/scratch/kocevski/286020/ltcube_660009601_660268801_4FGL_J0937.9-1434_daily_bin1623.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/286020/ft2_4FGL_J0937.9-1434_daily_bin1623.fits
.....................!
real 13.16
user 12.78
sys 0.35

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/286020/ft1_filtered_4FGL_J0937.9-1434_daily_bin1623.fits evtable="EVENTS" scfile=/scratch/kocevski/286020/ft2_4FGL_J0937.9-1434_daily_bin1623.fits sctable="SC_DATA" expcube=/scratch/kocevski/286020/ltcube_660009601_660268801_4FGL_J0937.9-1434_daily_bin1623.fits outfile=/scratch/kocevski/286020/expmap_660009601_660268801_4FGL_J0937.9-1434_daily_bin1623.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/286020/ltcube_660009601_660268801_4FGL_J0937.9-1434_daily_bin1623.fits
.....................!
real 191.29
user 185.73
sys 5.16

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/286020/ft1_filtered_4FGL_J0937.9-1434_daily_bin1623.fits scfile=/scratch/kocevski/286020/ft2_4FGL_J0937.9-1434_daily_bin1623.fits outfile=/scratch/kocevski/286020/cmap_660009601_660268801_4FGL_J0937.9-1434_daily_bin1623.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.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/286020/ft1_filtered_4FGL_J0937.9-1434_daily_bin1623.fits scfile=/scratch/kocevski/286020/ft2_4FGL_J0937.9-1434_daily_bin1623.fits outfile=/scratch/kocevski/286020/cmap_HighResolution_660009601_660268801_4FGL_J0937.9-1434_daily_bin1623.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.55
user 0.40
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/286020/ft1_filtered_4FGL_J0937.9-1434_daily_bin1623.fits evtable="EVENTS" scfile=/scratch/kocevski/286020/ft2_4FGL_J0937.9-1434_daily_bin1623.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/286020/Model_4FGL_J0937.9-1434_daily_bin1623.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/286020/ft1_filtered_4FGL_J0937.9-1434_daily_bin1623.fits.....................!
real 89.79
user 88.20
sys 1.35

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10006E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    1.2235       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10051E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    16.497       1.0000         .10000E-03   10000.    
     5 'Prefactor '    2.2493       1.0000         .10000E-03   10000.    
     6 'Prefactor '    13.031       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10096E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    4.2959       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .63591E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    8.2662       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10085E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    7.4869       1.0000         .10000E-03   10000.    
    13 'norm      '    .40624       1.0000         .10000E-03   10000.    
    14 'norm      '    2.8606       1.0000         .10000E-03   10000.    
    15 'norm      '    .10047E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    1.2514       1.0000         .10000E-03   10000.    
    17 'norm      '    1.7431       1.0000         .10000E-03   10000.    
    18 'Normalizat'    .64265       1.0000         .10000E-01   10.000    
    19 'Prefactor '    1.1372       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=   9361.269     FROM MIGRAD    STATUS=CONVERGED    691 CALLS     3008 TOTAL
                     EDM=   .36E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    2.5850        .15180E-02** at limit **
   2  norm          1.2235        2.1597        .18074E-03    .50296E-04
   3  Prefactor     .10002E-03    9.2042        .29371E-02** at limit **
   4  Prefactor     16.497        11.095        .98609E-04   -.95461E-04
   5  Prefactor     2.2483        5.6796        .27398E-03    .61412E-05
   6  Prefactor     13.031        15.908        .11096E-03    .18708E-03
   7  Prefactor     .10000E-03    11.053        .18142E-02** at limit **
   8  Prefactor     4.2984        38.345        .19437E-03   -.16026E-04
   9  Prefactor     .10005E-03    19.345        .10917    ** at limit **
  10  Prefactor     8.2690        14.385        .13944E-03    .61148E-04
  11  Prefactor     .10000E-03    13.470        .18142E-02** at limit **
  12  norm          7.4865        4.8431        .14657E-03    .48261E-03
  13  norm          .40705        1.5950        .19255E-02    .38332E-03
  14  norm          2.8601        5.2466        .12018E-02    .85530E-03
  15  norm          .10000E-03    1.3944        .16753E-02** at limit **
  16  norm          1.2496        4.9752        .39968E-03    .24235E-04
  17  norm          1.7428        1.0758        .15886E-03    .43454E-03
  18  Normalizat    .64270        .17847        .33575E-03   -.20194E-03
  19  Prefactor     1.1373        .11095        .16613E-03   -.75529E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  norm       = 1.22346
  Prefactor  = 0.000100017
  Prefactor  = 16.4967
  Prefactor  = 2.24826
  Prefactor  = 13.0315
  Prefactor  = 0.000100001
  Prefactor  = 4.29838
  Prefactor  = 0.00010005
  Prefactor  = 8.26904
  Prefactor  = 0.000100003
  norm       = 7.48649
  norm       = 0.407047
  norm       = 2.86006
  norm       = 0.0001
  norm       = 1.24955
  norm       = 1.74284
  Normalizat = 0.642699
  Prefactor  = 1.13725
 **********
 **   18 **HESSE 
 **********

 FCN=   9361.269     FROM HESSE     STATUS=OK           262 CALLS     3270 TOTAL
                     EDM=   .35E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    2.5851        .30361E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          1.2235        2.1594        .36148E-04   -1.5487    
   3  Prefactor     .10002E-03    9.3390        .58742E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     16.497        11.093        .39444E-05   -1.4895    
   5  Prefactor     2.2483        5.6788        .10959E-04   -1.5408    
   6  Prefactor     13.031        15.902        .44386E-05   -1.4986    
   7  Prefactor     .10000E-03    11.054        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     4.2984        38.281        .77748E-05   -1.5293    
   9  Prefactor     .10005E-03    18.088        .11432       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     8.2690        14.382        .55776E-05   -1.5133    
  11  Prefactor     .10000E-03    13.478        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          7.4865        4.8428        .58628E-05   -1.5161    
  13  norm          .40705        1.5923        .77022E-04   -1.5580    
  14  norm          2.8601        5.2459        .48072E-04   -1.5370    
  15  norm          .10000E-03    1.3978        .33506E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          1.2496        4.9744        .15987E-04   -1.5484    
  17  norm          1.7428        1.0757        .63544E-05   -1.5444    
  18  Normalizat    .64270        .17853        .13430E-04   -1.0620    
  19  Prefactor     1.1373        .11100        .33225E-04   -.88285    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.4841e-09
Minuit parameter uncertainties:
  1  3.4366e-06
  2  2.15955
  3  0.000800122
  4  11.0941
  5  5.68016
  6  15.9076
  7  0.000205042
  8  25.6767
  9  0.00189714
  10  14.3877
  11  0.000428862
  12  4.84307
  13  1.59251
  14  5.24672
  15  2.28353e-05
  16  4.97602
  17  1.07576
  18  0.178688
  19  0.111026
Done.

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

Extracting fit parameters...

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

GAL_V02
   Spectrum: PowerLaw
534    Prefactor:  1.137e+00  1.110e-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:  6.427e-01  1.787e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.54
Ra Dec: 144.475 -14.571
Photon Flux Upper Limit: 4.79e-08 ph cm-2 s-1
Energy Flux Upper Limit: 3.58e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/286020/likelihoodResults_660009601_660268801_4FGL_J0937.9-1434_daily_bin1623.txt

Performing a free index iterative likelihood fit...

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

Done.

Freeing candidate source...
Done.

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 9361.26203091
delta logL = 0.00649778078332

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 9361.25949071
delta logL = 0.00903798451873

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    9.5160       1.0000         .10000E-03   10000.    
     2 'Index     '    1.8433       1.0000          .0000       10.000    
     3 'Normalizat'    .64372       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1370       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=   9361.259     FROM MIGRAD    STATUS=CONVERGED     57 CALLS      211 TOTAL
                     EDM=   .16E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     9.5040        482.06        .32478E-02    .50575E-04
   2  Index         1.8466        3.1484        .26777        .63982E-04
   3  Normalizat    .64387        .43415E-01    .75774E-01   -.55893E-04
   4  Prefactor     1.1369        .24408E-01    .36324E-01   -.23709E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 9.50404
  Index      = 1.84658
  Normalizat = 0.64387
  Prefactor  = 1.13694
 **********
 **   18 **HESSE 
 **********

 FCN=   9361.259     FROM HESSE     STATUS=OK            31 CALLS      242 TOTAL
                     EDM=   .68E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     9.5040        18.503        .12991E-03   -1.5091    
   2  Index         1.8466        .99953        .10561E-01   -.68243    
   3  Normalizat    .64387        .17045        .33547E-03   -1.0615    
   4  Prefactor     1.1369        .11026        .16615E-03   -.88294    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.78183e-11
Minuit parameter uncertainties:
  1  18.5139
  2  1.01093
  3  0.17059
  4  0.110287
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/286020': 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) = 9361.25948386
delta logL = 0.00904483914928

Extracting fit parameters...

4FGL J0937.9-1434
   Spectrum: PowerLaw
257    Prefactor:  9.504e+00  1.851e+01  1.000e-04  1.000e+04 ( 1.000e-14)
258        Index:  1.847e+00  1.011e+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.137e+00  1.103e-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:  6.439e-01  1.706e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.54
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/286020/cmap_HighResolution_660009601_660268801_4FGL_J0937.9-1434_daily_bin1623.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.58e-03', job_status='DONE', photon_flux_upper_limit='4.79e-08', time_completed='2021-12-07 20:41:38.865285', job_id='286020', GAL2='1.14', fit_tolerance='1e-08', EG2='0.64', EG='0.64', time_epoch_completed='1638938498.87', return_code2='0', ts='0.54', comment='SUCCESS', return_code='0', GAL='1.14', dlogl='9.04e-03', ts2='0.56', photon_index_error='0.00', photon_index='1.98' WHERE bin_id='1623' AND source_name='4FGL J0937.9-1434' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Dec  7 20:41:38 PST 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0231>
Subject: Job 286020: <4FGL_J0937.9-1434_daily_bin1623> in cluster <slac> Done

Job <4FGL_J0937.9-1434_daily_bin1623> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Tue Dec  7 20:25:16 2021
Job was executed on host(s) <bullet0231>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Dec  7 20:25:36 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Tue Dec  7 20:25:36 2021
Terminated at Tue Dec  7 20:41:39 2021
Results reported at Tue Dec  7 20:41:39 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0937.9-1434_daily_bin1623 144.475 -14.5706 660009601 660268801 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 :                                   812.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             323.72 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              7
    Max Threads :                                21
    Run time :                                   963 sec.
    Turnaround time :                            983 sec.

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

