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


Performing analysis on: 4FGL_J0428.6-3756_daily_bin755
RA = 67.173, Dec = -37.9403
tmin = 435024001, tmax = 435283201
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='476366', job_status='RUN', time_executed='2021-08-20 17:04:14.928634', time_epoch_executed='1629504254.93' WHERE source_name='4FGL J0428.6-3756' and cadence='daily' and bin_id='755'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/476366

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/476366/ft1_4FGL_J0428.6-3756_daily_bin755.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/476366/ft2_4FGL_J0428.6-3756_daily_bin755.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/476366/ft1_4FGL_J0428.6-3756_daily_bin755.fits outfile=/scratch/kocevski/476366/ft1_filteredMKT_4FGL_J0428.6-3756_daily_bin755.fits ra=67.173 dec=-37.9403 rad=12.0 tmin=435024001.0 tmax=435283201.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 5.06
user 4.72
sys 0.31

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/476366/ft2_4FGL_J0428.6-3756_daily_bin755.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/476366/ft2_4FGL_J0428.6-3756_daily_bin755.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/476366/ft1_filteredMKT_4FGL_J0428.6-3756_daily_bin755.fits evtable="EVENTS" outfile="/scratch/kocevski/476366/ft1_filtered_4FGL_J0428.6-3756_daily_bin755.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.56
user 0.32
sys 0.23

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/476366/ft1_filtered_4FGL_J0428.6-3756_daily_bin755.fits" evtable="EVENTS" scfile=/scratch/kocevski/476366/ft2_4FGL_J0428.6-3756_daily_bin755.fits sctable="SC_DATA" outfile=/scratch/kocevski/476366/ltcube_435024001_435283201_4FGL_J0428.6-3756_daily_bin755.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/476366/ft2_4FGL_J0428.6-3756_daily_bin755.fits
.....................!
real 12.13
user 11.70
sys 0.39

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/476366/ft1_filtered_4FGL_J0428.6-3756_daily_bin755.fits evtable="EVENTS" scfile=/scratch/kocevski/476366/ft2_4FGL_J0428.6-3756_daily_bin755.fits sctable="SC_DATA" expcube=/scratch/kocevski/476366/ltcube_435024001_435283201_4FGL_J0428.6-3756_daily_bin755.fits outfile=/scratch/kocevski/476366/expmap_435024001_435283201_4FGL_J0428.6-3756_daily_bin755.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/476366/ltcube_435024001_435283201_4FGL_J0428.6-3756_daily_bin755.fits
.....................!
real 194.30
user 188.88
sys 4.98

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 Fornax A in ROI, make sure /nfs/farm/g/glast/g/LCRepository/Likelihood/ExtendedSources/Extended_archive_v18/Templates/FornaxA.fits is the correct path to the extended template.
Added 177 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 J0428.6-3756 @ 67.173 -37.9403

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/476366/ft1_filtered_4FGL_J0428.6-3756_daily_bin755.fits scfile=/scratch/kocevski/476366/ft2_4FGL_J0428.6-3756_daily_bin755.fits outfile=/scratch/kocevski/476366/cmap_435024001_435283201_4FGL_J0428.6-3756_daily_bin755.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=67.173 yref=-37.9403 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.62
user 0.38
sys 0.23

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/476366/ft1_filtered_4FGL_J0428.6-3756_daily_bin755.fits scfile=/scratch/kocevski/476366/ft2_4FGL_J0428.6-3756_daily_bin755.fits outfile=/scratch/kocevski/476366/cmap_HighResolution_435024001_435283201_4FGL_J0428.6-3756_daily_bin755.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=67.173 yref=-37.9403 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.62
user 0.40
sys 0.21

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/476366/ft1_filtered_4FGL_J0428.6-3756_daily_bin755.fits evtable="EVENTS" scfile=/scratch/kocevski/476366/ft2_4FGL_J0428.6-3756_daily_bin755.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/476366/Model_4FGL_J0428.6-3756_daily_bin755.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 Fornax A
adding source GAL_V02
Working on...
/scratch/kocevski/476366/ft1_filtered_4FGL_J0428.6-3756_daily_bin755.fits.....................!
real 103.10
user 101.47
sys 1.27

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/476366/ft1_filtered_4FGL_J0428.6-3756_daily_bin755.fits', '/scratch/kocevski/476366/ft2_4FGL_J0428.6-3756_daily_bin755.fits', expMap='/scratch/kocevski/476366/expmap_435024001_435283201_4FGL_J0428.6-3756_daily_bin755.fits', expCube='/scratch/kocevski/476366/ltcube_435024001_435283201_4FGL_J0428.6-3756_daily_bin755.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/476366/Model_4FGL_J0428.6-3756_daily_bin755.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J0428.6-3756'

