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


Performing analysis on: 4FGL_J0746.3-0225_daily_bin1456
RA = 116.599, Dec = -2.428
tmin = 616723201, tmax = 616982401
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='823394', job_status='RUN', time_executed='2021-08-28 10:02:20.091420', time_epoch_executed='1630170140.09' WHERE source_name='4FGL J0746.3-0225' and cadence='daily' and bin_id='1456'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/823394

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/823394/ft1_4FGL_J0746.3-0225_daily_bin1456.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/823394/ft2_4FGL_J0746.3-0225_daily_bin1456.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/823394/ft1_4FGL_J0746.3-0225_daily_bin1456.fits outfile=/scratch/kocevski/823394/ft1_filteredMKT_4FGL_J0746.3-0225_daily_bin1456.fits ra=116.599 dec=-2.428 rad=12.0 tmin=616723201.0 tmax=616982401.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 9.41
user 2.84
sys 4.21

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/823394/ft1_filtered_4FGL_J0746.3-0225_daily_bin1456.fits" evtable="EVENTS" scfile=/scratch/kocevski/823394/ft2_4FGL_J0746.3-0225_daily_bin1456.fits sctable="SC_DATA" outfile=/scratch/kocevski/823394/ltcube_616723201_616982401_4FGL_J0746.3-0225_daily_bin1456.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/823394/ft2_4FGL_J0746.3-0225_daily_bin1456.fits
.....................!
real 17.38
user 12.35
sys 4.88

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/823394/ft1_filtered_4FGL_J0746.3-0225_daily_bin1456.fits evtable="EVENTS" scfile=/scratch/kocevski/823394/ft2_4FGL_J0746.3-0225_daily_bin1456.fits sctable="SC_DATA" expcube=/scratch/kocevski/823394/ltcube_616723201_616982401_4FGL_J0746.3-0225_daily_bin1456.fits outfile=/scratch/kocevski/823394/expmap_616723201_616982401_4FGL_J0746.3-0225_daily_bin1456.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/823394/ltcube_616723201_616982401_4FGL_J0746.3-0225_daily_bin1456.fits
.....................!
real 194.72
user 183.45
sys 10.76

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/823394/ft1_filtered_4FGL_J0746.3-0225_daily_bin1456.fits scfile=/scratch/kocevski/823394/ft2_4FGL_J0746.3-0225_daily_bin1456.fits outfile=/scratch/kocevski/823394/cmap_616723201_616982401_4FGL_J0746.3-0225_daily_bin1456.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 4.65
user 0.37
sys 4.22

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/823394/ft1_filtered_4FGL_J0746.3-0225_daily_bin1456.fits scfile=/scratch/kocevski/823394/ft2_4FGL_J0746.3-0225_daily_bin1456.fits outfile=/scratch/kocevski/823394/cmap_HighResolution_616723201_616982401_4FGL_J0746.3-0225_daily_bin1456.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 4.69
user 0.40
sys 4.26

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/823394/ft1_filtered_4FGL_J0746.3-0225_daily_bin1456.fits evtable="EVENTS" scfile=/scratch/kocevski/823394/ft2_4FGL_J0746.3-0225_daily_bin1456.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/823394/Model_4FGL_J0746.3-0225_daily_bin1456.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/823394/ft1_filtered_4FGL_J0746.3-0225_daily_bin1456.fits.....................!
real 101.20
user 93.89
sys 6.52

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/823394/ft1_filtered_4FGL_J0746.3-0225_daily_bin1456.fits', '/scratch/kocevski/823394/ft2_4FGL_J0746.3-0225_daily_bin1456.fits', expMap='/scratch/kocevski/823394/expmap_616723201_616982401_4FGL_J0746.3-0225_daily_bin1456.fits', expCube='/scratch/kocevski/823394/ltcube_616723201_616982401_4FGL_J0746.3-0225_daily_bin1456.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/823394/Model_4FGL_J0746.3-0225_daily_bin1456.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/823394/ft1_filtered_4FGL_J0746.3-0225_daily_bin1456.fits
Spacecraft file(s): /scratch/kocevski/823394/ft2_4FGL_J0746.3-0225_daily_bin1456.fits
Exposure map: /scratch/kocevski/823394/expmap_616723201_616982401_4FGL_J0746.3-0225_daily_bin1456.fits
Exposure cube: /scratch/kocevski/823394/ltcube_616723201_616982401_4FGL_J0746.3-0225_daily_bin1456.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/823394/Model_4FGL_J0746.3-0225_daily_bin1456.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) = 5401.7342853

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Fixed Index): 102
logL (Fixed Index) = 5401.71112206

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .14368E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    .12400E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .14024E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .13309E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    1.2738       1.0000         .10000E-03   10000.    
     7 'Prefactor '    17.605       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .31680E-02   1.0000         .10000E-03   10000.    
     9 'norm      '    16.243       1.0000         .10000E-03   10000.    
    10 'Prefactor '    122.37       1.0000         .10000E-03   10000.    
    11 'norm      '    54.711       1.0000         .10000E-03   10000.    
    12 'norm      '    1.1963       1.0000         .10000E-03   10000.    
    13 'norm      '    5.8877       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .31903E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .22769E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .46524E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .10170E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    19.361       1.0000         .10000E-03   10000.    
    19 'norm      '    2.9134       1.0000         .10000E-03   10000.    
    20 'norm      '    .20774E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    .19922E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .23685E-02   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .41249E-03   1.0000         .10000E-03   10000.    
    24 'norm      '    20.083       1.0000         .10000E-03   10000.    
    25 'Normalizat'    .16887       1.0000         .10000E-01   10.000    
    26 'Prefactor '    1.0379       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.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   5401.709     FROM MIGRAD    STATUS=CONVERGED   1180 CALLS     3234 TOTAL
                     EDM=   .19E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    76.677        .18142E-02** at limit **
   2  norm          .10000E-03    4.9560        .15906E-02** at limit **
   3  norm          .10000E-03    1.5342        .88571E-03** at limit **
   4  Prefactor     .10000E-03    78.835        .18142E-02** at limit **
   5  Prefactor     .10000E-03    18.505        .18142E-02** at limit **
   6  norm          1.2774        1.6306        .10015E-03   -.49199E-03
   7  Prefactor     18.066        31.428        .95455E-04   -.11076E-03
   8  Prefactor     .10000E-03    36.800        .19769E-02** at limit **
   9  norm          16.191        7.1332        .99378E-04   -.25591E-03
  10  Prefactor     127.26        92.235        .36383E-04   -.36685E-04
  11  norm          55.636        32.877        .54229E-04   -.77064E-04
  12  norm          7.6315        1646.3        .41564E-03   -.26532E-05
  13  norm          5.9661        5.9489        .16550E-03   -.22820E-03
  14  Prefactor     .10000E-03    70.273        .50483E-02** at limit **
  15  Prefactor     .10000E-03    43.228        .18142E-02** at limit **
  16  norm          .10000E-03    25.710        .21193E-02** at limit **
  17  norm          .10000E-03    2.2660        .10730E-02** at limit **
  18  Prefactor     19.188        15.432        .91025E-04   -.15537E-03
  19  norm          2.9243        2.0726        .82111E-04   -.39252E-03
  20  norm          .10000E-03    42.784        .18142E-02** at limit **
  21  norm          .10000E-03    3.5075        .13442E-02** at limit **
  22  Prefactor     .10000E-03    182.75        .20071E-02** at limit **
  23  Prefactor     .10000E-03    4.8278        .15756E-02** at limit **
  24  norm          20.232        21.474        .89376E-04   -.23787E-04
  25  Normalizat    .16109        .40504        .12208E-01   -.42773E-04
  26  Prefactor     1.0382        .90898E-01    .13476E-03   -.32377E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 1.27737
  Prefactor  = 18.0657
  Prefactor  = 0.0001
  norm       = 16.1914
  Prefactor  = 127.26
  norm       = 55.6361
  norm       = 7.63148
  norm       = 5.96612
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 19.1875
  norm       = 2.92431
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  norm       = 20.2325
  Normalizat = 0.161089
  Prefactor  = 1.03815
 **********
 **   18 **HESSE 
 **********

 FCN=   5401.709     FROM HESSE     STATUS=OK           432 CALLS     3666 TOTAL
                     EDM=   .21E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    76.699        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .10000E-03    4.9571        .31812E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          .10000E-03    1.5343        .17714E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    78.837        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    18.516        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          1.2774        1.6303        .40059E-05   -1.5482    
   7  Prefactor     18.066        31.319        .38182E-05   -1.4858    
   8  Prefactor     .10000E-03    36.800        .39537E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          16.191        7.1179        .39751E-05   -1.4903    
  10  Prefactor     127.26        91.943        .72765E-05   -1.3447    
  11  norm          55.636        32.860        .10846E-04   -1.4215    
  12  norm          7.6315        1641.2        .16626E-04   -1.5155    
  13  norm          5.9661        5.9424        .66201E-05   -1.5219    
  14  Prefactor     .10000E-03    71.441        .10097E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    43.228        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10000E-03    25.715        .42385E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .10000E-03    2.2663        .21460E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     19.188        15.377        .36410E-05   -1.4832    
  19  norm          2.9243        2.0640        .32845E-05   -1.5366    
  20  norm          .10000E-03    42.784        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          .10000E-03    3.5075        .26884E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    182.75        .40142E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    4.8279        .31511E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm          20.232        21.461        .35750E-05   -1.4808    
  25  Normalizat    .16109        .38890        .48832E-03   -1.3242    
  26  Prefactor     1.0382        .88430E-01    .26952E-04   -.91468    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.10469e-10
