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


Performing analysis on: 4FGL_J0939.3-1732_daily_bin1327
RA = 144.836, Dec = -17.5418
tmin = 583286401, tmax = 583545601
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='385122', job_status='RUN', time_executed='2021-08-31 20:01:09.935042', time_epoch_executed='1630465269.94' WHERE source_name='4FGL J0939.3-1732' and cadence='daily' and bin_id='1327'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/385122

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/385122/ft1_4FGL_J0939.3-1732_daily_bin1327.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/385122/ft2_4FGL_J0939.3-1732_daily_bin1327.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/385122/ft1_4FGL_J0939.3-1732_daily_bin1327.fits outfile=/scratch/kocevski/385122/ft1_filteredMKT_4FGL_J0939.3-1732_daily_bin1327.fits ra=144.836 dec=-17.5418 rad=12.0 tmin=583286401.0 tmax=583545601.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.50
user 3.27
sys 0.20

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/385122/ft2_4FGL_J0939.3-1732_daily_bin1327.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/385122/ft2_4FGL_J0939.3-1732_daily_bin1327.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/385122/ft1_filteredMKT_4FGL_J0939.3-1732_daily_bin1327.fits evtable="EVENTS" outfile="/scratch/kocevski/385122/ft1_filtered_4FGL_J0939.3-1732_daily_bin1327.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.33
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/385122/ft1_filtered_4FGL_J0939.3-1732_daily_bin1327.fits" evtable="EVENTS" scfile=/scratch/kocevski/385122/ft2_4FGL_J0939.3-1732_daily_bin1327.fits sctable="SC_DATA" outfile=/scratch/kocevski/385122/ltcube_583286401_583545601_4FGL_J0939.3-1732_daily_bin1327.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/385122/ft2_4FGL_J0939.3-1732_daily_bin1327.fits
.....................!
real 12.13
user 11.76
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/385122/ft1_filtered_4FGL_J0939.3-1732_daily_bin1327.fits evtable="EVENTS" scfile=/scratch/kocevski/385122/ft2_4FGL_J0939.3-1732_daily_bin1327.fits sctable="SC_DATA" expcube=/scratch/kocevski/385122/ltcube_583286401_583545601_4FGL_J0939.3-1732_daily_bin1327.fits outfile=/scratch/kocevski/385122/expmap_583286401_583545601_4FGL_J0939.3-1732_daily_bin1327.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/385122/ltcube_583286401_583545601_4FGL_J0939.3-1732_daily_bin1327.fits
.....................!
real 190.56
user 185.27
sys 4.92

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 169 point sources and 0 extended sources

Setting source of interest to:
4FGL J0939.3-1732 @ 144.836 -17.5418

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/385122/ft1_filtered_4FGL_J0939.3-1732_daily_bin1327.fits scfile=/scratch/kocevski/385122/ft2_4FGL_J0939.3-1732_daily_bin1327.fits outfile=/scratch/kocevski/385122/cmap_583286401_583545601_4FGL_J0939.3-1732_daily_bin1327.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.836 yref=-17.5418 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.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/385122/ft1_filtered_4FGL_J0939.3-1732_daily_bin1327.fits scfile=/scratch/kocevski/385122/ft2_4FGL_J0939.3-1732_daily_bin1327.fits outfile=/scratch/kocevski/385122/cmap_HighResolution_583286401_583545601_4FGL_J0939.3-1732_daily_bin1327.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.836 yref=-17.5418 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.39
sys 0.14

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/385122/ft1_filtered_4FGL_J0939.3-1732_daily_bin1327.fits evtable="EVENTS" scfile=/scratch/kocevski/385122/ft2_4FGL_J0939.3-1732_daily_bin1327.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/385122/Model_4FGL_J0939.3-1732_daily_bin1327.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/385122/ft1_filtered_4FGL_J0939.3-1732_daily_bin1327.fits.....................!
real 84.28
user 82.85
sys 1.16

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/385122/ft1_filtered_4FGL_J0939.3-1732_daily_bin1327.fits', '/scratch/kocevski/385122/ft2_4FGL_J0939.3-1732_daily_bin1327.fits', expMap='/scratch/kocevski/385122/expmap_583286401_583545601_4FGL_J0939.3-1732_daily_bin1327.fits', expCube='/scratch/kocevski/385122/ltcube_583286401_583545601_4FGL_J0939.3-1732_daily_bin1327.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/385122/Model_4FGL_J0939.3-1732_daily_bin1327.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J0939.3-1732'

