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


Performing analysis on: 4FGL_J0939.3-1732_daily_bin1457
RA = 144.836, Dec = -17.5418
tmin = 616982401, tmax = 617241601
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='385316', job_status='RUN', time_executed='2021-08-31 20:03:37.765618', time_epoch_executed='1630465417.77' WHERE source_name='4FGL J0939.3-1732' and cadence='daily' and bin_id='1457'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/385316

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/385316/ft1_4FGL_J0939.3-1732_daily_bin1457.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/385316/ft2_4FGL_J0939.3-1732_daily_bin1457.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/385316/ft1_4FGL_J0939.3-1732_daily_bin1457.fits outfile=/scratch/kocevski/385316/ft1_filteredMKT_4FGL_J0939.3-1732_daily_bin1457.fits ra=144.836 dec=-17.5418 rad=12.0 tmin=616982401.0 tmax=617241601.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.00
user 2.79
sys 0.19

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/385316/ft1_filtered_4FGL_J0939.3-1732_daily_bin1457.fits" evtable="EVENTS" scfile=/scratch/kocevski/385316/ft2_4FGL_J0939.3-1732_daily_bin1457.fits sctable="SC_DATA" outfile=/scratch/kocevski/385316/ltcube_616982401_617241601_4FGL_J0939.3-1732_daily_bin1457.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/385316/ft2_4FGL_J0939.3-1732_daily_bin1457.fits
.....................!
real 12.98
user 12.64
sys 0.29

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/385316/ft1_filtered_4FGL_J0939.3-1732_daily_bin1457.fits evtable="EVENTS" scfile=/scratch/kocevski/385316/ft2_4FGL_J0939.3-1732_daily_bin1457.fits sctable="SC_DATA" expcube=/scratch/kocevski/385316/ltcube_616982401_617241601_4FGL_J0939.3-1732_daily_bin1457.fits outfile=/scratch/kocevski/385316/expmap_616982401_617241601_4FGL_J0939.3-1732_daily_bin1457.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/385316/ltcube_616982401_617241601_4FGL_J0939.3-1732_daily_bin1457.fits
.....................!
real 191.07
user 185.94
sys 4.72

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/385316/ft1_filtered_4FGL_J0939.3-1732_daily_bin1457.fits scfile=/scratch/kocevski/385316/ft2_4FGL_J0939.3-1732_daily_bin1457.fits outfile=/scratch/kocevski/385316/cmap_616982401_617241601_4FGL_J0939.3-1732_daily_bin1457.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.53
user 0.38
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/385316/ft1_filtered_4FGL_J0939.3-1732_daily_bin1457.fits scfile=/scratch/kocevski/385316/ft2_4FGL_J0939.3-1732_daily_bin1457.fits outfile=/scratch/kocevski/385316/cmap_HighResolution_616982401_617241601_4FGL_J0939.3-1732_daily_bin1457.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/385316/ft1_filtered_4FGL_J0939.3-1732_daily_bin1457.fits evtable="EVENTS" scfile=/scratch/kocevski/385316/ft2_4FGL_J0939.3-1732_daily_bin1457.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/385316/Model_4FGL_J0939.3-1732_daily_bin1457.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/385316/ft1_filtered_4FGL_J0939.3-1732_daily_bin1457.fits.....................!
real 69.19
user 67.90
sys 1.13

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/385316/ft1_filtered_4FGL_J0939.3-1732_daily_bin1457.fits', '/scratch/kocevski/385316/ft2_4FGL_J0939.3-1732_daily_bin1457.fits', expMap='/scratch/kocevski/385316/expmap_616982401_617241601_4FGL_J0939.3-1732_daily_bin1457.fits', expCube='/scratch/kocevski/385316/ltcube_616982401_617241601_4FGL_J0939.3-1732_daily_bin1457.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/385316/Model_4FGL_J0939.3-1732_daily_bin1457.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/385316/ft1_filtered_4FGL_J0939.3-1732_daily_bin1457.fits
Spacecraft file(s): /scratch/kocevski/385316/ft2_4FGL_J0939.3-1732_daily_bin1457.fits
Exposure map: /scratch/kocevski/385316/expmap_616982401_617241601_4FGL_J0939.3-1732_daily_bin1457.fits
Exposure cube: /scratch/kocevski/385316/ltcube_616982401_617241601_4FGL_J0939.3-1732_daily_bin1457.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/385316/Model_4FGL_J0939.3-1732_daily_bin1457.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) = 6020.28939363

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    4.5957       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10015E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    2.8858       1.0000         .10000E-03   10000.    
     6 'Prefactor '    14.736       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    2.9828       1.0000         .10000E-03   10000.    
     9 'norm      '    .10241E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    .10695E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    6.8468       1.0000         .10000E-03   10000.    
    12 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    7.8425       1.0000         .10000E-03   10000.    
    14 'norm      '    2.0378       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'Normalizat'    1.5804       1.0000         .10000E-01   10.000    
    17 'Prefactor '    .84370       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=   6020.229     FROM MIGRAD    STATUS=CONVERGED    342 CALLS     1407 TOTAL
                     EDM=   .14E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     4.5954        5.0002       -.11058E-06   -.57969E-04
   2  Prefactor     .10000E-03    6.8161       -.56854E-06** at limit **
   3  Prefactor     .10000E-03    8.7484        .43321E-06** at limit **
   4  Prefactor     .10000E-03    46.699       -.39362E-05** at limit **
   5  Prefactor     2.7223        182.39       -.62278E-05   -.17475E-04
   6  Prefactor     14.736        29.637        .61618E-05   -.31316E-04
   7  Prefactor     .10000E-03    4.7076       -.14772E-06** at limit **
   8  norm          2.9826        4.1391        .10863E-06   -.16120E-03
   9  norm          .10000E-03    6.8514        .10433E-05** at limit **
  10  norm          .10000E-03    12.305        .58549E-06** at limit **
  11  norm          6.8463        10.516        .15773E-05   -.84026E-04
  12  norm          .10000E-03    1.3007        .19222E-06** at limit **
  13  norm          7.8312        17.505        .18815E-04   -.60197E-04
  14  norm          2.0378        1.4200        .15197E-06   -.42762E-03
  15  Prefactor     .10000E-03    4.8337        .22496E-06** at limit **
  16  Normalizat    1.5804        .24652       -.33597E-05    .44960E-04
  17  Prefactor     .84372        .12303       -.16325E-06   -.19041E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 4.59539
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 2.72226
  Prefactor  = 14.736
  Prefactor  = 0.0001
  norm       = 2.98257
  norm       = 0.0001
  norm       = 0.0001
  norm       = 6.84633
  norm       = 0.0001
  norm       = 7.83118
  norm       = 2.03781
  Prefactor  = 0.0001
  Normalizat = 1.58044
  Prefactor  = 0.843723
 **********
 **   18 **HESSE 
 **********

 FCN=   6020.229     FROM HESSE     STATUS=OK           221 CALLS     1628 TOTAL
                     EDM=   .34E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     4.5954        4.9997        .17516E-03   -1.5279    
   2  Prefactor     .10000E-03    6.8198        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    8.7689        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    46.870        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     2.7223        184.14        .23924E-03   -1.5378    
   6  Prefactor     14.736        29.564        .10434E-03   -1.4940    
   7  Prefactor     .10000E-03    4.7119        .16442E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          2.9826        4.1283        .18028E-03   -1.5363    
   9  norm          .10000E-03    6.8577        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          .10000E-03    12.862        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          6.8463        10.502        .15333E-03   -1.5185    
  12  norm          .10000E-03    1.3196        .86393E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          7.8312        17.441        .14318E-03   -1.5148    
  14  norm          2.0378        1.4113        .73722E-04   -1.5422    
  15  Prefactor     .10000E-03    4.8654        .16659E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Normalizat    1.5804        .28901        .29865E-03   -.75543    
  17  Prefactor     .84372        .14497        .20149E-03   -.98136    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.44524e-10
