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


Performing analysis on: 4FGL_J0428.6-3756_daily_bin970
RA = 67.173, Dec = -37.9403
tmin = 490752001, tmax = 491011201
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='478112', job_status='RUN', time_executed='2021-08-20 17:05:41.770322', time_epoch_executed='1629504341.77' WHERE source_name='4FGL J0428.6-3756' and cadence='daily' and bin_id='970'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/478112

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/478112/ft1_4FGL_J0428.6-3756_daily_bin970.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/478112/ft2_4FGL_J0428.6-3756_daily_bin970.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/478112/ft1_4FGL_J0428.6-3756_daily_bin970.fits outfile=/scratch/kocevski/478112/ft1_filteredMKT_4FGL_J0428.6-3756_daily_bin970.fits ra=67.173 dec=-37.9403 rad=12.0 tmin=490752001.0 tmax=491011201.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.72
user 5.46
sys 0.24

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/478112/ft2_4FGL_J0428.6-3756_daily_bin970.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/478112/ft1_filteredMKT_4FGL_J0428.6-3756_daily_bin970.fits evtable="EVENTS" outfile="/scratch/kocevski/478112/ft1_filtered_4FGL_J0428.6-3756_daily_bin970.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.51
user 0.33
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/478112/ft1_filtered_4FGL_J0428.6-3756_daily_bin970.fits" evtable="EVENTS" scfile=/scratch/kocevski/478112/ft2_4FGL_J0428.6-3756_daily_bin970.fits sctable="SC_DATA" outfile=/scratch/kocevski/478112/ltcube_490752001_491011201_4FGL_J0428.6-3756_daily_bin970.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/478112/ft2_4FGL_J0428.6-3756_daily_bin970.fits
.....................!
real 11.98
user 11.62
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/478112/ft1_filtered_4FGL_J0428.6-3756_daily_bin970.fits evtable="EVENTS" scfile=/scratch/kocevski/478112/ft2_4FGL_J0428.6-3756_daily_bin970.fits sctable="SC_DATA" expcube=/scratch/kocevski/478112/ltcube_490752001_491011201_4FGL_J0428.6-3756_daily_bin970.fits outfile=/scratch/kocevski/478112/expmap_490752001_491011201_4FGL_J0428.6-3756_daily_bin970.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/478112/ltcube_490752001_491011201_4FGL_J0428.6-3756_daily_bin970.fits
.....................!
real 190.77
user 186.20
sys 4.24

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/478112/ft1_filtered_4FGL_J0428.6-3756_daily_bin970.fits scfile=/scratch/kocevski/478112/ft2_4FGL_J0428.6-3756_daily_bin970.fits outfile=/scratch/kocevski/478112/cmap_490752001_491011201_4FGL_J0428.6-3756_daily_bin970.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.54
user 0.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/478112/ft1_filtered_4FGL_J0428.6-3756_daily_bin970.fits scfile=/scratch/kocevski/478112/ft2_4FGL_J0428.6-3756_daily_bin970.fits outfile=/scratch/kocevski/478112/cmap_HighResolution_490752001_491011201_4FGL_J0428.6-3756_daily_bin970.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.54
user 0.37
sys 0.17

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/478112/ft1_filtered_4FGL_J0428.6-3756_daily_bin970.fits evtable="EVENTS" scfile=/scratch/kocevski/478112/ft2_4FGL_J0428.6-3756_daily_bin970.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/478112/Model_4FGL_J0428.6-3756_daily_bin970.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/478112/ft1_filtered_4FGL_J0428.6-3756_daily_bin970.fits.....................!
real 110.21
user 108.84
sys 1.15

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/478112/ft1_filtered_4FGL_J0428.6-3756_daily_bin970.fits', '/scratch/kocevski/478112/ft2_4FGL_J0428.6-3756_daily_bin970.fits', expMap='/scratch/kocevski/478112/expmap_490752001_491011201_4FGL_J0428.6-3756_daily_bin970.fits', expCube='/scratch/kocevski/478112/ltcube_490752001_491011201_4FGL_J0428.6-3756_daily_bin970.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/478112/Model_4FGL_J0428.6-3756_daily_bin970.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/478112/ft1_filtered_4FGL_J0428.6-3756_daily_bin970.fits
Spacecraft file(s): /scratch/kocevski/478112/ft2_4FGL_J0428.6-3756_daily_bin970.fits
Exposure map: /scratch/kocevski/478112/expmap_490752001_491011201_4FGL_J0428.6-3756_daily_bin970.fits
Exposure cube: /scratch/kocevski/478112/ltcube_490752001_491011201_4FGL_J0428.6-3756_daily_bin970.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/478112/Model_4FGL_J0428.6-3756_daily_bin970.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) = 4947.26298857

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    1.8885       1.0000         .10000E-03   10000.    
     2 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10088E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    .67930       1.0000         .10000E-03   10000.    
     6 'norm      '    45.809       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10015E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    32.850       1.0000         .10000E-03   10000.    
    10 'norm      '    4.1915       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .58760E-01   1.0000         .10000E-03   10000.    
    12 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    2.8736       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .86396       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .11606E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    5.5759       1.0000         .10000E-03   10000.    
    19 'Prefactor '    136.81       1.0000         .10000E-03   10000.    
    20 'Prefactor '    2.3103       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10249E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    2.9916       1.0000         .10000E-03   10000.    
    23 'Prefactor '    4.1136       1.0000         .10000E-03   10000.    
    24 'norm      '    6.4699       1.0000         .10000E-03   10000.    
    25 'Normalizat'    1.0253       1.0000         .10000E-01   10.000    
    26 'Prefactor '    .92659       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=   4947.257     FROM MIGRAD    STATUS=CONVERGED    664 CALLS     3224 TOTAL
                     EDM=   .24E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          1.8884        2.2778        .15079E-07   -.20111E-04
   2  norm          .10000E-03    .25961        .14850E-06** at limit **
   3  Prefactor     .10000E-03    10.946        .67335E-06** at limit **
   4  Prefactor     .10000E-03    287.42        .31938E-05** at limit **
   5  norm          .67920        .43362        .44623E-07    .52103E-03
   6  norm          45.806        15.088       -.11095E-06    .59456E-04
   7  Prefactor     .10000E-03    20.914        .96161E-06** at limit **
   8  Prefactor     .10000E-03    6.2789        .39120E-06** at limit **
   9  Prefactor     32.848        17.244       -.26774E-06    .80511E-04
  10  norm          4.1916        1.2119       -.11045E-07   -.29288E-03
  11  Prefactor     .52940E-01    18.325       -.67519E-05    .24747E-04
  12  norm          .10000E-03    3.0862       -.37883E-07** at limit **
  13  norm          .10000E-03    97.368        .27122E-06** at limit **
  14  norm          2.8754        1.6613        .91028E-07    .60009E-03
  15  Prefactor     .85187        3.8806       -.30200E-05    .14552E-03
  16  Prefactor     .10000E-03    6.4834        .61550E-06** at limit **
  17  norm          .10000E-03    2.3083        .40397E-06** at limit **
  18  norm          5.5881        5.8304       -.11768E-06    .15921E-03
  19  Prefactor     136.89        94.419        .83580E-06   -.15993E-04
  20  Prefactor     2.3092        7.0165       -.15306E-05   -.28867E-03
  21  Prefactor     .10000E-03    26.677       -.96358E-06** at limit **
  22  Prefactor     2.9922        2.5745       -.75681E-07    .31417E-03
  23  Prefactor     4.1128        4.2030       -.20111E-06   -.15583E-03
  24  norm          6.4697        2.6765        .18663E-07   -.11227E-03
  25  Normalizat    1.0256        .23959        .35873E-05   -.24296E-03
  26  Prefactor     .92637        .22976       -.47746E-05   -.15288E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 1.88837
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100005
  norm       = 0.6792
  norm       = 45.8063
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 32.8482
  norm       = 4.19161
  Prefactor  = 0.0529395
  norm       = 0.0001
  norm       = 0.0001
  norm       = 2.87536
  Prefactor  = 0.851869
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 5.58809
  Prefactor  = 136.889
  Prefactor  = 2.30919
  Prefactor  = 0.0001
  Prefactor  = 2.99223
  Prefactor  = 4.11279
  norm       = 6.46969
  Normalizat = 1.02559
  Prefactor  = 0.92637
 **********
 **   18 **HESSE 
 **********

 FCN=   4947.257     FROM HESSE     STATUS=OK           466 CALLS     3690 TOTAL
                     EDM=   .56E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          1.8884        2.2727        .11372E-03   -1.5433    
   2  norm          .10000E-03    .26153        .35040E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    11.005        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    288.71        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .67920        .42518        .34357E-04   -1.5543    
   6  norm          45.806        15.089        .59239E-04   -1.4353    
   7  Prefactor     .10000E-03    20.984        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    6.2892        .17219E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     32.848        17.411        .69913E-04   -1.4561    
  10  norm          4.1916        1.2196        .35912E-04   -1.5298    
  11  Prefactor     .52940E-01    18.518        .15435E-02   -1.5662    
  12  norm          .10000E-03    3.0898        .12064E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .10000E-03    97.376        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          2.8754        1.6674        .64376E-04   -1.5369    
  15  Prefactor     .85187        4.1766        .18256E-02   -1.5523    
  16  Prefactor     .10000E-03    6.5245        .17527E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .10000E-03    5.9354        .20649E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          5.5881        5.8422        .15113E-03   -1.5235    
  19  Prefactor     136.89        95.223        .17217E-03   -1.3363    
  20  Prefactor     2.3092        7.0252        .26993E-03   -1.5404    
  21  Prefactor     .10000E-03    26.712        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     2.9922        2.5717        .10072E-03   -1.5362    
  23  Prefactor     4.1128        4.1955        .13817E-03   -1.5302    
  24  norm          6.4697        2.6757        .70808E-04   -1.5199    
  25  Normalizat    1.0256        .26917        .26886E-03   -.92178    
  26  Prefactor     .92637        .25877        .29189E-03   -.95226    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.64073e-10