Minuit parameter uncertainties:
  1  0.000148143
  2  5.51728e-06
  3  7.83331e-08
  4  1.5627e-05
  5  8.12295e-05
  6  1.6304
  7  31.3471
  8  2.98972e-06
  9  7.11829
  10  92.046
  11  32.8703
  12  230.551
  13  5.943
  14  0.000133363
  15  3.12144e-05
  16  5.38069e-05
  17  4.5061e-06
  18  15.38
  19  2.06409
  20  2.71545e-05
  21  1.41414e-06
  22  0.000803492
  23  2.43629e-05
  24  21.4691
  25  0.395812
  26  0.0884427
Done.

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

Extracting fit parameters...

4FGL J0746.3-0225
   Spectrum: PowerLaw
196    Prefactor:  1.273e+02  9.205e+01  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:  1.038e+00  8.844e-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.611e-01  3.958e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 12.05
Ra Dec: 116.599 -2.428
Photon Index (Fixed Index): 1.86 +/- 0.00
Photon Flux (Fixed Index): 1.17e-07 +/- 8.49e-08
Energy Flux (Fixed Index): 1.19e-04 +/- 8.59e-05

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) = 5400.00210054
delta logL = 1.70640360645

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5399.99592054
delta logL = 1.71258360429

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    46.331       1.0000         .10000E-03   10000.    
     2 'Index     '    2.6897       1.0000          .0000       10.000    
     3 'Normalizat'    .10001E-01   1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0429       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.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   5399.996     FROM MIGRAD    STATUS=CONVERGED     86 CALLS      305 TOTAL
                     EDM=   .11E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     46.345        58.989        .58906E-04   -.11109E-03
   2  Index         2.6894        .51123        .23071E-02    .81116E-03
   3  Normalizat    .10000E-01    .42567        .17282E-01** at limit **
   4  Prefactor     1.0429        .58340E-01    .13383E-03    .29050E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 46.3453
  Index      = 2.68945
  Normalizat = 0.01
  Prefactor  = 1.04292
 **********
 **   18 **HESSE 
 **********

 FCN=   5399.996     FROM HESSE     STATUS=OK            25 CALLS      330 TOTAL
                     EDM=   .28E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     46.345        48.367        .11781E-04   -1.4345    
   2  Index         2.6894        .41923        .46143E-03   -.48037    
   3  Normalizat    .10000E-01    .42656        .34563E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     1.0429        .58218E-01    .26767E-04   -.91312    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.76631e-10
