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


Performing analysis on: 4FGL_J0746.3-0225_daily_bin789
RA = 116.599, Dec = -2.428
tmin = 443836801, tmax = 444096001
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='818570', job_status='RUN', time_executed='2021-08-28 09:46:11.801307', time_epoch_executed='1630169171.8' WHERE source_name='4FGL J0746.3-0225' and cadence='daily' and bin_id='789'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/818570

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/818570/ft1_4FGL_J0746.3-0225_daily_bin789.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/818570/ft2_4FGL_J0746.3-0225_daily_bin789.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/818570/ft1_4FGL_J0746.3-0225_daily_bin789.fits outfile=/scratch/kocevski/818570/ft1_filteredMKT_4FGL_J0746.3-0225_daily_bin789.fits ra=116.599 dec=-2.428 rad=12.0 tmin=443836801.0 tmax=444096001.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 5.77
user 3.26
sys 2.42

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/818570/ft2_4FGL_J0746.3-0225_daily_bin789.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/818570/ft2_4FGL_J0746.3-0225_daily_bin789.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/818570/ft1_filteredMKT_4FGL_J0746.3-0225_daily_bin789.fits evtable="EVENTS" outfile="/scratch/kocevski/818570/ft1_filtered_4FGL_J0746.3-0225_daily_bin789.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 2.72
user 0.33
sys 2.37

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/818570/ft1_filtered_4FGL_J0746.3-0225_daily_bin789.fits" evtable="EVENTS" scfile=/scratch/kocevski/818570/ft2_4FGL_J0746.3-0225_daily_bin789.fits sctable="SC_DATA" outfile=/scratch/kocevski/818570/ltcube_443836801_444096001_4FGL_J0746.3-0225_daily_bin789.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/818570/ft2_4FGL_J0746.3-0225_daily_bin789.fits
.....................!
real 14.31
user 11.31
sys 2.91

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/818570/ft1_filtered_4FGL_J0746.3-0225_daily_bin789.fits evtable="EVENTS" scfile=/scratch/kocevski/818570/ft2_4FGL_J0746.3-0225_daily_bin789.fits sctable="SC_DATA" expcube=/scratch/kocevski/818570/ltcube_443836801_444096001_4FGL_J0746.3-0225_daily_bin789.fits outfile=/scratch/kocevski/818570/expmap_443836801_444096001_4FGL_J0746.3-0225_daily_bin789.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/818570/ltcube_443836801_444096001_4FGL_J0746.3-0225_daily_bin789.fits
.....................!
real 197.34
user 187.31
sys 8.89

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 Rosette in ROI, make sure /nfs/farm/g/glast/g/LCRepository/Likelihood/ExtendedSources/Extended_archive_v18/Templates/Rosette.fits is the correct path to the extended template.
Extended source Monoceros in ROI with RadialGaussian spatial model.
Added 149 point sources and 2 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.3-0225 @ 116.599 -2.428

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/818570/ft1_filtered_4FGL_J0746.3-0225_daily_bin789.fits scfile=/scratch/kocevski/818570/ft2_4FGL_J0746.3-0225_daily_bin789.fits outfile=/scratch/kocevski/818570/cmap_443836801_444096001_4FGL_J0746.3-0225_daily_bin789.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.599 yref=-2.428 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 2.75
user 0.38
sys 2.34

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/818570/ft1_filtered_4FGL_J0746.3-0225_daily_bin789.fits scfile=/scratch/kocevski/818570/ft2_4FGL_J0746.3-0225_daily_bin789.fits outfile=/scratch/kocevski/818570/cmap_HighResolution_443836801_444096001_4FGL_J0746.3-0225_daily_bin789.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.599 yref=-2.428 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 2.76
user 0.39
sys 2.31

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/818570/ft1_filtered_4FGL_J0746.3-0225_daily_bin789.fits evtable="EVENTS" scfile=/scratch/kocevski/818570/ft2_4FGL_J0746.3-0225_daily_bin789.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/818570/Model_4FGL_J0746.3-0225_daily_bin789.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 Monoceros
adding source Rosette
Working on...
/scratch/kocevski/818570/ft1_filtered_4FGL_J0746.3-0225_daily_bin789.fits.....................!
real 145.91
user 141.10
sys 4.17

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/818570/ft1_filtered_4FGL_J0746.3-0225_daily_bin789.fits', '/scratch/kocevski/818570/ft2_4FGL_J0746.3-0225_daily_bin789.fits', expMap='/scratch/kocevski/818570/expmap_443836801_444096001_4FGL_J0746.3-0225_daily_bin789.fits', expCube='/scratch/kocevski/818570/ltcube_443836801_444096001_4FGL_J0746.3-0225_daily_bin789.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/818570/Model_4FGL_J0746.3-0225_daily_bin789.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J0746.3-0225'

