/nfs/farm/g/glast/g/LCRepository/bin/miniconda2/envs/fermitools_v1.0.5/lib/python2.7/site-packages/matplotlib/font_manager.py:281: UserWarning: Matplotlib is building the font cache using fc-list. This may take a moment.
  'Matplotlib is building the font cache using fc-list. '
/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 95 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 = 7395
number of fields = 30
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J0746.4+2546_daily_bin945
RA = 116.602, Dec = 25.7678
tmin = 484272001, tmax = 484531201
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='831708', job_status='RUN', time_executed='2021-08-28 10:29:12.616280', time_epoch_executed='1630171752.62' WHERE source_name='4FGL J0746.4+2546' and cadence='daily' and bin_id='945'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/831708

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/831708/ft1_4FGL_J0746.4+2546_daily_bin945.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/831708/ft2_4FGL_J0746.4+2546_daily_bin945.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/831708/ft1_4FGL_J0746.4+2546_daily_bin945.fits outfile=/scratch/kocevski/831708/ft1_filteredMKT_4FGL_J0746.4+2546_daily_bin945.fits ra=116.602 dec=25.7678 rad=12.0 tmin=484272001.0 tmax=484531201.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.82
user 4.88
sys 3.57

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/831708/ft2_4FGL_J0746.4+2546_daily_bin945.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/831708/ft1_filteredMKT_4FGL_J0746.4+2546_daily_bin945.fits evtable="EVENTS" outfile="/scratch/kocevski/831708/ft1_filtered_4FGL_J0746.4+2546_daily_bin945.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 6.74
user 0.34
sys 3.48

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/831708/ft1_filtered_4FGL_J0746.4+2546_daily_bin945.fits" evtable="EVENTS" scfile=/scratch/kocevski/831708/ft2_4FGL_J0746.4+2546_daily_bin945.fits sctable="SC_DATA" outfile=/scratch/kocevski/831708/ltcube_484272001_484531201_4FGL_J0746.4+2546_daily_bin945.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/831708/ft2_4FGL_J0746.4+2546_daily_bin945.fits
.....................!
real 17.05
user 11.34
sys 4.10

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/831708/ft1_filtered_4FGL_J0746.4+2546_daily_bin945.fits evtable="EVENTS" scfile=/scratch/kocevski/831708/ft2_4FGL_J0746.4+2546_daily_bin945.fits sctable="SC_DATA" expcube=/scratch/kocevski/831708/ltcube_484272001_484531201_4FGL_J0746.4+2546_daily_bin945.fits outfile=/scratch/kocevski/831708/expmap_484272001_484531201_4FGL_J0746.4+2546_daily_bin945.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/831708/ltcube_484272001_484531201_4FGL_J0746.4+2546_daily_bin945.fits
.....................!
real 197.09
user 184.93
sys 9.51

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/831708/ft1_filtered_4FGL_J0746.4+2546_daily_bin945.fits scfile=/scratch/kocevski/831708/ft2_4FGL_J0746.4+2546_daily_bin945.fits outfile=/scratch/kocevski/831708/cmap_484272001_484531201_4FGL_J0746.4+2546_daily_bin945.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 4.71
user 0.37
sys 3.46

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/831708/ft1_filtered_4FGL_J0746.4+2546_daily_bin945.fits scfile=/scratch/kocevski/831708/ft2_4FGL_J0746.4+2546_daily_bin945.fits outfile=/scratch/kocevski/831708/cmap_HighResolution_484272001_484531201_4FGL_J0746.4+2546_daily_bin945.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.92
user 0.39
sys 3.46

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/831708/ft1_filtered_4FGL_J0746.4+2546_daily_bin945.fits evtable="EVENTS" scfile=/scratch/kocevski/831708/ft2_4FGL_J0746.4+2546_daily_bin945.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/831708/Model_4FGL_J0746.4+2546_daily_bin945.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/831708/ft1_filtered_4FGL_J0746.4+2546_daily_bin945.fits.....................!
real 78.36
user 70.19
sys 5.60

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/831708/ft1_filtered_4FGL_J0746.4+2546_daily_bin945.fits', '/scratch/kocevski/831708/ft2_4FGL_J0746.4+2546_daily_bin945.fits', expMap='/scratch/kocevski/831708/expmap_484272001_484531201_4FGL_J0746.4+2546_daily_bin945.fits', expCube='/scratch/kocevski/831708/ltcube_484272001_484531201_4FGL_J0746.4+2546_daily_bin945.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/831708/Model_4FGL_J0746.4+2546_daily_bin945.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/831708/ft1_filtered_4FGL_J0746.4+2546_daily_bin945.fits
Spacecraft file(s): /scratch/kocevski/831708/ft2_4FGL_J0746.4+2546_daily_bin945.fits
Exposure map: /scratch/kocevski/831708/expmap_484272001_484531201_4FGL_J0746.4+2546_daily_bin945.fits
Exposure cube: /scratch/kocevski/831708/ltcube_484272001_484531201_4FGL_J0746.4+2546_daily_bin945.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/831708/Model_4FGL_J0746.4+2546_daily_bin945.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) = 6357.63899481

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

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 'norm      '    31.150       1.0000         .10000E-03   10000.    
     3 'norm      '    1.1801       1.0000         .10000E-03   10000.    
     4 'Prefactor '    6.6560       1.0000         .10000E-03   10000.    
     5 'Prefactor '    13.961       1.0000         .10000E-03   10000.    
     6 'norm      '    .17364E-01   1.0000         .10000E-03   10000.    
     7 'Prefactor '    10.232       1.0000         .10000E-03   10000.    
     8 'norm      '    .43329       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    11.765       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10185E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    4.3998       1.0000         .10000E-03   10000.    
    14 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    52.494       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    10.690       1.0000         .10000E-03   10000.    
    19 'norm      '    .46282       1.0000         .10000E-03   10000.    
    20 'Normalizat'    .95522       1.0000         .10000E-01   10.000    
    21 'Prefactor '    .89570       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=   6357.634     FROM MIGRAD    STATUS=CONVERGED    472 CALLS     2231 TOTAL
                     EDM=   .36E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    6.5701       -.70988E-07** at limit **
   2  norm          31.148        13.666        .29668E-06   -.23876E-03
   3  norm          1.1802        .74878       -.37147E-07   -.27525E-03
   4  Prefactor     6.6564        5.4392       -.18062E-06    .31830E-04
   5  Prefactor     13.962        13.725       -.46392E-06    .65888E-04
   6  norm          .10698E-03    .83482        .93612E-06** at limit **
   7  Prefactor     10.297        8.4329       -.32326E-05   -.99227E-06
   8  norm          .43639        2.5058       -.89713E-06   -.41688E-03
   9  Prefactor     .10000E-03    16.477       -.10068E-05** at limit **
  10  Prefactor     11.753        14.477        .23157E-06    .11525E-03
  11  Prefactor     .10001E-03    47.248       -.66805E-05** at limit **
  12  Prefactor     .10000E-03    9.5589        .31924E-06** at limit **
  13  norm          4.4015        9.3625       -.11248E-05   -.23671E-06
  14  norm          .10000E-03    31.360        .22276E-05** at limit **
  15  Prefactor     52.501        32.552       -.19510E-06    .16097E-04
  16  Prefactor     .10000E-03    9.3446        .25131E-07** at limit **
  17  Prefactor     .10000E-03    12.699        .82557E-06** at limit **
  18  Prefactor     10.691        11.868       -.31425E-06    .45138E-04
  19  norm          .46286        .47777        .84171E-08    .28660E-03
  20  Normalizat    .95495        .18727        .13009E-05   -.12217E-03
  21  Prefactor     .89583        .12387       -.31890E-07   -.14952E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 31.1482
  norm       = 1.18018
  Prefactor  = 6.65644
  Prefactor  = 13.9624
  norm       = 0.000106978
  Prefactor  = 10.297
  norm       = 0.436392
  Prefactor  = 0.0001
  Prefactor  = 11.7528
  Prefactor  = 0.000100015
  Prefactor  = 0.0001
  norm       = 4.4015
  norm       = 0.000100001
  Prefactor  = 52.5013
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 10.6914
  norm       = 0.46286
  Normalizat = 0.954948
  Prefactor  = 0.895834
 **********
 **   18 **HESSE 
 **********

 FCN=   6357.634     FROM HESSE     STATUS=OK           329 CALLS     2560 TOTAL
                     EDM=   .73E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    6.6122        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          31.148        13.653        .71790E-04   -1.4591    
   3  norm          1.1802        .74147        .52457E-04   -1.5491    
   4  Prefactor     6.6564        5.4402        .15554E-03   -1.5192    
   5  Prefactor     13.962        13.717        .10720E-03   -1.4960    
   6  norm          .10698E-03    3.4727        .22857E-01   -1.5707    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     10.297        10.812        .12526E-03   -1.5066    
   8  norm          .43639        4.6255        .22831E-02   -1.5576    
   9  Prefactor     .10000E-03    16.463        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     11.753        14.202        .11679E-03   -1.5022    
  11  Prefactor     .10001E-03    46.175        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    9.5595        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          4.4015        9.3933        .19200E-03   -1.5288    
  14  norm          .10000E-03    31.229        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     52.501        32.573        .55356E-04   -1.4258    
  16  Prefactor     .10000E-03    9.3486        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    12.714        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     10.691        11.860        .12254E-03   -1.5054    
  19  norm          .46286        .48701        .54383E-04   -1.5572    
  20  Normalizat    .95495        .21434        .27656E-03   -.94555    
  21  Prefactor     .89583        .14260        .19672E-03   -.96287    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.25229e-10