4FGL J0428.6-3756
   Spectrum: LogParabola
257         norm:  4.206e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-11)
258        alpha:  1.995e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
259         beta:  8.169e-02  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
260           Eb:  8.090e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/476366/ft1_filtered_4FGL_J0428.6-3756_daily_bin755.fits
Spacecraft file(s): /scratch/kocevski/476366/ft2_4FGL_J0428.6-3756_daily_bin755.fits
Exposure map: /scratch/kocevski/476366/expmap_435024001_435283201_4FGL_J0428.6-3756_daily_bin755.fits
Exposure cube: /scratch/kocevski/476366/ltcube_435024001_435283201_4FGL_J0428.6-3756_daily_bin755.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/476366/Model_4FGL_J0428.6-3756_daily_bin755.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) = 4805.02659472

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    14.633       1.0000         .10000E-03   10000.    
     2 'norm      '    .90486       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    3.3564       1.0000         .10000E-03   10000.    
     6 'norm      '    10.736       1.0000         .10000E-03   10000.    
     7 'Prefactor '    4.7354       1.0000         .10000E-03   10000.    
     8 'Prefactor '    11.480       1.0000         .10000E-03   10000.    
     9 'Prefactor '    49.343       1.0000         .10000E-03   10000.    
    10 'norm      '    2.1906       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10020E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    6.5777       1.0000         .10000E-03   10000.    
    15 'Prefactor '    3.1842       1.0000         .10000E-03   10000.    
    16 'Prefactor '    21.443       1.0000         .10000E-03   10000.    
    17 'norm      '    9.0241       1.0000         .10000E-03   10000.    
    18 'norm      '    .10215E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    6.5558       1.0000         .10000E-03   10000.    
    21 'Prefactor '    30.793       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10016E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    24 'norm      '    .10475E-03   1.0000         .10000E-03   10000.    
    25 'Normalizat'    1.3341       1.0000         .10000E-01   10.000    
    26 'Prefactor '    .97065       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5760E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   4805.025     FROM MIGRAD    STATUS=CONVERGED    610 CALLS     3069 TOTAL
                     EDM=   .40E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          14.631        6.9257        .86787E-06    .56667E-04
   2  norm          .90545        1.5228       -.33284E-06   -.10209E-02
   3  Prefactor     .10000E-03    12.906       -.32739E-06** at limit **
   4  Prefactor     .10000E-03    84.903       -.25929E-04** at limit **
   5  norm          3.3562        .80043        .57825E-08    .18604E-03
   6  norm          10.736        10.685       -.95941E-07   -.12571E-04
   7  Prefactor     4.7178        129.63       -.59042E-04   -.31413E-05
   8  Prefactor     11.478        20.214       -.92901E-07   -.71929E-05
   9  Prefactor     49.343        20.385        .45732E-06    .48934E-04
  10  norm          2.1906        1.1441       -.57191E-07    .33030E-04
  11  Prefactor     .10000E-03    2.9118       -.30401E-06** at limit **
  12  norm          .10000E-03    3.7374       -.10559E-05** at limit **
  13  norm          .10000E-03    79.627        .23238E-04** at limit **
  14  norm          6.5775        2.9018       -.88810E-06    .15951E-03
  15  Prefactor     3.1841        4.6769        .32750E-05   -.31348E-03
  16  Prefactor     21.439        19.043        .35490E-06   -.15683E-04
  17  norm          9.0240        5.9814        .14759E-06   -.42774E-04
  18  norm          .10000E-03    3.9049        .75508E-06** at limit **
  19  Prefactor     .10000E-03    29.995       -.14717E-06** at limit **
  20  Prefactor     6.5563        9.3956       -.75922E-06   -.10921E-03
  21  Prefactor     30.806        62.802        .19970E-04    .14393E-04
  22  Prefactor     .10000E-03    2.5516       -.19212E-06** at limit **
  23  Prefactor     .10000E-03    1.9267       -.13511E-06** at limit **
  24  norm          .10000E-03    1.8905       -.53243E-06** at limit **
  25  Normalizat    1.3340        .27047       -.90293E-06    .17512E-03
  26  Prefactor     .97072        .25632        .17661E-05    .64536E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 14.6308
  norm       = 0.905449
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 3.35617
  norm       = 10.7358
  Prefactor  = 4.71777
  Prefactor  = 11.4783
  Prefactor  = 49.3429
  norm       = 2.19059
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  norm       = 6.57754
  Prefactor  = 3.18407
  Prefactor  = 21.4391
  norm       = 9.02397
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 6.55629
  Prefactor  = 30.8065
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.000100001
  Normalizat = 1.33405
  Prefactor  = 0.970719
 **********
 **   18 **HESSE 
 **********

 FCN=   4805.025     FROM HESSE     STATUS=OK           466 CALLS     3535 TOTAL
                     EDM=   .80E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          14.631        6.8743        .10471E-03   -1.4943    
   2  norm          .90545        1.4138        .10398E-02   -1.5518    
   3  Prefactor     .10000E-03    12.928        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    84.885        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          3.3562        .80646        .28150E-04   -1.5342    
   6  norm          10.736        10.687        .12228E-03   -1.5053    
   7  Prefactor     4.7178        131.59        .18491E-03   -1.5274    
   8  Prefactor     11.478        20.181        .11824E-03   -1.5030    
   9  Prefactor     49.343        20.439        .57088E-04   -1.4302    
  10  norm          2.1906        1.1447        .27807E-04   -1.5412    
  11  Prefactor     .10000E-03    6.7937        .22374E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          .10000E-03    3.7404        .13087E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .10000E-03    79.587        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          6.5775        2.8950        .69065E-04   -1.5195    
  15  Prefactor     3.1841        4.5819        .14820E-03   -1.5351    
  16  Prefactor     21.439        18.938        .86497E-04   -1.4782    
  17  norm          9.0240        5.9794        .13186E-03   -1.5107    
  18  norm          .10000E-03    3.9194        .13347E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    30.004        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     6.5563        9.4037        .15673E-03   -1.5196    
  21  Prefactor     30.806        62.715        .72204E-04   -1.4597    
  22  Prefactor     .10000E-03    2.6166        .21616E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    1.9348        .93944E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm          .10000E-03    3.2155        .18404E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Normalizat    1.3340        .32527        .29264E-03   -.82556    
  26  Prefactor     .97072        .30525        .33724E-03   -.93712    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.03157e-10
