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


Performing analysis on: 4FGL_J0746.4+2546_daily_bin18
RA = 116.602, Dec = 25.7678
tmin = 243993601, tmax = 244252801
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='824674', job_status='RUN', time_executed='2021-08-28 10:06:11.834010', time_epoch_executed='1630170371.83' WHERE source_name='4FGL J0746.4+2546' and cadence='daily' and bin_id='18'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/824674

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/824674/ft1_4FGL_J0746.4+2546_daily_bin18.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/824674/ft2_4FGL_J0746.4+2546_daily_bin18.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/824674/ft1_4FGL_J0746.4+2546_daily_bin18.fits outfile=/scratch/kocevski/824674/ft1_filteredMKT_4FGL_J0746.4+2546_daily_bin18.fits ra=116.602 dec=25.7678 rad=12.0 tmin=243993601.0 tmax=244252801.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.75
user 1.21
sys 0.58

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

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

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/824674/ft1_filtered_4FGL_J0746.4+2546_daily_bin18.fits" evtable="EVENTS" scfile=/scratch/kocevski/824674/ft2_4FGL_J0746.4+2546_daily_bin18.fits sctable="SC_DATA" outfile=/scratch/kocevski/824674/ltcube_243993601_244252801_4FGL_J0746.4+2546_daily_bin18.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/824674/ft2_4FGL_J0746.4+2546_daily_bin18.fits
.....................!
real 13.32
user 12.26
sys 0.81

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/824674/ft1_filtered_4FGL_J0746.4+2546_daily_bin18.fits evtable="EVENTS" scfile=/scratch/kocevski/824674/ft2_4FGL_J0746.4+2546_daily_bin18.fits sctable="SC_DATA" expcube=/scratch/kocevski/824674/ltcube_243993601_244252801_4FGL_J0746.4+2546_daily_bin18.fits outfile=/scratch/kocevski/824674/expmap_243993601_244252801_4FGL_J0746.4+2546_daily_bin18.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/824674/ltcube_243993601_244252801_4FGL_J0746.4+2546_daily_bin18.fits
.....................!
real 189.94
user 185.00
sys 4.56

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/824674/ft1_filtered_4FGL_J0746.4+2546_daily_bin18.fits scfile=/scratch/kocevski/824674/ft2_4FGL_J0746.4+2546_daily_bin18.fits outfile=/scratch/kocevski/824674/cmap_243993601_244252801_4FGL_J0746.4+2546_daily_bin18.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 0.94
user 0.36
sys 0.56

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/824674/ft1_filtered_4FGL_J0746.4+2546_daily_bin18.fits scfile=/scratch/kocevski/824674/ft2_4FGL_J0746.4+2546_daily_bin18.fits outfile=/scratch/kocevski/824674/cmap_HighResolution_243993601_244252801_4FGL_J0746.4+2546_daily_bin18.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 0.94
user 0.37
sys 0.56

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

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      '    46.449       1.0000         .10000E-03   10000.    
     3 'norm      '    1.6103       1.0000         .10000E-03   10000.    
     4 'Prefactor '    1.4203       1.0000         .10000E-03   10000.    
     5 'Prefactor '    5.6006       1.0000         .10000E-03   10000.    
     6 'norm      '    1.3842       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10019E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    7.7639       1.0000         .10000E-03   10000.    
     9 'Prefactor '    41.177       1.0000         .10000E-03   10000.    
    10 'Prefactor '    10.585       1.0000         .10000E-03   10000.    
    11 'Prefactor '    12.114       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10234E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    16.577       1.0000         .10000E-03   10000.    
    14 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    1.0188       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10031E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    27.214       1.0000         .10000E-03   10000.    
    19 'norm      '    1.6192       1.0000         .10000E-03   10000.    
    20 'Normalizat'    1.0457       1.0000         .10000E-01   10.000    
    21 'Prefactor '    .97286       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=   10018.24     FROM MIGRAD    STATUS=FAILED       772 CALLS     2528 TOTAL
                     EDM=   .67E-07    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    2.9626        .16793E-02** at limit **
   2  norm          46.450        12.346        .58831E-04   -.19324E-05
   3  norm          1.6104        .69207        .52715E-04    .27605E-04
   4  Prefactor     1.4203        3.2891        .26958E-03    .92272E-04
   5  Prefactor     5.6015        10.921        .84877E-03   -.16341E-04
   6  norm          1.3841        1.0170        .83539E-04   -.29395E-04
   7  Prefactor     .10000E-03    4.8730        .18142E-02** at limit **
   8  norm          7.7664        4.8427        .14227E-03    .18188E-03
   9  Prefactor     41.168        35.714        .62468E-04    .69156E-05
  10  Prefactor     10.580        16.498        .12315E-03    .38589E-04
  11  Prefactor     12.115        17.295        .11510E-03    .17780E-05
  12  Prefactor     .10000E-03    18.425        .18142E-02** at limit **
  13  norm          16.579        9.8631        .98370E-04   -.22421E-04
  14  norm          .10000E-03    15.930        .18142E-02** at limit **
  15  Prefactor     1.0505        223.10        .87683E-02    .85608E-03
  16  Prefactor     .10000E-03    63.117        .18142E-02** at limit **
  17  Prefactor     .10000E-03    20.041        .18142E-02** at limit **
  18  Prefactor     27.213        19.703        .76794E-04   -.56848E-04
  19  norm          1.6194        1.0628        .77003E-04   -.18012E-04
  20  Normalizat    1.0456        .19827        .30285E-03   -.20466E-03
  21  Prefactor     .97293        .12694        .20968E-03   -.24813E-03
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   10018.24     FROM SIMPLEX   STATUS=UNCHANGED   1047 CALLS     3575 TOTAL
                     EDM=   .19E-04    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    2.9626        .26678E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          46.450        12.346        .56253E-06   -1.4344    
   3  norm          1.6104        .69207        .60610E-06   -1.5454    
   4  Prefactor     1.4203        3.2891        .60705E-06   -1.5470    
   5  Prefactor     5.6015        10.921        .59830E-06   -1.5235    
   6  norm          1.3841        1.0170        .60718E-06   -1.5473    
   7  Prefactor     .10000E-03    4.8730        .34857E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          7.7664        4.8427        .59479E-06   -1.5151    
   9  Prefactor     41.168        35.714        .56781E-06   -1.4424    
  10  Prefactor     10.580        16.498        .59233E-06   -1.5057    
  11  Prefactor     12.115        17.295        .59107E-06   -1.5012    
  12  Prefactor     .10000E-03    18.425        .49322E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          16.579        9.8631        .59124E-06   -1.4893    
  14  norm          .10000E-03    15.930        .51451E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     1.0505        223.10        .62077E-06   -1.5503    
  16  Prefactor     .10000E-03    63.117        .12400E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    20.041        .61132E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     27.213        19.703        .57589E-06   -1.4664    
  19  norm          1.6194        1.0628        .60623E-06   -1.5453    
  20  Normalizat    1.0456        .19827        .35904E-06   -.91520    
  21  Prefactor     .97293        .12694        .36732E-06   -.93637    
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   10018.24     FROM MIGRAD    STATUS=CONVERGED    300 CALLS     3875 TOTAL
                     EDM=   .10E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    2.9629        .33587E-03** at limit **
   2  norm          46.450        12.343        .23532E-05    .38649E-06
   3  norm          1.6104        .69194        .21086E-05    .86266E-06
   4  Prefactor     1.4203        3.2883        .10783E-04    .17712E-05
   5  Prefactor     5.6015        10.917        .33951E-04    .38843E-05
   6  norm          1.3840        1.0168        .33416E-05    .13609E-05
   7  Prefactor     .10000E-03    4.8744        .36285E-03** at limit **
   8  norm          7.7664        4.8412        .56907E-05    .15982E-05
   9  Prefactor     41.168        35.697        .24987E-05    .36398E-06
  10  Prefactor     10.580        16.492        .49259E-05    .18464E-06
  11  Prefactor     12.115        17.293        .46038E-05     .0000    
  12  Prefactor     .10000E-03    18.425        .36285E-03** at limit **
  13  norm          16.579        9.8623        .39348E-05    .11557E-05
  14  norm          .10000E-03    15.930        .36285E-03** at limit **
  15  Prefactor     1.0504        227.15        .17537E-02    .33257E-04
  16  Prefactor     .10000E-03    63.136        .36285E-03** at limit **
  17  Prefactor     .10000E-03    20.045        .36285E-03** at limit **
  18  Prefactor     27.213        19.698        .30718E-05    .59217E-06
  19  norm          1.6194        1.0627        .30801E-05    .14764E-05
  20  Normalizat    1.0456        .19769        .12114E-04    .18770E-05
  21  Prefactor     .97293        .12703        .41936E-04    .21688E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 46.4501
  norm       = 1.61043
  Prefactor  = 1.4203
  Prefactor  = 5.60152
  norm       = 1.38405
  Prefactor  = 0.0001
  norm       = 7.76636
  Prefactor  = 41.1679
  Prefactor  = 10.5801
  Prefactor  = 12.1146
  Prefactor  = 0.0001
  norm       = 16.5785
  norm       = 0.0001
  Prefactor  = 1.05043
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 27.2131
  norm       = 1.61938
  Normalizat = 1.04556
  Prefactor  = 0.972933
 **********
 **   18 **HESSE 
 **********

 FCN=   10018.24     FROM HESSE     STATUS=OK           297 CALLS     4172 TOTAL
                     EDM=   .17E-12    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    2.9629        .67173E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          46.450        12.343        .23532E-05   -1.4344    
   3  norm          1.6104        .69191        .21086E-05   -1.5454    
   4  Prefactor     1.4203        3.2882        .10783E-04   -1.5470    
   5  Prefactor     5.6015        10.917        .33951E-04   -1.5235    
   6  norm          1.3840        1.0166        .66831E-06   -1.5473    
   7  Prefactor     .10000E-03    4.8745        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          7.7664        4.8418        .11381E-05   -1.5151    
   9  Prefactor     41.168        35.698        .24987E-05   -1.4424    
  10  Prefactor     10.580        16.491        .49259E-05   -1.5057    
  11  Prefactor     12.115        17.293        .46038E-05   -1.5012    
  12  Prefactor     .10000E-03    18.425        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          16.579        9.8502        .78696E-06   -1.4893    
  14  norm          .10000E-03    15.930        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     1.0504        226.54        .35073E-03   -1.5503    
  16  Prefactor     .10000E-03    63.137        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    20.045        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     27.213        19.697        .30718E-05   -1.4664    
  19  norm          1.6194        1.0624        .61602E-06   -1.5453    
  20  Normalizat    1.0456        .19766        .24228E-05   -.91520    
  21  Prefactor     .97293        .12711        .83872E-05   -.93637    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.68981e-13