Minuit parameter uncertainties:
  1  5.66068e-06
  2  13.6543
  3  0.741472
  4  5.44065
  5  13.7199
  6  0.00984561
  7  10.8145
  8  2.84145
  9  0.000148492
  10  14.2058
  11  0.00165495
  12  2.47152e-05
  13  9.39641
  14  0.000391769
  15  32.5841
  16  4.4638e-06
  17  0.000101758
  18  11.8627
  19  0.487013
  20  0.214533
  21  0.142663
Done.

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

Extracting fit parameters...

4FGL J0746.4+2546
   Spectrum: LogParabola
250         norm:  4.364e-01  2.841e+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:  8.958e-01  1.427e-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:  9.549e-01  2.145e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.03
Ra Dec: 116.602 25.768
Photon Flux Upper Limit: 8.22e-08 ph cm-2 s-1
Energy Flux Upper Limit: 1.87e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/831708/likelihoodResults_484272001_484531201_4FGL_J0746.4+2546_daily_bin945.txt

Performing a free index iterative likelihood fit...

Freezing all point sources, except source of interest...

Done.

Freeing candidate source...
Done.

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6357.58859273
delta logL = 0.0458525519398

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6357.58608577
delta logL = 0.0483595131564

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .53811       1.0000         .10000E-03   10000.    
     2 'alpha     '    3.9312       1.0000          .0000       5.0000    
     3 'Normalizat'    .94263       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .90092       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.

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

 FCN=   6357.586     FROM MIGRAD    STATUS=FAILED       100 CALLS      254 TOTAL
                     EDM=   .38E-07    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .53672        7.5297        .16379E-03    .36788E-05
   2  alpha         3.9335        2.6568        .13065        .46186E-04
   3  Normalizat    .94295        .20889        .27815E-03    .81745E-06
   4  Prefactor     .90084        .14277        .19624E-03    .40553E-06
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   6357.586     FROM SIMPLEX   STATUS=UNCHANGED     81 CALLS      335 TOTAL
                     EDM=   .15E-04    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .53672        7.5297        .14132E-03   -1.5561    
   2  alpha         3.9335        2.6568        .10947E-01    .61065    
   3  Normalizat    .94295        .20889        .28670E-03   -.94967    
   4  Prefactor     .90084        .14277        .13705E-03   -.96112    
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   6357.586     FROM MIGRAD    STATUS=CONVERGED     29 CALLS      364 TOTAL
                     EDM=   .46E-13    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .53672        2.4199        .65516E-05    .10412E-05
   2  alpha         3.9335        4.4422        .26130E-01    .99198E-07
   3  Normalizat    .94295        .20939        .11126E-04    .81745E-06
   4  Prefactor     .90084        .14271        .78495E-05    .28967E-06
                               ERR DEF=  .500    
