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


Performing analysis on: 4FGL_J0746.4+2546_daily_bin289
RA = 116.602, Dec = 25.7678
tmin = 314236801, tmax = 314496001
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='826393', job_status='RUN', time_executed='2021-08-28 10:11:23.678194', time_epoch_executed='1630170683.68' WHERE source_name='4FGL J0746.4+2546' and cadence='daily' and bin_id='289'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/826393

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/826393/ft1_4FGL_J0746.4+2546_daily_bin289.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/826393/ft2_4FGL_J0746.4+2546_daily_bin289.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/826393/ft1_4FGL_J0746.4+2546_daily_bin289.fits outfile=/scratch/kocevski/826393/ft1_filteredMKT_4FGL_J0746.4+2546_daily_bin289.fits ra=116.602 dec=25.7678 rad=12.0 tmin=314236801.0 tmax=314496001.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.27
user 3.11
sys 1.12

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/826393/ft1_filtered_4FGL_J0746.4+2546_daily_bin289.fits" evtable="EVENTS" scfile=/scratch/kocevski/826393/ft2_4FGL_J0746.4+2546_daily_bin289.fits sctable="SC_DATA" outfile=/scratch/kocevski/826393/ltcube_314236801_314496001_4FGL_J0746.4+2546_daily_bin289.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/826393/ft2_4FGL_J0746.4+2546_daily_bin289.fits
.....................!
real 12.84
user 11.33
sys 1.29

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/826393/ft1_filtered_4FGL_J0746.4+2546_daily_bin289.fits evtable="EVENTS" scfile=/scratch/kocevski/826393/ft2_4FGL_J0746.4+2546_daily_bin289.fits sctable="SC_DATA" expcube=/scratch/kocevski/826393/ltcube_314236801_314496001_4FGL_J0746.4+2546_daily_bin289.fits outfile=/scratch/kocevski/826393/expmap_314236801_314496001_4FGL_J0746.4+2546_daily_bin289.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/826393/ltcube_314236801_314496001_4FGL_J0746.4+2546_daily_bin289.fits
.....................!
real 195.33
user 185.20
sys 6.41

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/826393/ft1_filtered_4FGL_J0746.4+2546_daily_bin289.fits scfile=/scratch/kocevski/826393/ft2_4FGL_J0746.4+2546_daily_bin289.fits outfile=/scratch/kocevski/826393/cmap_314236801_314496001_4FGL_J0746.4+2546_daily_bin289.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 1.43
user 0.35
sys 1.01

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/826393/ft1_filtered_4FGL_J0746.4+2546_daily_bin289.fits scfile=/scratch/kocevski/826393/ft2_4FGL_J0746.4+2546_daily_bin289.fits outfile=/scratch/kocevski/826393/cmap_HighResolution_314236801_314496001_4FGL_J0746.4+2546_daily_bin289.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 1.43
user 0.38
sys 1.01

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    .10687E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    .71102       1.0000         .10000E-03   10000.    
     4 'Prefactor '    17.589       1.0000         .10000E-03   10000.    
     5 'Prefactor '    1.7114       1.0000         .10000E-03   10000.    
     6 'norm      '    4.8286       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .56290       1.0000         .10000E-03   10000.    
     8 'norm      '    .45840       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .44916E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .13895       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10103E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10025E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    7.0594       1.0000         .10000E-03   10000.    
    14 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    31.941       1.0000         .10000E-03   10000.    
    18 'Prefactor '    2.2114       1.0000         .10000E-03   10000.    
    19 'norm      '    .92514       1.0000         .10000E-03   10000.    
    20 'Normalizat'    .85064       1.0000         .10000E-01   10.000    
    21 'Prefactor '    .97015       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.
 MACHINE ACCURACY LIMITS FURTHER IMPROVEMENT.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   6522.517     FROM MIGRAD    STATUS=CONVERGED    510 CALLS     2341 TOTAL
                     EDM=   .15E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    5.4846         .0000    ** at limit **
   2  norm          .10003E-03    6.5260         .0000    ** at limit **
   3  norm          .71118        .61323         .0000        .10641E-02
   4  Prefactor     17.591        8.0416         .0000        .23499E-02
   5  Prefactor     1.7125        14.057         .0000        .72662E-02
   6  norm          4.8141        2.4441         .0000       -.96190E-04
   7  Prefactor     .66879        7.9086         .0000        .30047E-03
   8  norm          .43742        2.6624         .0000        .48235E-03
   9  Prefactor     .10061E-03    28.632         .0000    ** at limit **
  10  Prefactor     .21715        16.160         .0000        .58002E-04
  11  Prefactor     .10000E-03    54.334         .0000    ** at limit **
  12  Prefactor     .10000E-03    11.487         .0000    ** at limit **
  13  norm          7.0606        8.6997         .0000        .80156E-03
  14  norm          .10000E-03    21.657         .0000    ** at limit **
  15  Prefactor     .10000E-03    13.677         .0000    ** at limit **
  16  Prefactor     .10000E-03    9.1616         .0000    ** at limit **
  17  Prefactor     31.943        28.206         .0000       -.16395E-03
  18  Prefactor     2.2193        60.733         .0000       -.31745E-03
  19  norm          .92482        1.2472         .0000        .11957E-02
  20  Normalizat    .85037        .18705         .0000        .51648E-03
  21  Prefactor     .97024        .11984         .0000        .65779E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 0.000100034
  norm       = 0.711181
  Prefactor  = 17.591
  Prefactor  = 1.71248
  norm       = 4.8141
  Prefactor  = 0.668787
  norm       = 0.437421
  Prefactor  = 0.000100608
  Prefactor  = 0.217154
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 7.06055
  norm       = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 31.9429
  Prefactor  = 2.21926
  norm       = 0.924822
  Normalizat = 0.850372
  Prefactor  = 0.970243
 **********
 **   18 **HESSE 
 **********

 FCN=   6522.517     FROM HESSE     STATUS=OK           343 CALLS     2684 TOTAL
                     EDM=   .76E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    5.5687        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .10003E-03    11.471        .61949E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          .71118        .57977        .56181E-03   -1.5539    
   4  Prefactor     17.591        8.0421        .95499E-04   -1.4869    
   5  Prefactor     1.7125        14.102        .16066E-02   -1.5446    
   6  norm          4.8141        3.2858        .66773E-04   -1.5269    
   7  Prefactor     .66879        85.810        .32964E-02   -1.5544    
   8  norm          .43742        7.4626        .20736E-02   -1.5576    
   9  Prefactor     .10061E-03    172.84        .74576E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .21715        20.675        .82420E-01   -1.5615    
  11  Prefactor     .10000E-03    54.738        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    11.490        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          7.0606        8.6974        .15098E-03   -1.5176    
  14  norm          .10000E-03    21.658        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    13.700        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    9.1681        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     31.943        28.264        .70899E-04   -1.4577    
  18  Prefactor     2.2193        54.915        .27660E-03   -1.5410    
  19  norm          .92482        1.0892        .84828E-03   -1.5516    
  20  Normalizat    .85037        .21740        .28547E-03   -.98227    
  21  Prefactor     .97024        .14090        .18837E-03   -.93728    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.57181e-08