Minuit parameter uncertainties:
  1  6.87464
  2  1.41381
  3  4.01982e-06
  4  2.93451e-06
  5  0.806466
  6  10.6886
  7  49.9544
  8  20.1933
  9  20.4418
  10  1.14475
  11  7.87702e-05
  12  2.1271e-06
  13  1.94876e-06
  14  2.89507
  15  4.58239
  16  18.9432
  17  5.97984
  18  4.09789e-05
  19  8.52843e-05
  20  9.40584
  21  62.8494
  22  2.13696e-05
  23  1.38216e-05
  24  8.74707e-05
  25  0.325769
  26  0.305798
Done.

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

Extracting fit parameters...

4FGL J0428.6-3756
   Spectrum: LogParabola
257         norm:  2.191e+00  1.145e+00  1.000e-04  1.000e+04 ( 1.000e-11)
258        alpha:  1.995e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
259         beta:  8.169e-02  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
260           Eb:  8.090e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
573    Prefactor:  9.707e-01  3.058e-01  0.000e+00  1.000e+01 ( 1.000e+00)
574        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
575        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
569   Normalization:  1.334e+00  3.258e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 14.92
Ra Dec: 67.173 -37.940
Photon Index (Fixed Index): 1.99 +/- 0.00
Photon Flux (Fixed Index): 1.21e-07 +/- 6.30e-08
Energy Flux (Fixed Index): 6.92e-05 +/- 3.61e-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) = 4805.01600042
delta logL = 0.00933546156102

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4805.01580474
delta logL = 0.0095311347668