Minuit parameter uncertainties:
  1  1.05141e-07
  2  12.3434
  3  0.691916
  4  3.28865
  5  10.9208
  6  1.01666
  7  3.85431e-07
  8  4.84203
  9  35.7169
  10  16.4983
  11  17.3
  12  1.36684e-07
  13  9.85112
  14  7.7999e-08
  15  30.9701
  16  3.90391e-06
  17  9.87167e-07
  18  19.7016
  19  1.06245
  20  0.197794
  21  0.12715
Done.

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

Extracting fit parameters...

4FGL J0746.4+2546
   Spectrum: LogParabola
250         norm:  7.766e+00  4.842e+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.729e-01  1.271e-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.046e+00  1.978e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 5.20
Ra Dec: 116.602 25.768
Photon Index (Fixed Index): 2.62 +/- 0.00
Photon Flux (Fixed Index): 8.01e-08 +/- 4.99e-08
Energy Flux (Fixed Index): 1.82e-05 +/- 1.13e-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) = 10018.1640523
delta logL = 0.0731078387653

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 10018.1603948
delta logL = 0.0767654295778

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    7.9259       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.3489       1.0000          .0000       5.0000    
     3 'Normalizat'    1.0600       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .96508       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=   10018.16     FROM MIGRAD    STATUS=CONVERGED     48 CALLS      206 TOTAL
                     EDM=   .59E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          7.9259        5.4953        .35606E-02    .57430E-03
   2  alpha         2.3489        .74903        .41247       -.36834E-04
   3  Normalizat    1.0600        .16276        .68045E-01   -.31017E-03
   4  Prefactor     .96508        .10898        .45829E-01   -.49417E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 7.92591
  alpha      = 2.34887
  Normalizat = 1.05999
  Prefactor  = 0.96508
 **********
 **   18 **HESSE 
 **********

 FCN=   10018.16     FROM HESSE     STATUS=OK            31 CALLS      237 TOTAL
                     EDM=   .16E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          7.9259        4.2773        .14242E-03   -1.5145    
   2  alpha         2.3489        .66217        .22741E-01   -.60490E-01
   3  Normalizat    1.0600        .19172        .30104E-03   -.91047    
   4  Prefactor     .96508        .12709        .21039E-03   -.93903    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.58803e-10
