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


Performing analysis on: 4FGL_J0915.4-3027_daily_bin1246
RA = 138.875, Dec = -30.4642
tmin = 562291201, tmax = 562550401
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='100397', job_status='RUN', time_executed='2021-08-31 05:26:01.336032', time_epoch_executed='1630412761.34' WHERE source_name='4FGL J0915.4-3027' and cadence='daily' and bin_id='1246'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/100397

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/100397/ft1_4FGL_J0915.4-3027_daily_bin1246.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/100397/ft2_4FGL_J0915.4-3027_daily_bin1246.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/100397/ft1_4FGL_J0915.4-3027_daily_bin1246.fits outfile=/scratch/kocevski/100397/ft1_filteredMKT_4FGL_J0915.4-3027_daily_bin1246.fits ra=138.875 dec=-30.4642 rad=12.0 tmin=562291201.0 tmax=562550401.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.45
user 3.32
sys 0.98

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/100397/ft2_4FGL_J0915.4-3027_daily_bin1246.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/100397/ft2_4FGL_J0915.4-3027_daily_bin1246.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/100397/ft1_filteredMKT_4FGL_J0915.4-3027_daily_bin1246.fits evtable="EVENTS" outfile="/scratch/kocevski/100397/ft1_filtered_4FGL_J0915.4-3027_daily_bin1246.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 1.36
user 0.36
sys 0.91

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/100397/ft1_filtered_4FGL_J0915.4-3027_daily_bin1246.fits" evtable="EVENTS" scfile=/scratch/kocevski/100397/ft2_4FGL_J0915.4-3027_daily_bin1246.fits sctable="SC_DATA" outfile=/scratch/kocevski/100397/ltcube_562291201_562550401_4FGL_J0915.4-3027_daily_bin1246.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/100397/ft2_4FGL_J0915.4-3027_daily_bin1246.fits
.....................!
real 16.42
user 15.05
sys 1.17

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/100397/ft1_filtered_4FGL_J0915.4-3027_daily_bin1246.fits evtable="EVENTS" scfile=/scratch/kocevski/100397/ft2_4FGL_J0915.4-3027_daily_bin1246.fits sctable="SC_DATA" expcube=/scratch/kocevski/100397/ltcube_562291201_562550401_4FGL_J0915.4-3027_daily_bin1246.fits outfile=/scratch/kocevski/100397/expmap_562291201_562550401_4FGL_J0915.4-3027_daily_bin1246.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/100397/ltcube_562291201_562550401_4FGL_J0915.4-3027_daily_bin1246.fits
.....................!
real 192.96
user 186.07
sys 5.59

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
Extended source Puppis A in ROI with RadialDisk spatial model.
Extended source Vela X in ROI with RadialDisk spatial model.
Extended source Vela Junior in ROI with RadialDisk spatial model.
Added 190 point sources and 3 extended sources
If using unbinned likelihood you will need to rerun gtdiffrsp for the extended sources or rerun the makeModel function with optional argument psForce=True

Setting source of interest to:
4FGL J0915.4-3027 @ 138.875 -30.4642

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/100397/ft1_filtered_4FGL_J0915.4-3027_daily_bin1246.fits scfile=/scratch/kocevski/100397/ft2_4FGL_J0915.4-3027_daily_bin1246.fits outfile=/scratch/kocevski/100397/cmap_562291201_562550401_4FGL_J0915.4-3027_daily_bin1246.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=138.875 yref=-30.4642 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 1.44
user 0.39
sys 0.89

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/100397/ft1_filtered_4FGL_J0915.4-3027_daily_bin1246.fits scfile=/scratch/kocevski/100397/ft2_4FGL_J0915.4-3027_daily_bin1246.fits outfile=/scratch/kocevski/100397/cmap_HighResolution_562291201_562550401_4FGL_J0915.4-3027_daily_bin1246.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=138.875 yref=-30.4642 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 1.45
user 0.41
sys 0.88

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/100397/ft1_filtered_4FGL_J0915.4-3027_daily_bin1246.fits evtable="EVENTS" scfile=/scratch/kocevski/100397/ft2_4FGL_J0915.4-3027_daily_bin1246.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/100397/Model_4FGL_J0915.4-3027_daily_bin1246.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
adding source Puppis A
adding source Vela Junior
adding source Vela X
Working on...
/scratch/kocevski/100397/ft1_filtered_4FGL_J0915.4-3027_daily_bin1246.fits.....................!
real 77.87
user 74.88
sys 2.14

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/100397/ft1_filtered_4FGL_J0915.4-3027_daily_bin1246.fits', '/scratch/kocevski/100397/ft2_4FGL_J0915.4-3027_daily_bin1246.fits', expMap='/scratch/kocevski/100397/expmap_562291201_562550401_4FGL_J0915.4-3027_daily_bin1246.fits', expCube='/scratch/kocevski/100397/ltcube_562291201_562550401_4FGL_J0915.4-3027_daily_bin1246.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/100397/Model_4FGL_J0915.4-3027_daily_bin1246.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J0915.4-3027'

