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


Performing analysis on: 4FGL_J0428.6-3756_daily_bin155
RA = 67.173, Dec = -37.9403
tmin = 279504001, tmax = 279763201
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='471959', job_status='RUN', time_executed='2021-08-20 16:46:25.680013', time_epoch_executed='1629503185.68' WHERE source_name='4FGL J0428.6-3756' and cadence='daily' and bin_id='155'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/471959

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/471959/ft1_4FGL_J0428.6-3756_daily_bin155.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/471959/ft2_4FGL_J0428.6-3756_daily_bin155.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/471959/ft1_4FGL_J0428.6-3756_daily_bin155.fits outfile=/scratch/kocevski/471959/ft1_filteredMKT_4FGL_J0428.6-3756_daily_bin155.fits ra=67.173 dec=-37.9403 rad=12.0 tmin=279504001.0 tmax=279763201.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.52
user 3.32
sys 1.14

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/471959/ft1_filtered_4FGL_J0428.6-3756_daily_bin155.fits" evtable="EVENTS" scfile=/scratch/kocevski/471959/ft2_4FGL_J0428.6-3756_daily_bin155.fits sctable="SC_DATA" outfile=/scratch/kocevski/471959/ltcube_279504001_279763201_4FGL_J0428.6-3756_daily_bin155.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/471959/ft2_4FGL_J0428.6-3756_daily_bin155.fits
.....................!
real 13.70
user 11.53
sys 1.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/471959/ft1_filtered_4FGL_J0428.6-3756_daily_bin155.fits evtable="EVENTS" scfile=/scratch/kocevski/471959/ft2_4FGL_J0428.6-3756_daily_bin155.fits sctable="SC_DATA" expcube=/scratch/kocevski/471959/ltcube_279504001_279763201_4FGL_J0428.6-3756_daily_bin155.fits outfile=/scratch/kocevski/471959/expmap_279504001_279763201_4FGL_J0428.6-3756_daily_bin155.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/471959/ltcube_279504001_279763201_4FGL_J0428.6-3756_daily_bin155.fits
.....................!
real 192.77
user 186.16
sys 5.14

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/471959/ft1_filtered_4FGL_J0428.6-3756_daily_bin155.fits scfile=/scratch/kocevski/471959/ft2_4FGL_J0428.6-3756_daily_bin155.fits outfile=/scratch/kocevski/471959/cmap_279504001_279763201_4FGL_J0428.6-3756_daily_bin155.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 1.46
user 0.39
sys 1.03

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/471959/ft1_filtered_4FGL_J0428.6-3756_daily_bin155.fits scfile=/scratch/kocevski/471959/ft2_4FGL_J0428.6-3756_daily_bin155.fits outfile=/scratch/kocevski/471959/cmap_HighResolution_279504001_279763201_4FGL_J0428.6-3756_daily_bin155.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 1.45
user 0.39
sys 1.04

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/471959/ft1_filtered_4FGL_J0428.6-3756_daily_bin155.fits evtable="EVENTS" scfile=/scratch/kocevski/471959/ft2_4FGL_J0428.6-3756_daily_bin155.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/471959/Model_4FGL_J0428.6-3756_daily_bin155.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/471959/ft1_filtered_4FGL_J0428.6-3756_daily_bin155.fits.....................!
real 130.72
user 119.96
sys 2.45

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    3.0537       1.0000         .10000E-03   10000.    
     2 'norm      '    .27160       1.0000         .10000E-03   10000.    
     3 'Prefactor '    13.630       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    .20075       1.0000         .10000E-03   10000.    
     6 'norm      '    14.149       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10014E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    2.4332       1.0000         .10000E-03   10000.    
    11 'Prefactor '    5.0090       1.0000         .10000E-03   10000.    
    12 'norm      '    .10009E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    204.74       1.0000         .10000E-03   10000.    
    14 'norm      '    2.6690       1.0000         .10000E-03   10000.    
    15 'Prefactor '    5.5834       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .55927E-02   1.0000         .10000E-03   10000.    
    17 'norm      '    17.311       1.0000         .10000E-03   10000.    
    18 'norm      '    3.5064       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    4.9844       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .46545E-01   1.0000         .10000E-03   10000.    
    24 'norm      '    2.0126       1.0000         .10000E-03   10000.    
    25 'Normalizat'    1.0776       1.0000         .10000E-01   10.000    
    26 'Prefactor '    .86932       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=   5737.646     FROM MIGRAD    STATUS=CONVERGED    632 CALLS     4074 TOTAL
                     EDM=   .18E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          3.0537        3.4582       -.50398E-07   -.73366E-04
   2  norm          .27178        .86928        .90039E-07   -.69975E-03
   3  Prefactor     13.630        20.048        .12519E-05    .13718E-03
   4  Prefactor     .10003E-03    65.168        .10908E-04** at limit **
   5  norm          .20083        .27426        .52512E-08   -.68274E-03
   6  norm          14.148        8.2372       -.81747E-07   -.37824E-04
   7  Prefactor     .10000E-03    29.229       -.14510E-05** at limit **
   8  Prefactor     .10000E-03    7.4735       -.15641E-07** at limit **
   9  Prefactor     .10000E-03    8.1998        .72487E-07** at limit **
  10  norm          2.4330        .76168        .71079E-08    .43491E-04
  11  Prefactor     5.0091        2.7086        .48367E-07    .10047E-02
  12  norm          .10000E-03    3.2663        .12118E-07** at limit **
  13  norm          204.76        205.87        .69954E-05    .11124E-03
  14  norm          2.6691        1.7919        .14137E-08    .53854E-03
  15  Prefactor     5.5834        3.3180        .40554E-07    .15799E-02
  16  Prefactor     .10070E-03    21.567       -.48479E-05** at limit **
  17  norm          17.312        5.9840       -.70657E-07    .95467E-04
  18  norm          3.5033        5.5379        .71557E-06    .18405E-02
  19  Prefactor     .10000E-03    14.809       -.35842E-06** at limit **
  20  Prefactor     4.9848        3.6154        .66991E-06   -.17812E-02
  21  Prefactor     .10000E-03    18.664        .92246E-06** at limit **
  22  Prefactor     .10000E-03    .53856        .29451E-08** at limit **
  23  Prefactor     .61216E-01    1.9848       -.31745E-06    .33043E-03
  24  norm          2.0104        2.2580        .80401E-07    .42601E-04
  25  Normalizat    1.0776        .19368       -.16956E-06    .36138E-03
  26  Prefactor     .86920        .19829       -.34241E-06    .27231E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 3.05373
  norm       = 0.271783
  Prefactor  = 13.63
  Prefactor  = 0.000100034
  norm       = 0.200834
  norm       = 14.1481
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 2.43302
  Prefactor  = 5.00905
  norm       = 0.0001
  norm       = 204.759
  norm       = 2.66914
  Prefactor  = 5.5834
  Prefactor  = 0.0001007
  norm       = 17.3122
  norm       = 3.50332
  Prefactor  = 0.0001
  Prefactor  = 4.98482
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0612159
  norm       = 2.0104
  Normalizat = 1.07759
  Prefactor  = 0.869199
 **********
 **   18 **HESSE 
 **********

 FCN=   5737.646     FROM HESSE     STATUS=OK           466 CALLS     4540 TOTAL
                     EDM=   .16E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          3.0537        3.4319        .14281E-03   -1.5358    
   2  norm          .27178        .89203        .12149E-03   -1.5604    
   3  Prefactor     13.630        19.975        .10849E-03   -1.4969    
   4  Prefactor     .10003E-03    65.060        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .20083        .24775        .43269E-03   -1.5618    
   6  norm          14.148        8.2048        .10648E-03   -1.4956    
   7  Prefactor     .10000E-03    29.371        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    7.5049        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    8.2778        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          2.4330        .76052        .35260E-04   -1.5396    
  11  Prefactor     5.0091        2.6999        .86073E-04   -1.5260    
  12  norm          .10000E-03    3.2717        .13365E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          204.76        205.70        .14123E-03   -1.2836    
  14  norm          2.6691        1.7909        .74652E-04   -1.5381    
  15  Prefactor     5.5834        3.3169        .87929E-04   -1.5235    
  16  Prefactor     .10070E-03    80.036        .48334E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          17.312        6.0357        .96262E-04   -1.4876    
  18  norm          3.5033        4.8245        .17897E-03   -1.5334    
  19  Prefactor     .10000E-03    14.814        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     4.9848        5.5932        .89208E-03   -1.5261    
  21  Prefactor     .10000E-03    18.676        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    .53949        .54283E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .61216E-01    61.389        .19336E-02   -1.5659    
  24  norm          2.0104        2.3084        .11004E-03   -1.5424    
  25  Normalizat    1.0776        .23635        .24773E-03   -.90475    
  26  Prefactor     .86920        .23999        .28906E-03   -.97226    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.55761e-08