4FGL J0939.3-1732
   Spectrum: PowerLaw
260    Prefactor:  3.013e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-13)
261        Index:  2.263e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
262        Scale:  1.278e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/385122/ft1_filtered_4FGL_J0939.3-1732_daily_bin1327.fits
Spacecraft file(s): /scratch/kocevski/385122/ft2_4FGL_J0939.3-1732_daily_bin1327.fits
Exposure map: /scratch/kocevski/385122/expmap_583286401_583545601_4FGL_J0939.3-1732_daily_bin1327.fits
Exposure cube: /scratch/kocevski/385122/ltcube_583286401_583545601_4FGL_J0939.3-1732_daily_bin1327.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/385122/Model_4FGL_J0939.3-1732_daily_bin1327.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) = 8119.97169072

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .15954E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    1.9841       1.0000         .10000E-03   10000.    
     3 'Prefactor '    6.1517       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    49.020       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10360E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    1.1346       1.0000         .10000E-03   10000.    
     9 'norm      '    .10023E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    .10013E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    .13890       1.0000         .10000E-03   10000.    
    13 'norm      '    .10005E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    4.0700       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    16 'Normalizat'    1.1874       1.0000         .10000E-01   10.000    
    17 'Prefactor '    .96139       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5570E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   8119.955     FROM MIGRAD    STATUS=CONVERGED    337 CALLS     1389 TOTAL
                     EDM=   .73E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    3.1064        .30390E-06** at limit **
   2  Prefactor     1.9824        14.724        .10220E-04   -.52265E-04
   3  Prefactor     6.1504        6.1862       -.17230E-06   -.18557E-04
   4  Prefactor     .10000E-03    6.2505       -.11458E-06** at limit **
   5  Prefactor     49.000        30.426        .24077E-05    .95467E-04
   6  Prefactor     .10000E-03    31.829       -.25578E-06** at limit **
   7  Prefactor     .10000E-03    4.7606        .40448E-07** at limit **
   8  norm          1.1358        3.5913        .58417E-06    .12235E-04
   9  norm          .10000E-03    3.0393       -.17105E-06** at limit **
  10  norm          .10000E-03    .87556       -.91172E-07** at limit **
  11  norm          .10000E-03    2.2895        .15538E-07** at limit **
  12  norm          .13765        .90873       -.51315E-07   -.93249E-04
  13  norm          .10000E-03    6.4484        .13949E-06** at limit **
  14  norm          4.0695        1.5629        .39667E-07   -.51503E-04
  15  Prefactor     .10000E-03    2.1097        .15283E-07** at limit **
  16  Normalizat    1.1880        .18553        .43949E-06    .26646E-04
  17  Prefactor     .96111        .10268       -.10445E-05   -.23525E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 1.98238
  Prefactor  = 6.15045
  Prefactor  = 0.0001
  Prefactor  = 49.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 1.13584
  norm       = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  norm       = 0.137654
  norm       = 0.0001
  norm       = 4.06949
  Prefactor  = 0.0001
  Normalizat = 1.188
  Prefactor  = 0.961108
 **********
 **   18 **HESSE 
 **********

 FCN=   8119.955     FROM HESSE     STATUS=OK           221 CALLS     1610 TOTAL
                     EDM=   .24E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    7.9555        .30466E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     1.9824        14.896        .14711E-02   -1.5426    
   3  Prefactor     6.1504        6.1892        .16186E-03   -1.5212    
   4  Prefactor     .10000E-03    6.2526        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     49.000        30.465        .57274E-04   -1.4307    
   6  Prefactor     .10000E-03    32.162        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    4.7740        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          1.1358        3.5442        .29389E-03   -1.5495    
   9  norm          .10000E-03    3.0706        .15344E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          .10000E-03    .87729        .82363E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .10000E-03    2.2908        .13316E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          .13765        5.1056        .16610E-02   -1.5634    
  13  norm          .10000E-03    6.4974        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          4.0695        1.5633        .66581E-04   -1.5304    
  15  Prefactor     .10000E-03    2.1133        .12782E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Normalizat    1.1880        .21856        .29926E-03   -.86974    
  17  Prefactor     .96111        .12042        .18355E-03   -.94037    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.38432e-08