Minuit parameter uncertainties:
  1  48.4084
  2  0.419856
  3  1.31979e-05
  4  0.0582215
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/823394': 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) = 5399.99591894
delta logL = 1.71258521354

Extracting fit parameters...

4FGL J0746.3-0225
   Spectrum: PowerLaw
196    Prefactor:  4.635e+01  4.841e+01  1.000e-04  1.000e+04 ( 1.000e-14)
197        Index:  2.689e+00  4.199e-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:  1.043e+00  5.822e-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.000e-02  1.320e-05  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 16.18
Ra Dec: 116.599 -2.428
Photon Index (Free Index): 2.69 +/- 0.42
Photon Flux (Free Index): 4.33e-07 +/- 2.11e-07
Energy Flux (Free Index): 1.05e-04 +/- 4.13e-05

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/823394/cmap_HighResolution_616723201_616982401_4FGL_J0746.3-0225_daily_bin1456.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='1.17e-07', energy_flux2='1.05e-04', photon_flux_error='8.49e-08', dlogl='1.71e+00', energy_flux='1.19e-04', photon_flux2='4.33e-07', job_status='DONE', time_completed='2021-08-28 10:13:30.047408', photon_index_error2='0.42', photon_index2='2.69', ts='12.05', fit_tolerance='1e-08', GAL='1.04', photon_index_error='0.00', energy_flux_error2='4.13e-05', EG='0.16', time_epoch_completed='1630170810.05', return_code='0', job_id='823394', GAL2='1.04', EG2='0.01', return_code2='0', energy_flux_error='8.59e-05', photon_flux_error2='2.11e-07', ts2='16.18', photon_index='1.86' WHERE bin_id='1456' AND source_name='4FGL J0746.3-0225' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Aug 28 10:13:30 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0181>
Subject: Job 823394: <4FGL_J0746.3-0225_daily_bin1456> in cluster <slac> Done

Job <4FGL_J0746.3-0225_daily_bin1456> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Sat Aug 28 10:00:52 2021
Job was executed on host(s) <bullet0181>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Aug 28 10:00:58 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sat Aug 28 10:00:58 2021
Terminated at Sat Aug 28 10:13:31 2021
Results reported at Sat Aug 28 10:13:31 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0746.3-0225_daily_bin1456 116.599 -2.428 616723201 616982401 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 :                                   729.06 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             310.00 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              7
    Max Threads :                                21
    Run time :                                   752 sec.
    Turnaround time :                            759 sec.

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