Minuit parameter uncertainties:
  1  3.43208
  2  0.892075
  3  19.9846
  4  0.00297546
  5  0.247756
  6  8.20542
  7  0.000258936
  8  5.98116e-07
  9  8.69003e-06
  10  0.76052
  11  2.69993
  12  1.60145e-06
  13  206.43
  14  1.7909
  15  3.31697
  16  0.0149865
  17  6.03596
  18  4.82506
  19  4.54257e-05
  20  5.59374
  21  0.000138365
  22  2.80042e-07
  23  3.87793
  24  2.30852
  25  0.236581
  26  0.240281
Done.

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

Extracting fit parameters...

4FGL J0428.6-3756
   Spectrum: LogParabola
257         norm:  2.433e+00  7.605e-01  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:  8.692e-01  2.403e-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.078e+00  2.366e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 29.44
Ra Dec: 67.173 -37.940
Photon Index (Fixed Index): 1.99 +/- 0.00
Photon Flux (Fixed Index): 1.34e-07 +/- 4.18e-08
Energy Flux (Fixed Index): 7.68e-05 +/- 2.40e-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) = 5737.03431156
delta logL = 0.6120381726

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5737.02543121
delta logL = 0.620918520137

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    2.1048       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.3275       1.0000          .0000       5.0000    
     3 'Normalizat'    1.0273       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .90354       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=   5737.025     FROM MIGRAD    STATUS=CONVERGED     49 CALLS      236 TOTAL
                     EDM=   .33E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          2.1049        8.0990        .68620E-02    .12138E-03
   2  alpha         2.3274        3.6230        .15879        .51915E-04
   3  Normalizat    1.0273        .13776        .42445E-01    .10178E-04
   4  Prefactor     .90352        .12194        .45050E-01    .13601E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 2.10485
  alpha      = 2.32742
  Normalizat = 1.0273
  Prefactor  = 0.90352
 **********
 **   18 **HESSE 
 **********

 FCN=   5737.025     FROM HESSE     STATUS=OK            33 CALLS      269 TOTAL
                     EDM=   .69E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          2.1049        .77163        .30402E-04   -1.5418    
   2  alpha         2.3274        .31222        .67389E-02   -.69089E-01
   3  Normalizat    1.0273        .22682        .25240E-03   -.92121    
   4  Prefactor     .90352        .23805        .28368E-03   -.96018    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.85818e-10