Minuit parameter uncertainties:
  1  9.01477e-05
  2  0.00124811
  3  0.579771
  4  8.04257
  5  9.83118
  6  3.28597
  7  15.1722
  8  3.61358
  9  0.02056
  10  4.23825
  11  0.000256749
  12  0.000136369
  13  8.699
  14  0.000220324
  15  5.16773e-05
  16  0.000200013
  17  28.2754
  18  22.1013
  19  1.08921
  20  0.217626
  21  0.140955
Done.

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

Extracting fit parameters...

4FGL J0746.4+2546
   Spectrum: LogParabola
250         norm:  4.374e-01  3.614e+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.702e-01  1.410e-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:  8.504e-01  2.176e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/826393/likelihoodResults_314236801_314496001_4FGL_J0746.4+2546_daily_bin289.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) = 6522.4038274
delta logL = 0.112774847201

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6522.35603502
delta logL = 0.160567232127

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .70250       1.0000         .10000E-03   10000.    
     2 'alpha     '    4.5628       1.0000          .0000       5.0000    
     3 'Normalizat'    .81568       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .98479       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.
 MACHINE ACCURACY LIMITS FURTHER IMPROVEMENT.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   6522.356     FROM MIGRAD    STATUS=CONVERGED     99 CALLS      287 TOTAL
                     EDM=   .14E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .70355        3.1495        .11232E-03    .55222E-04
   2  alpha         4.5622        4.5842        .11801       -.31846E-05
   3  Normalizat    .81569        .20647        .29105E-03   -.39061E-06
   4  Prefactor     .98478        .14036        .18714E-03   -.35235E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 0.703553
  alpha      = 4.56219
  Normalizat = 0.815686
  Prefactor  = 0.984779
 **********
 **   18 **HESSE 
 **********

 FCN=   6522.356     FROM HESSE     STATUS=OK            25 CALLS      312 TOTAL
                     EDM=   .25E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .70355        2.0785        .22465E-04   -1.5540    
   2  alpha         4.5622        4.6898        .47203E-02    .96998    
   3  Normalizat    .81569        .20682        .11642E-04   -.99489    
   4  Prefactor     .98478        .14067        .74856E-05   -.93239    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.5326e-12
Minuit parameter uncertainties:
  1  2.07867
  2  3.04742
  3  0.207016
  4  0.140725
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/826393': 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) = 6522.35603483
delta logL = 0.160567424549

Extracting fit parameters...

4FGL J0746.4+2546
   Spectrum: LogParabola
250         norm:  7.036e-01  2.079e+00  1.000e-04  1.000e+04 ( 1.000e-11)
251        alpha:  4.562e+00  3.047e+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.848e-01  1.407e-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:  8.157e-01  2.070e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.02
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/826393/cmap_HighResolution_314236801_314496001_4FGL_J0746.4+2546_daily_bin289.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.00e-05', job_status='DONE', photon_flux_upper_limit='8.79e-08', time_completed='2021-08-28 10:22:39.030046', job_id='826393', GAL2='0.98', fit_tolerance='1e-08', EG2='0.82', EG='0.85', time_epoch_completed='1630171359.03', return_code2='0', ts='0.02', comment='SUCCESS', return_code='0', GAL='0.97', dlogl='1.61e-01', ts2='0.37', photon_index_error='0.00', photon_index='2.62' WHERE bin_id='289' AND source_name='4FGL J0746.4+2546' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Aug 28 10:22:39 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0024>
Subject: Job 826393: <4FGL_J0746.4+2546_daily_bin289> in cluster <slac> Done

Job <4FGL_J0746.4+2546_daily_bin289> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Sat Aug 28 10:10:49 2021
Job was executed on host(s) <bullet0024>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Aug 28 10:10:53 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:10:53 2021
Terminated at Sat Aug 28 10:22:39 2021
Results reported at Sat Aug 28 10:22:39 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0746.4+2546_daily_bin289 116.602 25.7678 314236801 314496001 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 :                                   681.09 sec.
    Max Memory :                                 1255 MB
    Average Memory :                             337.30 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   706 sec.
    Turnaround time :                            710 sec.

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