Minuit parameter uncertainties:
  1  5.00011
  2  6.70207e-06
  3  8.88623e-06
  4  0.000118645
  5  44.9228
  6  29.593
  7  4.42307e-06
  8  4.12873
  9  0.000105963
  10  2.97086e-05
  11  10.5051
  12  2.20598e-06
  13  17.452
  14  1.41132
  15  6.68185e-06
  16  0.289313
  17  0.145035
Done.

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

Extracting fit parameters...

4FGL J0939.3-1732
   Spectrum: PowerLaw
260    Prefactor:  1.000e-04  4.423e-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:  8.437e-01  1.450e-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.580e+00  2.893e-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: 6.18e-08 ph cm-2 s-1
Energy Flux Upper Limit: 4.73e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/385316/likelihoodResults_616982401_617241601_4FGL_J0939.3-1732_daily_bin1457.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) = 6020.22974605
delta logL = -0.00100191794627

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6020.22874437
delta logL = -2.31590092881e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10178E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.2455       1.0000          .0000       10.000    
     3 'Normalizat'    1.5806       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .84365       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=   6020.229     FROM MIGRAD    STATUS=CONVERGED    103 CALLS      255 TOTAL
                     EDM=   .23E-10    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    17.366        .16645E-01** at limit **
   2  Index         1.7560        5.4381        .50000        .13083E-06
   3  Normalizat    1.5804        .11144E-01    .29865E-03   -.62810E-04
   4  Prefactor     .84372        .57492E-02    .20149E-03   -.92138E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 1.75605
  Normalizat = 1.58043
  Prefactor  = 0.843725
 **********
 **   18 **HESSE 
 **********

 FCN=   6020.229     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      284 TOTAL
                     EDM=   .28E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    210.16        .18188E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         1.7560        7.5492        .50000       -.70599    
   3  Normalizat    1.5804        .40349E-01    .11946E-04   -.75543    
   4  Prefactor     .84372        .20816E-01    .80597E-05   -.98136    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 2.81135e-10