4FGL J0746.3-0225
   Spectrum: PowerLaw
196    Prefactor:  3.439e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-14)
197        Index:  1.857e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
198        Scale:  3.639e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/818570/ft1_filtered_4FGL_J0746.3-0225_daily_bin789.fits
Spacecraft file(s): /scratch/kocevski/818570/ft2_4FGL_J0746.3-0225_daily_bin789.fits
Exposure map: /scratch/kocevski/818570/expmap_443836801_444096001_4FGL_J0746.3-0225_daily_bin789.fits
Exposure cube: /scratch/kocevski/818570/ltcube_443836801_444096001_4FGL_J0746.3-0225_daily_bin789.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/818570/Model_4FGL_J0746.3-0225_daily_bin789.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) = 9115.39973493

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    8.0728       1.0000         .10000E-03   10000.    
     3 'norm      '    1.6610       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    11.574       1.0000         .10000E-03   10000.    
     6 'norm      '    6.3169       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .91601E-02   1.0000         .10000E-03   10000.    
     8 'Prefactor '    15.811       1.0000         .10000E-03   10000.    
     9 'norm      '    6.0016       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    1.5824       1.0000         .10000E-03   10000.    
    14 'Prefactor '    7.2894       1.0000         .10000E-03   10000.    
    15 'Prefactor '    28.481       1.0000         .10000E-03   10000.    
    16 'norm      '    40.580       1.0000         .10000E-03   10000.    
    17 'norm      '    2.0855       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10198E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    2.3868       1.0000         .10000E-03   10000.    
    20 'norm      '    .10354E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    2.2837       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    24 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    25 'Normalizat'    1.3273       1.0000         .10000E-01   10.000    
    26 'Prefactor '    .96190       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5110E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   9115.395     FROM MIGRAD    STATUS=CONVERGED    619 CALLS     3073 TOTAL
                     EDM=   .88E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    8.7102       -.27876E-06** at limit **
   2  norm          8.0732        6.9856       -.15458E-06   -.13121E-03
   3  norm          1.6610        1.7138       -.47598E-07   -.31451E-03
   4  Prefactor     .10000E-03    34.514        .15057E-05** at limit **
   5  Prefactor     11.573        9.3116       -.43363E-07   -.72656E-05
   6  norm          6.3171        2.1675       -.25095E-07   -.17465E-03
   7  Prefactor     .10000E-03    6.7367       -.14828E-06** at limit **
   8  Prefactor     15.807        25.439       -.13281E-05    .30008E-04
   9  norm          6.0009        2.7423       -.36700E-07   -.29285E-03
  10  Prefactor     .10000E-03    13.085       -.26027E-05** at limit **
  11  norm          .10000E-03    4.9520        .10715E-08** at limit **
  12  norm          .10000E-03    9.9648        .12349E-05** at limit **
  13  norm          1.5833        3.4582       -.11589E-05   -.12029E-02
  14  Prefactor     7.2883        10.455       -.34725E-06   -.55394E-04
  15  Prefactor     28.479        34.322       -.12388E-05    .17144E-04
  16  norm          40.575        17.958        .33207E-06   -.41087E-04
  17  norm          2.0853        2.6409       -.21207E-06   -.66735E-03
  18  Prefactor     .10000E-03    16.685        .55348E-05** at limit **
  19  norm          2.3868        1.3756       -.12523E-07   -.28193E-03
  20  norm          .10000E-03    17.157        .24379E-05** at limit **
  21  norm          2.2834        2.4892        .45694E-07    .18672E-03
  22  Prefactor     .10000E-03    19.673       -.68346E-05** at limit **
  23  Prefactor     .10000E-03    4.6482       -.29799E-08** at limit **
  24  norm          .10000E-03    10.077       -.39795E-06** at limit **
  25  Normalizat    1.3275        .23292        .45891E-06   -.41062E-04
  26  Prefactor     .96182        .72946E-01    .83491E-07   -.10242E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  norm       = 8.07318
  norm       = 1.66097
  Prefactor  = 0.0001
  Prefactor  = 11.5732
  norm       = 6.31705
  Prefactor  = 0.000100004
  Prefactor  = 15.8075
  norm       = 6.00089
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  norm       = 1.58331
  Prefactor  = 7.28828
  Prefactor  = 28.479
  norm       = 40.5748
  norm       = 2.08531
  Prefactor  = 0.000100001
  norm       = 2.38683
  norm       = 0.0001
  norm       = 2.28342
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  norm       = 0.0001
  Normalizat = 1.32753
  Prefactor  = 0.961823
 **********
 **   18 **HESSE 
 **********

 FCN=   9115.395     FROM HESSE     STATUS=OK           464 CALLS     3537 TOTAL
                     EDM=   .18E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    8.7203        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          8.0732        7.0276        .14111E-03   -1.5140    
   3  norm          1.6610        1.7083        .12158E-03   -1.5450    
   4  Prefactor     .10000E-03    34.545        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     11.573        9.3096        .11775E-03   -1.5027    
   6  norm          6.3171        2.1767        .78065E-04   -1.5205    
   7  Prefactor     .10000E-03    88.971        .47681E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     15.807        25.396        .10073E-03   -1.4913    
   9  norm          6.0009        2.7497        .10007E-03   -1.5218    
  10  Prefactor     .10000E-03    12.935        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .10000E-03    4.9537        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          .10000E-03    9.9313        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          1.5833        3.8650        .28386E-03   -1.5456    
  14  Prefactor     7.2883        10.432        .14856E-03   -1.5168    
  15  Prefactor     28.479        34.564        .75071E-04   -1.4640    
  16  norm          40.575        18.014        .62925E-04   -1.4433    
  17  norm          2.0853        2.6411        .16635E-03   -1.5419    
  18  Prefactor     .10000E-03    16.275        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          2.3868        1.3728        .80442E-04   -1.5399    
  20  norm          .10000E-03    17.100        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          2.2834        2.4933        .15275E-03   -1.5406    
  22  Prefactor     .10000E-03    18.580        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    4.6712        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm          .10000E-03    10.096        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Normalizat    1.3275        .24920        .42818E-03   -.82748    
  26  Prefactor     .96182        .78395E-01    .16474E-03   -.94013    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.79453e-09