Minuit parameter uncertainties:
  1  2.27277
  2  2.23349e-06
  3  5.93474e-05
  4  0.0023235
  5  0.425179
  6  15.0899
  7  7.76893e-05
  8  5.23228e-05
  9  17.4138
  10  1.21961
  11  1.97898
  12  1.47293e-05
  13  6.37044e-05
  14  1.6674
  15  3.77267
  16  7.2754e-05
  17  3.607e-06
  18  5.84275
  19  95.3301
  20  7.02768
  21  9.72004e-05
  22  2.57182
  23  4.19578
  24  2.67576
  25  0.269529
  26  0.25912
Done.

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

Extracting fit parameters...

4FGL J0428.6-3756
   Spectrum: LogParabola
257         norm:  4.192e+00  1.220e+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.264e-01  2.591e-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.026e+00  2.695e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 58.89
Ra Dec: 67.173 -37.940
Photon Index (Fixed Index): 1.99 +/- 0.00
Photon Flux (Fixed Index): 2.31e-07 +/- 6.71e-08
Energy Flux (Fixed Index): 1.32e-04 +/- 3.85e-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) = 4947.22864844
delta logL = 0.028202036925

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4947.22511283
delta logL = 0.0317376532448

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    4.1512       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.0608       1.0000          .0000       5.0000    
     3 'Normalizat'    1.0128       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .93378       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=   4947.225     FROM MIGRAD    STATUS=CONVERGED     51 CALLS      202 TOTAL
                     EDM=   .24E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          4.1511        1.9403        .49457E-02    .28914E-04
   2  alpha         2.0607        .44470        .15454        .28240E-04
   3  Normalizat    1.0128        .21711        .44764E-01    .96041E-05
   4  Prefactor     .93378        .22027        .65738E-01    .98660E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 4.15114
  alpha      = 2.0607
  Normalizat = 1.01282
  Prefactor  = 0.93378
 **********
 **   18 **HESSE 
 **********

 FCN=   4947.225     FROM HESSE     STATUS=OK            33 CALLS      235 TOTAL
                     EDM=   .25E-12    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          4.1511        1.0868        .35120E-04   -1.5300    
   2  alpha         2.0607        .26105        .65225E-02   -.17664    
   3  Normalizat    1.0128        .24910        .27013E-03   -.92602    
   4  Prefactor     .93378        .25476        .29075E-03   -.94971    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.52085e-13