Minuit parameter uncertainties:
  1  0.000181362
  2  943.066
  3  0.0403501
  4  0.0208162
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/385316': 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) = 6020.2287422
delta logL = 1.93999858311e-06

Extracting fit parameters...

4FGL J0939.3-1732
   Spectrum: PowerLaw
260    Prefactor:  1.000e-04  1.814e-04  1.000e-04  1.000e+04 ( 1.000e-13)
261        Index:  1.756e+00  9.431e+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:  8.437e-01  2.082e-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.580e+00  4.035e-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  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/385316/cmap_HighResolution_616982401_617241601_4FGL_J0939.3-1732_daily_bin1457.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.73e-03', job_status='DONE', photon_flux_upper_limit='6.18e-08', time_completed='2021-08-31 20:14:11.676286', job_id='385316', GAL2='0.84', fit_tolerance='1e-08', EG2='1.58', EG='1.58', time_epoch_completed='1630466051.68', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.84', dlogl='1.94e-06', ts2='-0.00', photon_index_error='0.00', photon_index='2.26' WHERE bin_id='1457' AND source_name='4FGL J0939.3-1732' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Aug 31 20:14:11 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0030>
Subject: Job 385316: <4FGL_J0939.3-1732_daily_bin1457> in cluster <slac> Done

Job <4FGL_J0939.3-1732_daily_bin1457> was submitted from host <rhel6-64q> by user <kocevski> in cluster <slac> at Tue Aug 31 20:00:37 2021
Job was executed on host(s) <bullet0030>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Aug 31 20:00:39 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:39 2021
Terminated at Tue Aug 31 20:14:12 2021
Results reported at Tue Aug 31 20:14:12 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0939.3-1732_daily_bin1457 144.836 -17.5418 616982401 617241601 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 :                                   521.00 sec.
    Max Memory :                                 1255 MB
    Average Memory :                             270.96 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   812 sec.
    Turnaround time :                            815 sec.

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