Minuit parameter uncertainties:
  1  8.55414e-06
  2  7.0283
  3  1.70835
  4  9.55018e-05
  5  9.31078
  6  2.17672
  7  0.00121672
  8  25.4134
  9  2.74973
  10  0.000102118
  11  8.57416e-08
  12  4.29588e-05
  13  3.86558
  14  10.4346
  15  34.5878
  16  18.0166
  17  2.64128
  18  0.000278024
  19  1.37286
  20  8.78636e-05
  21  2.49337
  22  0.000327317
  23  1.68392e-06
  24  1.29127e-05
  25  0.24943
  26  0.0784041
Done.

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

Extracting fit parameters...

4FGL J0746.3-0225
   Spectrum: PowerLaw
196    Prefactor:  1.000e-04  1.021e-04  1.000e-04  1.000e+04 ( 1.000e-14)
197        Index:  1.857e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
198        Scale:  3.639e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
500    Prefactor:  9.618e-01  7.840e-02  0.000e+00  1.000e+01 ( 1.000e+00)
501        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
502        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
499   Normalization:  1.328e+00  2.494e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 116.599 -2.428
Photon Flux Upper Limit: 5.83e-08 ph cm-2 s-1
Energy Flux Upper Limit: 4.32e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/818570/likelihoodResults_443836801_444096001_4FGL_J0746.3-0225_daily_bin789.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) = 9115.3958513
delta logL = -0.000368240303942

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 9115.39548305
delta logL = 1.57433532877e-08