Minuit parameter uncertainties:
  1  1.08685
  2  0.261542
  3  0.24939
  4  0.255082
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/478112': 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) = 4947.22511268
delta logL = 0.0317377991269

Extracting fit parameters...

4FGL J0428.6-3756
   Spectrum: LogParabola
257         norm:  4.151e+00  1.087e+00  1.000e-04  1.000e+04 ( 1.000e-11)
258        alpha:  2.061e+00  2.615e-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.338e-01  2.551e-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.013e+00  2.494e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 59.53
Ra Dec: 67.173 -37.940
Photon Index (Free Index): 2.06 +/- 0.26
Photon Flux (Free Index): 2.45e-07 +/- 8.42e-08
Energy Flux (Free Index): 1.26e-04 +/- 4.06e-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/478112/cmap_HighResolution_490752001_491011201_4FGL_J0428.6-3756_daily_bin970.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='2.31e-07', energy_flux2='1.26e-04', photon_flux_error='6.71e-08', dlogl='3.17e-02', energy_flux='1.32e-04', photon_flux2='2.45e-07', job_status='DONE', time_completed='2021-08-20 17:16:57.146982', photon_index_error2='0.26', photon_index2='2.06', ts='58.89', fit_tolerance='1e-08', GAL='0.93', photon_index_error='0.00', energy_flux_error2='4.06e-05', EG='1.03', time_epoch_completed='1629505017.15', return_code='0', job_id='478112', GAL2='0.93', EG2='1.01', return_code2='0', energy_flux_error='3.85e-05', photon_flux_error2='8.42e-08', ts2='59.53', photon_index='1.99' WHERE bin_id='970' AND source_name='4FGL J0428.6-3756' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Aug 20 17:16:57 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0213>
Subject: Job 478112: <4FGL_J0428.6-3756_daily_bin970> in cluster <slac> Done

Job <4FGL_J0428.6-3756_daily_bin970> was submitted from host <rhel6-64j> by user <kocevski> in cluster <slac> at Fri Aug 20 17:05:25 2021
Job was executed on host(s) <bullet0213>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Aug 20 17:05:27 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:05:27 2021
Terminated at Fri Aug 20 17:16:57 2021
Results reported at Fri Aug 20 17:16:57 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0428.6-3756_daily_bin970 67.173 -37.9403 490752001 491011201 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 :                                   673.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             360.77 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   690 sec.
    Turnaround time :                            692 sec.

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

