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


Performing analysis on: 4FGL_J0746.6-4754_daily_bin1013
RA = 116.669, Dec = -47.9155
tmin = 501897601, tmax = 502156801
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='854086', job_status='RUN', time_executed='2021-08-28 11:30:47.132223', time_epoch_executed='1630175447.13' WHERE source_name='4FGL J0746.6-4754' and cadence='daily' and bin_id='1013'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/854086

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/854086/ft1_4FGL_J0746.6-4754_daily_bin1013.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/854086/ft2_4FGL_J0746.6-4754_daily_bin1013.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/854086/ft1_4FGL_J0746.6-4754_daily_bin1013.fits outfile=/scratch/kocevski/854086/ft1_filteredMKT_4FGL_J0746.6-4754_daily_bin1013.fits ra=116.669 dec=-47.9155 rad=12.0 tmin=501897601.0 tmax=502156801.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.46
user 3.24
sys 0.20

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/854086/ft2_4FGL_J0746.6-4754_daily_bin1013.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/854086/ft2_4FGL_J0746.6-4754_daily_bin1013.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/854086/ft1_filteredMKT_4FGL_J0746.6-4754_daily_bin1013.fits evtable="EVENTS" outfile="/scratch/kocevski/854086/ft1_filtered_4FGL_J0746.6-4754_daily_bin1013.fits" apply_filter=yes overwrite=yes header_obstimes=yes tstart=0.0 tstop=0.0 gtifile="default" chatter=3 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

This is gtmktime version HEAD
Applying GTI filter:
IN_SAA!=T && LIVETIME>0 && gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nogrb.gti',(START+STOP)/2) && (angsep(RA_SUN,DEC_SUN,RA_ZENITH,DEC_ZENITH)>115 || gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nosolarflares.gti',(START+STOP)/2))
real 0.48
user 0.32
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/854086/ft1_filtered_4FGL_J0746.6-4754_daily_bin1013.fits" evtable="EVENTS" scfile=/scratch/kocevski/854086/ft2_4FGL_J0746.6-4754_daily_bin1013.fits sctable="SC_DATA" outfile=/scratch/kocevski/854086/ltcube_501897601_502156801_4FGL_J0746.6-4754_daily_bin1013.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/854086/ft2_4FGL_J0746.6-4754_daily_bin1013.fits
.....................!
real 11.77
user 11.43
sys 0.30

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/854086/ft1_filtered_4FGL_J0746.6-4754_daily_bin1013.fits evtable="EVENTS" scfile=/scratch/kocevski/854086/ft2_4FGL_J0746.6-4754_daily_bin1013.fits sctable="SC_DATA" expcube=/scratch/kocevski/854086/ltcube_501897601_502156801_4FGL_J0746.6-4754_daily_bin1013.fits outfile=/scratch/kocevski/854086/expmap_501897601_502156801_4FGL_J0746.6-4754_daily_bin1013.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/854086/ltcube_501897601_502156801_4FGL_J0746.6-4754_daily_bin1013.fits
.....................!
real 189.38
user 185.09
sys 3.91

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 218 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 J0746.6-4754 @ 116.669 -47.9155

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/854086/ft1_filtered_4FGL_J0746.6-4754_daily_bin1013.fits scfile=/scratch/kocevski/854086/ft2_4FGL_J0746.6-4754_daily_bin1013.fits outfile=/scratch/kocevski/854086/cmap_501897601_502156801_4FGL_J0746.6-4754_daily_bin1013.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=116.669 yref=-47.9155 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.59
user 0.40
sys 0.12

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/854086/ft1_filtered_4FGL_J0746.6-4754_daily_bin1013.fits scfile=/scratch/kocevski/854086/ft2_4FGL_J0746.6-4754_daily_bin1013.fits outfile=/scratch/kocevski/854086/cmap_HighResolution_501897601_502156801_4FGL_J0746.6-4754_daily_bin1013.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=116.669 yref=-47.9155 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/854086/ft1_filtered_4FGL_J0746.6-4754_daily_bin1013.fits evtable="EVENTS" scfile=/scratch/kocevski/854086/ft2_4FGL_J0746.6-4754_daily_bin1013.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/854086/Model_4FGL_J0746.6-4754_daily_bin1013.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/854086/ft1_filtered_4FGL_J0746.6-4754_daily_bin1013.fits.....................!
real 574.62
user 572.50
sys 1.12

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/854086/ft1_filtered_4FGL_J0746.6-4754_daily_bin1013.fits', '/scratch/kocevski/854086/ft2_4FGL_J0746.6-4754_daily_bin1013.fits', expMap='/scratch/kocevski/854086/expmap_501897601_502156801_4FGL_J0746.6-4754_daily_bin1013.fits', expCube='/scratch/kocevski/854086/ltcube_501897601_502156801_4FGL_J0746.6-4754_daily_bin1013.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/854086/Model_4FGL_J0746.6-4754_daily_bin1013.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J0746.6-4754'

4FGL J0746.6-4754
   Spectrum: PowerLaw