Fit tolerance = 1e-08

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

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

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   9115.395     FROM MIGRAD    STATUS=CONVERGED     54 CALLS      209 TOTAL
                     EDM=   .15E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    884.94        .90712E-02** at limit **
   2  Index         1.8366        5.7131        .50000        .59969E-05
   3  Normalizat    1.3275        .63042E-01    .96655E-01    .11294E-04
   4  Prefactor     .96182        .21173E-01    .45788E-01   -.83585E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 1.83659
  Normalizat = 1.32753
  Prefactor  = 0.961823
 **********
 **   18 **HESSE 
 **********

 FCN=   9115.395     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      242 TOTAL
                     EDM=   .14E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    830.08        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         1.8366        5.1108        .50000       -.68501    
   3  Normalizat    1.3275        .60482E-01    .42818E-03   -.82748    
   4  Prefactor     .96182        .20364E-01    .16474E-03   -.94013    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.41674e-09
Minuit parameter uncertainties:
  1  0.000287578
  2  31.4053
  3  0.0604849
  4  0.0203637
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/818570': 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) = 9115.39548303
delta logL = 3.3031028579e-08

Extracting fit parameters...

4FGL J0746.3-0225
   Spectrum: PowerLaw
196    Prefactor:  1.000e-04  2.876e-04  1.000e-04  1.000e+04 ( 1.000e-14)
197        Index:  1.837e+00  3.141e+01  0.000e+00  1.000e+01 (-1.000e+00)
198        Scale:  3.639e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
500    Prefactor:  9.618e-01  2.036e-02  0.000e+00  1.000e+01 ( 1.000e+00)
501        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
502        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
499   Normalization:  1.328e+00  6.048e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 116.599 -2.428

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/818570/cmap_HighResolution_443836801_444096001_4FGL_J0746.3-0225_daily_bin789.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.32e-03', job_status='DONE', photon_flux_upper_limit='5.83e-08', time_completed='2021-08-28 10:01:55.815894', job_id='818570', GAL2='0.96', fit_tolerance='1e-08', EG2='1.33', EG='1.33', time_epoch_completed='1630170115.82', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.96', dlogl='3.30e-08', ts2='-0.00', photon_index_error='0.00', photon_index='1.86' WHERE bin_id='789' AND source_name='4FGL J0746.3-0225' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Aug 28 10:01:55 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0267>
Subject: Job 818570: <4FGL_J0746.3-0225_daily_bin789> in cluster <slac> Done

Job <4FGL_J0746.3-0225_daily_bin789> was submitted from host <rhel6-64j> by user <kocevski> in cluster <slac> at Sat Aug 28 09:45:24 2021
Job was executed on host(s) <bullet0267>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Aug 28 09:45:25 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sat Aug 28 09:45:25 2021
Terminated at Sat Aug 28 10:01:56 2021
Results reported at Sat Aug 28 10:01:56 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0746.3-0225_daily_bin789 116.599 -2.428 443836801 444096001 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J0746.3-0225 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   975.00 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             311.28 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   991 sec.
    Turnaround time :                            992 sec.

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