Minuit parameter uncertainties:
  1  1.53581e-05
  2  10.8716
  3  6.18984
  4  4.29385e-07
  5  30.4749
  6  5.32898e-05
  7  2.53572e-06
  8  3.54485
  9  1.67614e-05
  10  4.77936e-06
  11  1.44913e-06
  12  1.67622
  13  6.71859e-06
  14  1.56335
  15  1.76547e-06
  16  0.218731
  17  0.120455
Done.

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

Extracting fit parameters...

4FGL J0939.3-1732
   Spectrum: PowerLaw
260    Prefactor:  1.000e-04  2.536e-06  1.000e-04  1.000e+04 ( 1.000e-13)
261        Index:  2.263e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
262        Scale:  1.278e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
554    Prefactor:  9.611e-01  1.205e-01  0.000e+00  1.000e+01 ( 1.000e+00)
555        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
556        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
553   Normalization:  1.188e+00  2.187e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 144.836 -17.542
Photon Flux Upper Limit: 5.26e-08 ph cm-2 s-1
Energy Flux Upper Limit: 4.03e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/385122/likelihoodResults_583286401_583545601_4FGL_J0939.3-1732_daily_bin1327.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) = 8119.95569069
delta logL = -0.000997522138277

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 8119.95469314
delta logL = 2.2988388082e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.2464       1.0000          .0000       10.000    
     3 'Normalizat'    1.1880       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .96109       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5570E+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=   8119.955     FROM MIGRAD    STATUS=CONVERGED     88 CALLS      242 TOTAL
                     EDM=   .14E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10171E-03    68.917        .18142E-02** at limit **
   2  Index         2.1699        5.9379        .50000        .23125E-04
   3  Normalizat    1.1880        .18320E-01    .29926E-03    .15956E-05
   4  Prefactor     .96111        .10288E-01    .18355E-03    .80521E-06
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000101709
  Index      = 2.16992
  Normalizat = 1.188
  Prefactor  = 0.96111
 **********
 **   18 **HESSE 
 **********

 FCN=   8119.955     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      271 TOTAL
                     EDM=   .62E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10171E-03    289.32        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.1699        5.3768        .50000       -.60167    
   3  Normalizat    1.1880        .39748E-01    .11970E-04   -.86975    
   4  Prefactor     .96111        .22319E-01    .73418E-05   -.94037    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 6.18177e-08
Minuit parameter uncertainties:
  1  0.0446943
  2  810.048
  3  0.0397493
  4  0.022319
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/385122': 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) = 8119.95469275
delta logL = 4.21283402829e-07

Extracting fit parameters...

4FGL J0939.3-1732
   Spectrum: PowerLaw
260    Prefactor:  1.017e-04  4.469e-02  1.000e-04  1.000e+04 ( 1.000e-13)
261        Index:  2.170e+00  8.100e+02  0.000e+00  1.000e+01 (-1.000e+00)
262        Scale:  1.278e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
554    Prefactor:  9.611e-01  2.232e-02  0.000e+00  1.000e+01 ( 1.000e+00)
555        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
556        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
553   Normalization:  1.188e+00  3.975e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 144.836 -17.542

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/385122/cmap_HighResolution_583286401_583545601_4FGL_J0939.3-1732_daily_bin1327.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.03e-03', job_status='DONE', photon_flux_upper_limit='5.26e-08', time_completed='2021-08-31 20:14:03.113957', job_id='385122', GAL2='0.96', fit_tolerance='1e-08', EG2='1.19', EG='1.19', time_epoch_completed='1630466043.11', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.96', dlogl='4.21e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.26' WHERE bin_id='1327' AND source_name='4FGL J0939.3-1732' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Aug 31 20:14:03 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0093>
Subject: Job 385122: <4FGL_J0939.3-1732_daily_bin1327> in cluster <slac> Done

Job <4FGL_J0939.3-1732_daily_bin1327> was submitted from host <rhel6-64q> by user <kocevski> in cluster <slac> at Tue Aug 31 20:00:21 2021
Job was executed on host(s) <bullet0093>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Aug 31 20:00:23 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Tue Aug 31 20:00:23 2021
Terminated at Tue Aug 31 20:14:03 2021
Results reported at Tue Aug 31 20:14:03 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0939.3-1732_daily_bin1327 144.836 -17.5418 583286401 583545601 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J0939.3-1732 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   600.11 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             299.75 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   820 sec.
    Turnaround time :                            822 sec.

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