4FGL J0915.4-3027
   Spectrum: PowerLaw
343    Prefactor:  2.454e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-13)
344        Index:  2.241e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
345        Scale:  1.427e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/100397/ft1_filtered_4FGL_J0915.4-3027_daily_bin1246.fits
Spacecraft file(s): /scratch/kocevski/100397/ft2_4FGL_J0915.4-3027_daily_bin1246.fits
Exposure map: /scratch/kocevski/100397/expmap_562291201_562550401_4FGL_J0915.4-3027_daily_bin1246.fits
Exposure cube: /scratch/kocevski/100397/ltcube_562291201_562550401_4FGL_J0915.4-3027_daily_bin1246.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/100397/Model_4FGL_J0915.4-3027_daily_bin1246.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) = 5696.79807909

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10032E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    .10136E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    7.7672       1.0000         .10000E-03   10000.    
     4 'norm      '    5.5116       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10461E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .12496E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    11.581       1.0000         .10000E-03   10000.    
     8 'Prefactor '    1.4534       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .11427E-02   1.0000         .10000E-03   10000.    
    10 'Prefactor '    19.832       1.0000         .10000E-03   10000.    
    11 'norm      '    .10758E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    .10236E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    12.582       1.0000         .10000E-03   10000.    
    14 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10658E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .18143E-01   1.0000         .10000E-03   10000.    
    17 'Normalizat'    1.6526       1.0000         .10000E-01   10.000    
    18 'Prefactor '    .85523       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6530E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   5696.789     FROM MIGRAD    STATUS=CONVERGED    384 CALLS     1771 TOTAL
                     EDM=   .24E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  5.7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    9.4824       -.77775E-07** at limit **
   2  norm          .10000E-03    6.5218       -.15525E-07** at limit **
   3  Prefactor     7.6446        332.07        .29341E-04   -.10039E-04
   4  norm          5.5116        241.47        .22672E-05   -.26006E-05
   5  Prefactor     .10000E-03    4.5675        .25805E-07** at limit **
   6  Prefactor     .10000E-03    18.078        .11659E-06** at limit **
   7  Prefactor     11.591        26.229        .92721E-06   -.67333E-05
   8  Prefactor     1.4620        60.855        .17835E-04    .18613E-04
   9  Prefactor     .10000E-03    85.951       -.16565E-06** at limit **
  10  Prefactor     19.718        54.668       -.23696E-05   -.46741E-05
  11  norm          .10000E-03    5.6535        .12612E-06** at limit **
  12  norm          .10000E-03    36.383        .63607E-07** at limit **
  13  norm          12.579        14.024        .12048E-06   -.23347E-05
  14  norm          .10000E-03    8.8546        .58081E-07** at limit **
  15  Prefactor     .10000E-03    45.905        .15258E-06** at limit **
  16  Prefactor     .10001E-03    25.988        .81299E-07** at limit **
  17  Normalizat    1.6522        .29819       -.31879E-07   -.42584E-04
  18  Prefactor     .85530        .89886E-01   -.85219E-06    .36190E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 7.64464
  norm       = 5.5116
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 11.5914
  Prefactor  = 1.46203
  Prefactor  = 0.0001
  Prefactor  = 19.7184
  norm       = 0.0001
  norm       = 0.0001
  norm       = 12.5786
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100012
  Normalizat = 1.65215
  Prefactor  = 0.855303
 **********
 **   18 **HESSE 
 **********

 FCN=   5696.789     FROM HESSE     STATUS=OK           250 CALLS     2021 TOTAL
                     EDM=   .49E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    9.4932        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .10000E-03    6.5296        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     7.6446        332.45        .14388E-03   -1.5155    
   4  norm          5.5116        245.76        .17114E-03   -1.5238    
   5  Prefactor     .10000E-03    4.6540        .15747E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    18.241        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     11.591        26.219        .58860E-03   -1.5027    
   8  Prefactor     1.4620        61.087        .17862E-02   -1.5466    
   9  Prefactor     .10000E-03    88.813        .41344E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     19.718        54.683        .89939E-04   -1.4820    
  11  norm          .10000E-03    5.6836        .17525E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          .10000E-03    36.488        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          12.579        14.028        .11293E-03   -1.4998    
  14  norm          .10000E-03    8.8576        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    45.956        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10001E-03    27.357        .13203       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Normalizat    1.6522        .32868        .41057E-03   -.73588    
  18  Prefactor     .85530        .99422E-01    .15779E-03   -.97721    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.85742e-11
Minuit parameter uncertainties:
  1  3.80494e-06
  2  5.07119e-08
  3  101.432
  4  73.933
  5  4.3798e-06
  6  7.69642e-06
  7  26.2455
  8  18.921
  9  0.000152359
  10  54.8225
  11  1.32186e-05
  12  3.3993e-05
  13  14.0313
  14  2.33647e-06
  15  2.04109e-05
  16  0.00113367
  17  0.329109
  18  0.0994425
Done.

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

Extracting fit parameters...

4FGL J0915.4-3027
   Spectrum: PowerLaw
