/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 = 7653
number of fields = 22
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J0746.4+2546_daily_bin35
RA = 116.602, Dec = 25.7678
tmin = 248400001, tmax = 248659201
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='824700', job_status='RUN', time_executed='2021-08-28 10:06:54.850357', time_epoch_executed='1630170414.85' WHERE source_name='4FGL J0746.4+2546' and cadence='daily' and bin_id='35'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/824700

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/824700/ft1_4FGL_J0746.4+2546_daily_bin35.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/824700/ft2_4FGL_J0746.4+2546_daily_bin35.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/824700/ft1_4FGL_J0746.4+2546_daily_bin35.fits outfile=/scratch/kocevski/824700/ft1_filteredMKT_4FGL_J0746.4+2546_daily_bin35.fits ra=116.602 dec=25.7678 rad=12.0 tmin=248400001.0 tmax=248659201.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.85
user 1.23
sys 3.36

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/824700/ft2_4FGL_J0746.4+2546_daily_bin35.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/824700/ft2_4FGL_J0746.4+2546_daily_bin35.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/824700/ft1_filteredMKT_4FGL_J0746.4+2546_daily_bin35.fits evtable="EVENTS" outfile="/scratch/kocevski/824700/ft1_filtered_4FGL_J0746.4+2546_daily_bin35.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 3.78
user 0.33
sys 3.33

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/824700/ft1_filtered_4FGL_J0746.4+2546_daily_bin35.fits" evtable="EVENTS" scfile=/scratch/kocevski/824700/ft2_4FGL_J0746.4+2546_daily_bin35.fits sctable="SC_DATA" outfile=/scratch/kocevski/824700/ltcube_248400001_248659201_4FGL_J0746.4+2546_daily_bin35.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/824700/ft2_4FGL_J0746.4+2546_daily_bin35.fits
.....................!
real 16.20
user 12.27
sys 3.88

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/824700/ft1_filtered_4FGL_J0746.4+2546_daily_bin35.fits evtable="EVENTS" scfile=/scratch/kocevski/824700/ft2_4FGL_J0746.4+2546_daily_bin35.fits sctable="SC_DATA" expcube=/scratch/kocevski/824700/ltcube_248400001_248659201_4FGL_J0746.4+2546_daily_bin35.fits outfile=/scratch/kocevski/824700/expmap_248400001_248659201_4FGL_J0746.4+2546_daily_bin35.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/824700/ltcube_248400001_248659201_4FGL_J0746.4+2546_daily_bin35.fits
.....................!
real 194.14
user 185.47
sys 8.04

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 IC 443 in ROI with RadialGaussian spatial model.
Added 172 point sources and 1 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.4+2546 @ 116.602 25.7678

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/824700/ft1_filtered_4FGL_J0746.4+2546_daily_bin35.fits scfile=/scratch/kocevski/824700/ft2_4FGL_J0746.4+2546_daily_bin35.fits outfile=/scratch/kocevski/824700/cmap_248400001_248659201_4FGL_J0746.4+2546_daily_bin35.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.602 yref=25.7678 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 3.66
user 0.38
sys 3.24

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/824700/ft1_filtered_4FGL_J0746.4+2546_daily_bin35.fits scfile=/scratch/kocevski/824700/ft2_4FGL_J0746.4+2546_daily_bin35.fits outfile=/scratch/kocevski/824700/cmap_HighResolution_248400001_248659201_4FGL_J0746.4+2546_daily_bin35.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.602 yref=25.7678 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 3.68
user 0.38
sys 3.26

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/824700/ft1_filtered_4FGL_J0746.4+2546_daily_bin35.fits evtable="EVENTS" scfile=/scratch/kocevski/824700/ft2_4FGL_J0746.4+2546_daily_bin35.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/824700/Model_4FGL_J0746.4+2546_daily_bin35.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 IC 443
Working on...
/scratch/kocevski/824700/ft1_filtered_4FGL_J0746.4+2546_daily_bin35.fits.....................!
real 132.95
user 126.93
sys 5.36

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/824700/ft1_filtered_4FGL_J0746.4+2546_daily_bin35.fits', '/scratch/kocevski/824700/ft2_4FGL_J0746.4+2546_daily_bin35.fits', expMap='/scratch/kocevski/824700/expmap_248400001_248659201_4FGL_J0746.4+2546_daily_bin35.fits', expCube='/scratch/kocevski/824700/ltcube_248400001_248659201_4FGL_J0746.4+2546_daily_bin35.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/824700/Model_4FGL_J0746.4+2546_daily_bin35.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J0746.4+2546'

4FGL J0746.4+2546
   Spectrum: LogParabola