Minuit parameter uncertainties:
  1  4.27744
  2  0.670202
  3  0.191841
  4  0.127132
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/824674': 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) = 10018.1603947
delta logL = 0.0767654345273

Extracting fit parameters...

4FGL J0746.4+2546
   Spectrum: LogParabola
250         norm:  7.926e+00  4.277e+00  1.000e-04  1.000e+04 ( 1.000e-11)
251        alpha:  2.349e+00  6.702e-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:  9.651e-01  1.271e-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.060e+00  1.918e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 5.35
Ra Dec: 116.602 25.768
Photon Index (Free Index): 2.35 +/- 0.67
Photon Flux (Free Index): 7.19e-08 +/- 4.46e-08
Energy Flux (Free Index): 1.88e-05 +/- 1.03e-05

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/824674/cmap_HighResolution_243993601_244252801_4FGL_J0746.4+2546_daily_bin18.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='8.01e-08', energy_flux2='1.88e-05', photon_flux_error='4.99e-08', dlogl='7.68e-02', energy_flux='1.82e-05', photon_flux2='7.19e-08', job_status='DONE', time_completed='2021-08-28 10:21:22.511083', photon_index_error2='0.67', photon_index2='2.35', ts='5.20', fit_tolerance='1e-08', GAL='0.97', photon_index_error='0.00', energy_flux_error2='1.03e-05', EG='1.05', time_epoch_completed='1630171282.51', return_code='0', job_id='824674', GAL2='0.97', EG2='1.06', return_code2='0', energy_flux_error='1.13e-05', photon_flux_error2='4.46e-08', ts2='5.35', photon_index='2.62' WHERE bin_id='18' AND source_name='4FGL J0746.4+2546' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Aug 28 10:21:22 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0050>
Subject: Job 824674: <4FGL_J0746.4+2546_daily_bin18> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0746.4+2546_daily_bin18 116.602 25.7678 243993601 244252801 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 :                                   913.25 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             307.83 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   936 sec.
    Turnaround time :                            938 sec.

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