343    Prefactor:  1.159e+01  2.625e+01  1.000e-04  1.000e+04 ( 1.000e-13)
344        Index:  2.241e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
345        Scale:  1.427e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
640    Prefactor:  8.553e-01  9.944e-02  0.000e+00  1.000e+01 ( 1.000e+00)
641        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
642        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
639   Normalization:  1.652e+00  3.291e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.25
Ra Dec: 138.875 -30.464
Photon Flux Upper Limit: 2.28e-07 ph cm-2 s-1
Energy Flux Upper Limit: 1.75e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/100397/likelihoodResults_562291201_562550401_4FGL_J0915.4-3027_daily_bin1246.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) = 5696.64575814
delta logL = 0.142874618133

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5696.62855079
delta logL = 0.160081964488

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    3.5676       1.0000         .10000E-03   10000.    
     2 'Index     '    3.2913       1.0000          .0000       10.000    
     3 'Normalizat'    1.6086       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .86045       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6530E+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.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   5696.629     FROM MIGRAD    STATUS=FAILED        83 CALLS      305 TOTAL
                     EDM=   .42E-06    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     3.5646        335.35        .19254E-03   -.42663E-02
   2  Index         3.2916        5.9150        .73687E-02   -.11028E-02
   3  Normalizat    1.6085        .33290        .41479E-03   -.97965E-03
   4  Prefactor     .86048        .93777E-01    .15732E-03   -.21304E-02
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   5696.629     FROM SIMPLEX   STATUS=UNCHANGED     88 CALLS      393 TOTAL
                     EDM=   .13E-04    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     3.5646        335.35        .28734E-03   -.42663E-02
   2  Index         3.2916        5.9150        .15258E-02   -.11028E-02
   3  Normalizat    1.6085        .33290        .29932E-03   -.97965E-03
   4  Prefactor     .86048        .93777E-01    .45198E-04   -.21304E-02
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   5696.629     FROM MIGRAD    STATUS=CONVERGED     32 CALLS      425 TOTAL
                     EDM=   .20E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     3.5617        26.581        .77015E-05   -.18895E-04
   2  Index         3.2920        2.5049        .29475E-03   -.28157E-05
   3  Normalizat    1.6085        .33252        .82958E-04    .68576E-04
   4  Prefactor     .86048        .94191E-01    .31463E-04    .98138E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 3.56171
  Index      = 3.29204
  Normalizat = 1.60851
  Prefactor  = 0.860481
 **********
 **   18 **HESSE 
 **********

 FCN=   5696.629     FROM HESSE     STATUS=OK            23 CALLS      448 TOTAL
                     EDM=   .20E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     3.5617        24.107        .15403E-05   -1.5330    
   2  Index         3.2920        2.3971        .11790E-04   -.34861    
   3  Normalizat    1.6085        .33220        .16592E-04   -.74773    
   4  Prefactor     .86048        .94088E-01    .62927E-05   -.97536    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.00227e-11
Minuit parameter uncertainties:
  1  18.5428
  2  2.5155
  3  0.332653
  4  0.0941052
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/100397': 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) = 5696.62855069
delta logL = 0.160082064467

Extracting fit parameters...

4FGL J0915.4-3027
   Spectrum: PowerLaw
343    Prefactor:  3.562e+00  1.854e+01  1.000e-04  1.000e+04 ( 1.000e-13)
344        Index:  3.292e+00  2.516e+00  0.000e+00  1.000e+01 (-1.000e+00)
345        Scale:  1.427e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
640    Prefactor:  8.605e-01  9.411e-02  0.000e+00  1.000e+01 ( 1.000e+00)
641        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
642        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
639   Normalization:  1.609e+00  3.327e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.25
Ra Dec: 138.875 -30.464

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/100397/cmap_HighResolution_562291201_562550401_4FGL_J0915.4-3027_daily_bin1246.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.75e-02', job_status='DONE', photon_flux_upper_limit='2.28e-07', time_completed='2021-08-31 05:36:31.609077', job_id='100397', GAL2='0.86', fit_tolerance='1e-08', EG2='1.61', EG='1.65', time_epoch_completed='1630413391.61', return_code2='0', ts='0.25', comment='SUCCESS', return_code='0', GAL='0.86', dlogl='1.60e-01', ts2='0.60', photon_index_error='0.00', photon_index='2.24' WHERE bin_id='1246' AND source_name='4FGL J0915.4-3027' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Aug 31 05:36:31 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0226>
Subject: Job 100397: <4FGL_J0915.4-3027_daily_bin1246> in cluster <slac> Done

Job <4FGL_J0915.4-3027_daily_bin1246> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Tue Aug 31 05:21:01 2021
Job was executed on host(s) <bullet0226>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Aug 31 05:21:02 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Tue Aug 31 05:21:02 2021
Terminated at Tue Aug 31 05:36:32 2021
Results reported at Tue Aug 31 05:36:32 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0915.4-3027_daily_bin1246 138.875 -30.4642 562291201 562550401 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J0915.4-3027 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   630.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             275.67 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   929 sec.
    Turnaround time :                            931 sec.

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