250         norm:  1.783e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-11)
251        alpha:  2.624e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
252         beta:  2.597e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
253           Eb:  3.105e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/824700/ft1_filtered_4FGL_J0746.4+2546_daily_bin35.fits
Spacecraft file(s): /scratch/kocevski/824700/ft2_4FGL_J0746.4+2546_daily_bin35.fits
Exposure map: /scratch/kocevski/824700/expmap_248400001_248659201_4FGL_J0746.4+2546_daily_bin35.fits
Exposure cube: /scratch/kocevski/824700/ltcube_248400001_248659201_4FGL_J0746.4+2546_daily_bin35.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/824700/Model_4FGL_J0746.4+2546_daily_bin35.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) = 11758.2811289

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    14.472       1.0000         .10000E-03   10000.    
     2 'norm      '    35.663       1.0000         .10000E-03   10000.    
     3 'norm      '    .29425       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    .10033E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    31.891       1.0000         .10000E-03   10000.    
     8 'norm      '    8.3533       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10553E-02   1.0000         .10000E-03   10000.    
    10 'Prefactor '    16.473       1.0000         .10000E-03   10000.    
    11 'Prefactor '    6.8758       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10017E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    2.2360       1.0000         .10000E-03   10000.    
    14 'norm      '    33.235       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .14656E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10023E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    11.879       1.0000         .10000E-03   10000.    
    18 'Prefactor '    6.3451       1.0000         .10000E-03   10000.    
    19 'norm      '    4.0168       1.0000         .10000E-03   10000.    
    20 'Normalizat'    1.3889       1.0000         .10000E-01   10.000    
    21 'Prefactor '    .99637       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5630E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   11758.23     FROM MIGRAD    STATUS=CONVERGED    432 CALLS     2233 TOTAL
                     EDM=   .11E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     14.463        11.692        .20469E-06    .43619E-04
   2  norm          35.663        12.093        .51270E-07   -.10780E-05
   3  norm          .29426        .41347        .18866E-06    .15910E-02
   4  Prefactor     .10000E-03    2.2271        .39772E-07** at limit **
   5  Prefactor     .10000E-03    4.1380       -.14691E-09** at limit **
   6  norm          .10000E-03    .69937       -.38573E-07** at limit **
   7  Prefactor     31.906        10.624        .85233E-07    .51553E-04
   8  norm          8.3550        5.0039       -.78800E-06    .76192E-04
   9  Prefactor     .10000E-03    138.84       -.66859E-06** at limit **
  10  Prefactor     16.464        21.650        .55575E-06    .29781E-05
  11  Prefactor     6.8812        64.667        .84187E-06    .33157E-05
  12  Prefactor     .10000E-03    17.788        .12085E-06** at limit **
  13  norm          2.2377        8.4245        .10993E-05   -.81989E-05
  14  norm          33.199        96.174        .51220E-07   -.17802E-04
  15  Prefactor     .10000E-03    69.944        .74927E-06** at limit **
  16  Prefactor     .10000E-03    7.5112        .19258E-07** at limit **
  17  Prefactor     11.888        18.156        .17356E-06   -.10419E-04
  18  Prefactor     6.3486        24.865        .54138E-06    .52475E-06
  19  norm          4.0166        1.6393        .26169E-07   -.50301E-04
  20  Normalizat    1.3889        .18568       -.10907E-05   -.19024E-05
  21  Prefactor     .99639        .11438        .27521E-06   -.12037E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 14.4628
  norm       = 35.6626
  norm       = 0.294263
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 31.9056
  norm       = 8.35503
  Prefactor  = 0.0001
  Prefactor  = 16.4642
  Prefactor  = 6.88116
  Prefactor  = 0.0001
  norm       = 2.23766
  norm       = 33.199
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 11.8875
  Prefactor  = 6.34861
  norm       = 4.01658
  Normalizat = 1.38889
  Prefactor  = 0.996392
 **********
 **   18 **HESSE 
 **********

 FCN=   11758.23     FROM HESSE     STATUS=OK           325 CALLS     2558 TOTAL
                     EDM=   .21E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     14.463        11.695        .10529E-03   -1.4947    
   2  norm          35.663        12.097        .67108E-04   -1.4513    
   3  norm          .29426        .35937        .86201E-03   -1.5599    
   4  Prefactor     .10000E-03    2.2418        .15801E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    4.1650        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          .10000E-03    .91412        .16015E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     31.906        9.6925        .70954E-04   -1.4578    
   8  norm          8.3550        4.9070        .13871E-03   -1.5130    
   9  Prefactor     .10000E-03    140.42        .41453E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     16.464        21.604        .98682E-04   -1.4896    
  11  Prefactor     6.8812        64.509        .15301E-03   -1.5183    
  12  Prefactor     .10000E-03    17.840        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          2.2377        8.4036        .27489E-03   -1.5409    
  14  norm          33.199        96.291        .69508E-04   -1.4555    
  15  Prefactor     .10000E-03    72.526        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    7.5157        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     11.888        18.168        .11623E-03   -1.5018    
  18  Prefactor     6.3486        24.859        .15935E-03   -1.5204    
  19  norm          4.0166        1.6358        .70498E-04   -1.5307    
  20  Normalizat    1.3889        .21749        .30417E-03   -.80950    
  21  Prefactor     .99639        .13403        .23164E-03   -.92850    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.08814e-10