Final values: 
  norm       = 0.536724
  alpha      = 3.9335
  Normalizat = 0.942945
  Prefactor  = 0.900845
 **********
 **   18 **HESSE 
 **********

 FCN=   6357.586     FROM HESSE     STATUS=OK            25 CALLS      389 TOTAL
                     EDM=   .41E-14    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .53672        2.1596        .13103E-05   -1.5561    
   2  alpha         3.9335        4.4641        .10452E-02    .61065    
   3  Normalizat    .94295        .20969        .22252E-05   -.94967    
   4  Prefactor     .90084        .14289        .15699E-05   -.96112    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.06477e-15
Minuit parameter uncertainties:
  1  2.15318
  2  4.60192
  3  0.209868
  4  0.142952
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/831708': 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) = 6357.58608339
delta logL = 0.0483618917096

Extracting fit parameters...

4FGL J0746.4+2546
   Spectrum: LogParabola
250         norm:  5.367e-01  2.153e+00  1.000e-04  1.000e+04 ( 1.000e-11)
251        alpha:  3.933e+00  4.602e+00  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:  9.008e-01  1.430e-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:  9.429e-01  2.099e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.03
Ra Dec: 116.602 25.768

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/831708/cmap_HighResolution_484272001_484531201_4FGL_J0746.4+2546_daily_bin945.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.87e-05', job_status='DONE', photon_flux_upper_limit='8.22e-08', time_completed='2021-08-28 10:41:14.209859', job_id='831708', GAL2='0.90', fit_tolerance='1e-08', EG2='0.94', EG='0.95', time_epoch_completed='1630172474.21', return_code2='0', ts='0.03', comment='SUCCESS', return_code='0', GAL='0.90', dlogl='4.84e-02', ts2='0.13', photon_index_error='0.00', photon_index='2.62' WHERE bin_id='945' AND source_name='4FGL J0746.4+2546' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Aug 28 10:41:14 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0091>
Subject: Job 831708: <4FGL_J0746.4+2546_daily_bin945> in cluster <slac> Done

Job <4FGL_J0746.4+2546_daily_bin945> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Sat Aug 28 10:26:14 2021
Job was executed on host(s) <bullet0091>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Aug 28 10:26:15 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:26:15 2021
Terminated at Sat Aug 28 10:41:15 2021
Results reported at Sat Aug 28 10:41:15 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0746.4+2546_daily_bin945 116.602 25.7678 484272001 484531201 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 :                                   758.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             304.93 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              7
    Max Threads :                                21
    Run time :                                   899 sec.
    Turnaround time :                            901 sec.

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