353    Prefactor:  2.126e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-13)
354        Index:  2.010e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
355        Scale:  2.378e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/854086/ft1_filtered_4FGL_J0746.6-4754_daily_bin1013.fits
Spacecraft file(s): /scratch/kocevski/854086/ft2_4FGL_J0746.6-4754_daily_bin1013.fits
Exposure map: /scratch/kocevski/854086/expmap_501897601_502156801_4FGL_J0746.6-4754_daily_bin1013.fits
Exposure cube: /scratch/kocevski/854086/ltcube_501897601_502156801_4FGL_J0746.6-4754_daily_bin1013.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/854086/Model_4FGL_J0746.6-4754_daily_bin1013.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) = 35039.4251428

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    .10005E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    20.335       1.0000         .10000E-03   10000.    
     5 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .11752E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10121E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    .63560       1.0000         .10000E-03   10000.    
    11 'Prefactor '    2.4787       1.0000         .10000E-03   10000.    
    12 'Prefactor '    23.681       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    .79572       1.0000         .10000E-03   10000.    
    15 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    15.829       1.0000         .10000E-03   10000.    
    17 'Prefactor '    9.0179       1.0000         .10000E-03   10000.    
    18 'Prefactor '    3.5289       1.0000         .10000E-03   10000.    
    19 'Normalizat'    .77413       1.0000         .10000E-01   10.000    
    20 'Prefactor '    1.0431       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .7380E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   35039.40     FROM MIGRAD    STATUS=CONVERGED    436 CALLS     2122 TOTAL
                     EDM=   .14E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    27.279        .24769E-05** at limit **
   2  Prefactor     .10000E-03    8.6998        .27537E-06** at limit **
   3  norm          .10000E-03    3.0367       -.42956E-07** at limit **
   4  norm          20.334        21.238        .11541E-05    .50066E-05
   5  norm          .10000E-03    2.1940       -.17460E-06** at limit **
   6  norm          .10000E-03    4.6701        .56045E-07** at limit **
   7  Prefactor     .10001E-03    2.2085        .49992E-06** at limit **
   8  Prefactor     .10000E-03    226.64       -.32922E-06** at limit **
   9  Prefactor     .10000E-03    18.226        .66679E-05** at limit **
  10  norm          .63642        .37316        .83720E-07   -.12284E-02
  11  Prefactor     2.4773        6.7881       -.58138E-05   -.12311E-03
  12  Prefactor     23.679        29.754       -.25671E-06    .11237E-04
  13  Prefactor     .10000E-03    1.9331       -.32296E-07** at limit **
  14  norm          .79461        4.4725       -.70613E-06   -.54087E-04
  15  norm          .10000E-03    20.906       -.80110E-05** at limit **
  16  Prefactor     15.854        365.19        .60547E-04    .10379E-04
  17  Prefactor     8.9775        103.17       -.82492E-04   -.41148E-05
  18  Prefactor     3.5308        28.255       -.60721E-05    .45006E-05
  19  Normalizat    .77424        .21406        .19025E-05    .11464E-03
  20  Prefactor     1.0431        .40788E-01    .73845E-06    .22213E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 20.334
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.000100008
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.636419
  Prefactor  = 2.47726
  Prefactor  = 23.6786
  Prefactor  = 0.0001
  norm       = 0.794608
  norm       = 0.0001
  Prefactor  = 15.8538
  Prefactor  = 8.97751
  Prefactor  = 3.53076
  Normalizat = 0.774237
  Prefactor  = 1.04309
 **********
 **   18 **HESSE 
 **********

 FCN=   35039.40     FROM HESSE     STATUS=OK           297 CALLS     2419 TOTAL
                     EDM=   .33E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    27.278        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    8.7300        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          .10000E-03    3.0610        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          20.334        21.220        .88819E-04   -1.4806    
   5  norm          .10000E-03    2.2056        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          .10000E-03    4.6870        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10001E-03    13.958        .51894E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    226.81        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    18.266        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          .63642        2.0024        .71723E-01   -1.5548    
  11  Prefactor     2.4773        6.6783        .25968E-03   -1.5393    
  12  Prefactor     23.679        29.762        .82313E-04   -1.4734    
  13  Prefactor     .10000E-03    1.9440        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .79461        4.5648        .49696E-03   -1.5530    
  15  norm          .10000E-03    20.900        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     15.854        368.27        .10067E-03   -1.4911    
  17  Prefactor     8.9775        103.24        .13347E-03   -1.5109    
  18  Prefactor     3.5308        28.409        .21519E-03   -1.5332    
  19  Normalizat    .77424        .20991        .10295E-02   -1.0103    
  20  Prefactor     1.0431        .41252E-01    .17013E-03   -.91307    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.29228e-09
Minuit parameter uncertainties:
  1  4.52612e-06
  2  1.06089e-05
  3  8.62662e-06
  4  21.2274
  5  5.84873e-06
  6  8.28935e-06
  7  0.000670494
  8  2.27319e-05
  9  2.74484e-05
  10  2.00265
  11  6.68031
  12  29.7802
  13  3.07165e-06
  14  3.80928
  15  3.41356e-06
  16  153.898
  17  61.021
  18  20.0434
  19  0.210124
  20  0.0412531
Done.

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