Minuit parameter uncertainties:
  1  11.6965
  2  12.0974
  3  0.359372
  4  3.80771e-06
  5  1.29035e-06
  6  1.64616e-06
  7  9.69293
  8  4.90722
  9  0.000473053
  10  21.6141
  11  42.1976
  12  4.59077e-05
  13  8.40803
  14  96.7464
  15  0.000194625
  16  2.86879e-06
  17  18.1764
  18  24.8996
  19  1.63586
  20  0.217637
  21  0.134079
Done.

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

Extracting fit parameters...

4FGL J0746.4+2546
   Spectrum: LogParabola
250         norm:  8.355e+00  4.907e+00  1.000e-04  1.000e+04 ( 1.000e-11)
251        alpha:  2.624e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
252         beta:  2.597e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
253           Eb:  3.105e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
556    Prefactor:  9.964e-01  1.341e-01  0.000e+00  1.000e+01 ( 1.000e+00)
557        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
558        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
555   Normalization:  1.389e+00  2.176e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 5.92
Ra Dec: 116.602 25.768
Photon Index (Fixed Index): 2.62 +/- 0.00
Photon Flux (Fixed Index): 8.62e-08 +/- 5.06e-08
Energy Flux (Fixed Index): 1.96e-05 +/- 1.15e-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) = 11757.5549953
delta logL = 0.67667768381

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 11757.4878963
delta logL = 0.743776675567

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    2.5688       1.0000         .10000E-03   10000.    
     2 'alpha     '    4.9616       1.0000          .0000       5.0000    
     3 'Normalizat'    1.2867       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0538       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5630E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   11757.49     FROM MIGRAD    STATUS=CONVERGED     59 CALLS      267 TOTAL
                     EDM=   .18E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          2.5484        1.2195        .63671E-02   -.11781E-02
   2  alpha         4.9708        .80378        .47220       -.15756E-03
   3  Normalizat    1.2867        .17863        .70938E-01   -.41888E-03
   4  Prefactor     1.0541        .11476        .39692E-01   -.59020E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 2.54845
  alpha      = 4.97084
  Normalizat = 1.28666
  Prefactor  = 1.05407
 **********
 **   18 **HESSE 
 **********

 FCN=   11757.49     FROM HESSE     STATUS=OK            29 CALLS      296 TOTAL
                     EDM=   .21E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          2.5484        1.5507        .69977E-04   -1.5389    
   2  alpha         4.9708        3.9740        .80044E-01    1.4179    
   3  Normalizat    1.2867        .21032        .31388E-03   -.83966    
   4  Prefactor     1.0541        .13505        .22622E-03   -.90948    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.07544e-09
Minuit parameter uncertainties:
  1  1.55073
  2  0.612956
  3  0.210465
  4  0.13509
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/824700': 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) = 11757.4878716
delta logL = 0.743801348281

Extracting fit parameters...

4FGL J0746.4+2546
   Spectrum: LogParabola
250         norm:  2.548e+00  1.551e+00  1.000e-04  1.000e+04 ( 1.000e-11)
251        alpha:  4.971e+00  6.130e-01  0.000e+00  5.000e+00 ( 1.000e+00)
252         beta:  2.597e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
253           Eb:  3.105e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
556    Prefactor:  1.054e+00  1.351e-01  0.000e+00  1.000e+01 ( 1.000e+00)
557        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
558        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
555   Normalization:  1.287e+00  2.105e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 8.02
Ra Dec: 116.602 25.768
Photon Index (Free Index): 4.97 +/- 0.61
Photon Flux (Free Index): 1.45e-07 +/- 6.58e-08
Energy Flux (Free Index): 1.99e-05 +/- 8.82e-06

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/824700/cmap_HighResolution_248400001_248659201_4FGL_J0746.4+2546_daily_bin35.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='8.62e-08', energy_flux2='1.99e-05', photon_flux_error='5.06e-08', dlogl='7.44e-01', energy_flux='1.96e-05', photon_flux2='1.45e-07', job_status='DONE', time_completed='2021-08-28 10:21:28.916734', photon_index_error2='0.61', photon_index2='4.97', ts='5.92', fit_tolerance='1e-08', GAL='1.00', photon_index_error='0.00', energy_flux_error2='8.82e-06', EG='1.39', time_epoch_completed='1630171288.92', return_code='0', job_id='824700', GAL2='1.05', EG2='1.29', return_code2='0', energy_flux_error='1.15e-05', photon_flux_error2='6.58e-08', ts2='8.02', photon_index='2.62' WHERE bin_id='35' AND source_name='4FGL J0746.4+2546' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Aug 28 10:21:28 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0079>
Subject: Job 824700: <4FGL_J0746.4+2546_daily_bin35> in cluster <slac> Done

Job <4FGL_J0746.4+2546_daily_bin35> was submitted from host <rhel6-64a> by user <kocevski> in cluster <slac> at Sat Aug 28 10:05:47 2021
Job was executed on host(s) <bullet0079>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Aug 28 10:05:48 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:05:48 2021
Terminated at Sat Aug 28 10:21:30 2021
Results reported at Sat Aug 28 10:21:30 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0746.4+2546_daily_bin35 116.602 25.7678 248400001 248659201 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J0746.4+2546 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   922.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             329.27 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   941 sec.
    Turnaround time :                            943 sec.

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