Fit tolerance = 1e-08

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

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

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   4805.016     FROM MIGRAD    STATUS=CONVERGED     42 CALLS      190 TOTAL
                     EDM=   .12E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          2.1906        1.2670        .69517E-03   -.97404E-04
   2  alpha         1.9419        .43104        .23810       -.24179E-05
   3  Normalizat    1.3388        .25417        .66072E-01    .37521E-04
   4  Prefactor     .96832        .25495        .76305E-01   -.79028E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 2.19062
  alpha      = 1.94192
  Normalizat = 1.33879
  Prefactor  = 0.968318
 **********
 **   18 **HESSE 
 **********

 FCN=   4805.016     FROM HESSE     STATUS=OK            33 CALLS      223 TOTAL
                     EDM=   .23E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          2.1906        1.0529        .27807E-04   -1.5412    
   2  alpha         1.9419        .38185        .98384E-02   -.22513    
   3  Normalizat    1.3388        .30033        .29227E-03   -.82416    
   4  Prefactor     .96832        .30118        .33766E-03   -.93793    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.31452e-11
Minuit parameter uncertainties:
  1  1.05294
  2  0.383435
  3  0.300726
  4  0.301703
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/476366': 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) = 4805.01580474
delta logL = 0.00953113517608

Extracting fit parameters...

4FGL J0428.6-3756
   Spectrum: LogParabola
257         norm:  2.191e+00  1.053e+00  1.000e-04  1.000e+04 ( 1.000e-11)
258        alpha:  1.942e+00  3.834e-01  0.000e+00  5.000e+00 ( 1.000e+00)
259         beta:  8.169e-02  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
260           Eb:  8.090e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
573    Prefactor:  9.683e-01  3.017e-01  0.000e+00  1.000e+01 ( 1.000e+00)
574        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
575        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
569   Normalization:  1.339e+00  3.007e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 15.09
Ra Dec: 67.173 -37.940
Photon Index (Free Index): 1.94 +/- 0.38
Photon Flux (Free Index): 1.14e-07 +/- 7.10e-08
Energy Flux (Free Index): 7.21e-05 +/- 4.17e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/476366/cmap_HighResolution_435024001_435283201_4FGL_J0428.6-3756_daily_bin755.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='1.21e-07', energy_flux2='7.21e-05', photon_flux_error='6.30e-08', dlogl='9.53e-03', energy_flux='6.92e-05', photon_flux2='1.14e-07', job_status='DONE', time_completed='2021-08-20 17:15:00.809903', photon_index_error2='0.38', photon_index2='1.94', ts='14.92', fit_tolerance='1e-08', GAL='0.97', photon_index_error='0.00', energy_flux_error2='4.17e-05', EG='1.33', time_epoch_completed='1629504900.81', return_code='0', job_id='476366', GAL2='0.97', EG2='1.34', return_code2='0', energy_flux_error='3.61e-05', photon_flux_error2='7.10e-08', ts2='15.09', photon_index='1.99' WHERE bin_id='755' AND source_name='4FGL J0428.6-3756' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Aug 20 17:15:00 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0204>
Subject: Job 476366: <4FGL_J0428.6-3756_daily_bin755> in cluster <slac> Done

Job <4FGL_J0428.6-3756_daily_bin755> was submitted from host <rhel6-64q> by user <kocevski> in cluster <slac> at Fri Aug 20 17:00:31 2021
Job was executed on host(s) <bullet0204>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Aug 20 17:00:32 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Fri Aug 20 17:00:32 2021
Terminated at Fri Aug 20 17:15:01 2021
Results reported at Fri Aug 20 17:15:01 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0428.6-3756_daily_bin755 67.173 -37.9403 435024001 435283201 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J0428.6-3756 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   644.22 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             273.22 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   869 sec.
    Turnaround time :                            870 sec.

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