Extracting fit parameters...

4FGL J0746.6-4754
   Spectrum: PowerLaw
353    Prefactor:  1.000e-04  3.072e-06  1.000e-04  1.000e+04 ( 1.000e-13)
354        Index:  2.010e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
355        Scale:  2.378e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
725    Prefactor:  1.043e+00  4.125e-02  0.000e+00  1.000e+01 ( 1.000e+00)
726        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
727        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
724   Normalization:  7.742e-01  2.101e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 116.669 -47.916
Photon Flux Upper Limit: 5.12e-08 ph cm-2 s-1
Energy Flux Upper Limit: 3.84e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/854086/likelihoodResults_501897601_502156801_4FGL_J0746.6-4754_daily_bin1013.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) = 35039.3988494
delta logL = -0.00245115742291

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 35039.396396
delta logL = 2.19099456444e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    1.9625       1.0000          .0000       10.000    
     3 'Normalizat'    .77421       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0431       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .7380E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   35039.36     FROM MIGRAD    STATUS=FAILED       155 CALLS      310 TOTAL
                     EDM=   .65E-02    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .29034        21.828         .0000        .63338E-02
   2  Index         .47362        5.6088         .0000        .22871E-01
   3  Normalizat    .77020        .38109E-01     .0000        .23014E-03
   4  Prefactor     1.0434        .72462E-02     .0000        .19697E-04
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   35039.36     FROM SIMPLEX   STATUS=UNCHANGED     73 CALLS      383 TOTAL
                     EDM=   .14E-04    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .29034        21.828        .27550E-03    .63338E-02
   2  Index         .47362        5.6088        .86469E-02    .22871E-01
   3  Normalizat    .77020        .38109E-01    .11362E-03    .23014E-03
   4  Prefactor     1.0434        .72462E-02    .25759E-04    .19697E-04
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   35039.36     FROM MIGRAD    STATUS=FAILED        53 CALLS      436 TOTAL
                     EDM=   .21E-01    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .29034        131.72         .0000        .24894E-01
   2  Index         .47363        9.6592         .0000        .22862E-01
   3  Normalizat    .77020        .77687E-01     .0000        .36475E-04
   4  Prefactor     1.0434        .14901E-01     .0000        .57744E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.290343
  Index      = 0.473633
  Normalizat = 0.770203
  Prefactor  = 1.04344
 **********
 **   18 **HESSE 
 **********

 FCN=   35039.36     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      465 TOTAL
                     EDM=   .53E-01    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .29034        154.86        .61926E-03   -1.5600    
   2  Index         .47363        8.3715        .50000       -2.0096    
   3  Normalizat    .77020        .87760E-01    .41292E-04   -1.0118    
   4  Prefactor     1.0434        .16789E-01    .68042E-05   -.91295    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 0.0531804
Minuit parameter uncertainties:
  1  13.4436
  2  21.4485
  3  0.0877757
  4  0.0167894
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/854086': 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): 1
logL (Free Index) = 35039.3622963
delta logL = 0.0341019416592

Extracting fit parameters...

4FGL J0746.6-4754
   Spectrum: PowerLaw
353    Prefactor:  2.903e-01  1.344e+01  1.000e-04  1.000e+04 ( 1.000e-13)
354        Index:  4.736e-01  2.145e+01  0.000e+00  1.000e+01 (-1.000e+00)
355        Scale:  2.378e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
725    Prefactor:  1.043e+00  1.679e-02  0.000e+00  1.000e+01 ( 1.000e+00)
726        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
727        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
724   Normalization:  7.702e-01  8.778e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 116.669 -47.916

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/854086/cmap_HighResolution_501897601_502156801_4FGL_J0746.6-4754_daily_bin1013.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.84e-03', job_status='DONE', photon_flux_upper_limit='5.12e-08', time_completed='2021-08-28 12:29:00.191135', job_id='854086', GAL2='1.04', fit_tolerance='1e-08', EG2='0.77', EG='0.77', time_epoch_completed='1630178940.19', return_code2='1', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.04', dlogl='3.41e-02', ts2='0.07', photon_index_error='0.00', photon_index='2.01' WHERE bin_id='1013' AND source_name='4FGL J0746.6-4754' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Aug 28 12:29:00 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0157>
Subject: Job 854086: <4FGL_J0746.6-4754_daily_bin1013> in cluster <slac> Done

Job <4FGL_J0746.6-4754_daily_bin1013> was submitted from host <rhel6-64e> by user <kocevski> in cluster <slac> at Sat Aug 28 11:30:29 2021
Job was executed on host(s) <bullet0157>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Aug 28 11:30:30 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sat Aug 28 11:30:30 2021
Terminated at Sat Aug 28 12:29:00 2021
Results reported at Sat Aug 28 12:29:00 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0746.6-4754_daily_bin1013 116.669 -47.9155 501897601 502156801 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J0746.6-4754 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   3485.57 sec.
    Max Memory :                                 664 MB
    Average Memory :                             447.39 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   2938 MB
    Max Processes :                              6
    Max Threads :                                21
    Run time :                                   3510 sec.
    Turnaround time :                            3511 sec.

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