Minuit parameter uncertainties:
  1  0.771638
  2  0.313041
  3  0.227035
  4  0.238324
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/471959': 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) = 5737.02543119
delta logL = 0.620918547961

Extracting fit parameters...

4FGL J0428.6-3756
   Spectrum: LogParabola
257         norm:  2.105e+00  7.716e-01  1.000e-04  1.000e+04 ( 1.000e-11)
258        alpha:  2.327e+00  3.130e-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.035e-01  2.383e-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.027e+00  2.270e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 30.41
Ra Dec: 67.173 -37.940
Photon Index (Free Index): 2.33 +/- 0.31
Photon Flux (Free Index): 1.71e-07 +/- 5.78e-08
Energy Flux (Free Index): 6.06e-05 +/- 2.09e-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/471959/cmap_HighResolution_279504001_279763201_4FGL_J0428.6-3756_daily_bin155.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='1.34e-07', energy_flux2='6.06e-05', photon_flux_error='4.18e-08', dlogl='6.21e-01', energy_flux='7.68e-05', photon_flux2='1.71e-07', job_status='DONE', time_completed='2021-08-20 16:59:37.782831', photon_index_error2='0.31', photon_index2='2.33', ts='29.44', fit_tolerance='1e-08', GAL='0.87', photon_index_error='0.00', energy_flux_error2='2.09e-05', EG='1.08', time_epoch_completed='1629503977.78', return_code='0', job_id='471959', GAL2='0.90', EG2='1.03', return_code2='0', energy_flux_error='2.40e-05', photon_flux_error2='5.78e-08', ts2='30.41', photon_index='1.99' WHERE bin_id='155' AND source_name='4FGL J0428.6-3756' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Aug 20 16:59:37 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0040>
Subject: Job 471959: <4FGL_J0428.6-3756_daily_bin155> in cluster <slac> Done

Job <4FGL_J0428.6-3756_daily_bin155> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Fri Aug 20 16:45:58 2021
Job was executed on host(s) <bullet0040>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Aug 20 16:45:59 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Fri Aug 20 16:45:59 2021
Terminated at Fri Aug 20 16:59:38 2021
Results reported at Fri Aug 20 16:59:38 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0428.6-3756_daily_bin155 67.173 -37.9403 279504001 279763201 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 :                                   794.28 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             325.74 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   819 sec.
    Turnaround time :                            820 sec.

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

