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


Performing analysis on: 4FGL_J0428.6-3756_daily_bin270
RA = 67.173, Dec = -37.9403
tmin = 309312001, tmax = 309571201
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='473232', job_status='RUN', time_executed='2021-08-20 16:51:37.298649', time_epoch_executed='1629503497.3' WHERE source_name='4FGL J0428.6-3756' and cadence='daily' and bin_id='270'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/473232

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/473232/ft1_4FGL_J0428.6-3756_daily_bin270.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/473232/ft2_4FGL_J0428.6-3756_daily_bin270.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/473232/ft1_4FGL_J0428.6-3756_daily_bin270.fits outfile=/scratch/kocevski/473232/ft1_filteredMKT_4FGL_J0428.6-3756_daily_bin270.fits ra=67.173 dec=-37.9403 rad=12.0 tmin=309312001.0 tmax=309571201.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 7.54
user 3.77
sys 3.73

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/473232/ft1_filtered_4FGL_J0428.6-3756_daily_bin270.fits" evtable="EVENTS" scfile=/scratch/kocevski/473232/ft2_4FGL_J0428.6-3756_daily_bin270.fits sctable="SC_DATA" outfile=/scratch/kocevski/473232/ltcube_309312001_309571201_4FGL_J0428.6-3756_daily_bin270.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/473232/ft2_4FGL_J0428.6-3756_daily_bin270.fits
.....................!
real 16.01
user 11.68
sys 4.29

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/473232/ft1_filtered_4FGL_J0428.6-3756_daily_bin270.fits evtable="EVENTS" scfile=/scratch/kocevski/473232/ft2_4FGL_J0428.6-3756_daily_bin270.fits sctable="SC_DATA" expcube=/scratch/kocevski/473232/ltcube_309312001_309571201_4FGL_J0428.6-3756_daily_bin270.fits outfile=/scratch/kocevski/473232/expmap_309312001_309571201_4FGL_J0428.6-3756_daily_bin270.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/473232/ltcube_309312001_309571201_4FGL_J0428.6-3756_daily_bin270.fits
.....................!
real 194.06
user 185.04
sys 8.69

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/473232/ft1_filtered_4FGL_J0428.6-3756_daily_bin270.fits scfile=/scratch/kocevski/473232/ft2_4FGL_J0428.6-3756_daily_bin270.fits outfile=/scratch/kocevski/473232/cmap_309312001_309571201_4FGL_J0428.6-3756_daily_bin270.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 3.96
user 0.37
sys 3.56

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/473232/ft1_filtered_4FGL_J0428.6-3756_daily_bin270.fits scfile=/scratch/kocevski/473232/ft2_4FGL_J0428.6-3756_daily_bin270.fits outfile=/scratch/kocevski/473232/cmap_HighResolution_309312001_309571201_4FGL_J0428.6-3756_daily_bin270.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 3.96
user 0.37
sys 3.58

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/473232/ft1_filtered_4FGL_J0428.6-3756_daily_bin270.fits evtable="EVENTS" scfile=/scratch/kocevski/473232/ft2_4FGL_J0428.6-3756_daily_bin270.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/473232/Model_4FGL_J0428.6-3756_daily_bin270.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/473232/ft1_filtered_4FGL_J0428.6-3756_daily_bin270.fits.....................!
real 183.02
user 176.96
sys 5.72

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    1.6736       1.0000         .10000E-03   10000.    
     2 'norm      '    1.0318       1.0000         .10000E-03   10000.    
     3 'Prefactor '    19.695       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    1.7230       1.0000         .10000E-03   10000.    
     6 'norm      '    14.174       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    11.021       1.0000         .10000E-03   10000.    
     9 'Prefactor '    43.978       1.0000         .10000E-03   10000.    
    10 'norm      '    5.0056       1.0000         .10000E-03   10000.    
    11 'Prefactor '    1.1649       1.0000         .10000E-03   10000.    
    12 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .11263E-02   1.0000         .10000E-03   10000.    
    14 'norm      '    2.8705       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10037E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    7.5663       1.0000         .10000E-03   10000.    
    17 'norm      '    10.587       1.0000         .10000E-03   10000.    
    18 'norm      '    22.350       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    7.7051       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10121E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    7.1254       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .11204E-03   1.0000         .10000E-03   10000.    
    24 'norm      '    11.798       1.0000         .10000E-03   10000.    
    25 'Normalizat'    1.2242       1.0000         .10000E-01   10.000    
    26 'Prefactor '    .81185       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=   8440.599     FROM MIGRAD    STATUS=CONVERGED    623 CALLS     2682 TOTAL
                     EDM=   .21E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          1.6735        1.7048        .83156E-07    .27668E-03
   2  norm          1.0317        .75599        .11612E-08   -.58672E-03
   3  Prefactor     19.695        14.928       -.69293E-07   -.27717E-04
   4  Prefactor     .10000E-03    36.907        .11270E-04** at limit **
   5  norm          1.7230        .42834        .33006E-07   -.52807E-03
   6  norm          14.174        7.3803       -.42085E-06   -.36576E-04
   7  Prefactor     .10000E-03    16.938        .10624E-05** at limit **
   8  Prefactor     11.021        14.957       -.13096E-06   -.41235E-04
   9  Prefactor     43.978        14.847       -.60434E-07   -.16206E-04
  10  norm          5.0056        1.0916        .24106E-07   -.53402E-04
  11  Prefactor     1.1649        1.2767       -.72318E-07   -.68320E-04
  12  norm          .10000E-03    3.5134       -.50253E-07** at limit **
  13  norm          .10002E-03    482.47       -.41019E-03** at limit **
  14  norm          2.8708        1.4734       -.65324E-07   -.18328E-04
  15  Prefactor     .10000E-03    1.4711       -.64189E-07** at limit **
  16  Prefactor     7.5630        21.198       -.10227E-05   -.53861E-04
  17  norm          10.581        4.9027       -.30005E-06    .10044E-02
  18  norm          22.352        8.8516        .19101E-05    .36444E-05
  19  Prefactor     .10000E-03    33.143       -.12899E-04** at limit **
  20  Prefactor     7.7062        6.7822        .20778E-05   -.18089E-03
  21  Prefactor     .10000E-03    63.051        .83059E-05** at limit **
  22  Prefactor     7.1256        3.7278       -.39502E-06   -.22726E-03
  23  Prefactor     .10000E-03    1.7454        .26836E-07** at limit **
  24  norm          11.799        3.1275       -.17608E-08   -.84010E-04
  25  Normalizat    1.2243        .18855       -.10437E-05    .11723E-03
  26  Prefactor     .81178        .18822        .33312E-06    .59939E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 1.67347
  norm       = 1.03173
  Prefactor  = 19.6949
  Prefactor  = 0.0001
  norm       = 1.72303
  norm       = 14.1736
  Prefactor  = 0.0001
  Prefactor  = 11.021
  Prefactor  = 43.9783
  norm       = 5.0056
  Prefactor  = 1.16494
  norm       = 0.0001
  norm       = 0.000100015
  norm       = 2.87084
  Prefactor  = 0.0001
  Prefactor  = 7.56301
  norm       = 10.5811
  norm       = 22.3518
  Prefactor  = 0.0001
  Prefactor  = 7.70621
  Prefactor  = 0.0001
  Prefactor  = 7.12559
  Prefactor  = 0.0001
  norm       = 11.7986
  Normalizat = 1.2243
  Prefactor  = 0.811779
 **********
 **   18 **HESSE 
 **********

 FCN=   8440.599     FROM HESSE     STATUS=OK           470 CALLS     3152 TOTAL
                     EDM=   .42E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          1.6735        1.7153        .11753E-03   -1.5449    
   2  norm          1.0317        .73539        .65716E-03   -1.5505    
   3  Prefactor     19.695        14.935        .90250E-04   -1.4820    
   4  Prefactor     .10000E-03    36.918        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          1.7230        .43072        .27738E-04   -1.5445    
   6  norm          14.174        7.3836        .10639E-03   -1.4955    
   7  Prefactor     .10000E-03    17.002        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     11.021        14.940        .12068E-03   -1.5044    
   9  Prefactor     43.978        14.967        .60454E-04   -1.4381    
  10  norm          5.0056        1.0977        .37814E-04   -1.5260    
  11  Prefactor     1.1649        1.2707        .10513E-03   -1.5492    
  12  norm          .10000E-03    3.5379        .16812E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .10002E-03    482.63        .20682E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          2.8708        1.4654        .76894E-04   -1.5369    
  15  Prefactor     .10000E-03    1.5198        .21605E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     7.5630        21.031        .14579E-03   -1.5158    
  17  norm          10.581        4.8965        .12314E-03   -1.5057    
  18  norm          22.352        8.7910        .84726E-04   -1.4762    
  19  Prefactor     .10000E-03    33.201        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     7.7062        6.7879        .14446E-03   -1.5153    
  21  Prefactor     .10000E-03    63.504        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     7.1256        3.7256        .12195E-03   -1.5174    
  23  Prefactor     .10000E-03    6.3925        .23104E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm          11.799        3.0811        .79488E-04   -1.5021    
  25  Normalizat    1.2243        .22628        .27614E-03   -.85855    
  26  Prefactor     .81178        .22348        .34815E-03   -.99296    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.19485e-10
Minuit parameter uncertainties:
  1  1.71534
  2  0.735395
  3  14.9383
  4  5.82171e-06
  5  0.430722
  6  7.38409
  7  6.58551e-06
  8  14.9449
  9  14.9682
  10  1.09771
  11  1.27072
  12  7.12562e-07
  13  0.00544898
  14  1.4654
  15  1.44601e-05
  16  21.0512
  17  4.89667
  18  8.79151
  19  1.15987e-05
  20  6.78856
  21  2.62787e-05
  22  3.7257
  23  3.50558e-06
  24  3.08114
  25  0.226462
  26  0.223729
Done.

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

Extracting fit parameters...

4FGL J0428.6-3756
   Spectrum: LogParabola
257         norm:  5.006e+00  1.098e+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:  8.118e-01  2.237e-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.224e+00  2.265e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 109.81
Ra Dec: 67.173 -37.940
Photon Index (Fixed Index): 1.99 +/- 0.00
Photon Flux (Fixed Index): 2.75e-07 +/- 6.04e-08
Energy Flux (Fixed Index): 1.58e-04 +/- 3.47e-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) = 8440.59481182
delta logL = 0.00415536451146

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 8440.594484
delta logL = 0.00448318207236

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    5.0170       1.0000         .10000E-03   10000.    
     2 'alpha     '    1.9783       1.0000          .0000       5.0000    
     3 'Normalizat'    1.2277       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .81000       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=   8440.594     FROM MIGRAD    STATUS=CONVERGED     45 CALLS      202 TOTAL
                     EDM=   .97E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          5.0170        1.2069        .44883E-02    .18614E-03
   2  alpha         1.9783        .21302        .14142        .35799E-04
   3  Normalizat    1.2277        .18022        .62370E-01    .68958E-04
   4  Prefactor     .81000        .18732        .78734E-01    .52657E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 5.017
  alpha      = 1.97826
  Normalizat = 1.22771
  Prefactor  = 0.81
 **********
 **   18 **HESSE 
 **********

 FCN=   8440.594     FROM HESSE     STATUS=OK            33 CALLS      235 TOTAL
                     EDM=   .49E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          5.0170        .97232        .38014E-04   -1.5260    
   2  alpha         1.9783        .17695        .60514E-02   -.21024    
   3  Normalizat    1.2277        .21268        .27586E-03   -.85751    
   4  Prefactor     .81000        .22064        .34853E-03   -.99361    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.88699e-12
Minuit parameter uncertainties:
  1  0.972321
  2  0.177109
  3  0.212833
  4  0.220885
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/473232': 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) = 8440.594484
delta logL = 0.00448318207418

Extracting fit parameters...

4FGL J0428.6-3756
   Spectrum: LogParabola
257         norm:  5.017e+00  9.723e-01  1.000e-04  1.000e+04 ( 1.000e-11)
258        alpha:  1.978e+00  1.771e-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:  8.100e-01  2.209e-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.228e+00  2.128e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 111.61
Ra Dec: 67.173 -37.940
Photon Index (Free Index): 1.98 +/- 0.18
Photon Flux (Free Index): 2.71e-07 +/- 6.76e-08
Energy Flux (Free Index): 1.60e-04 +/- 4.00e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/473232/cmap_HighResolution_309312001_309571201_4FGL_J0428.6-3756_daily_bin270.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='2.75e-07', energy_flux2='1.60e-04', photon_flux_error='6.04e-08', dlogl='4.48e-03', energy_flux='1.58e-04', photon_flux2='2.71e-07', job_status='DONE', time_completed='2021-08-20 17:06:50.625647', photon_index_error2='0.18', photon_index2='1.98', ts='109.81', fit_tolerance='1e-08', GAL='0.81', photon_index_error='0.00', energy_flux_error2='4.00e-05', EG='1.22', time_epoch_completed='1629504410.63', return_code='0', job_id='473232', GAL2='0.81', EG2='1.23', return_code2='0', energy_flux_error='3.47e-05', photon_flux_error2='6.76e-08', ts2='111.61', photon_index='1.99' WHERE bin_id='270' AND source_name='4FGL J0428.6-3756' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Aug 20 17:06:50 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0206>
Subject: Job 473232: <4FGL_J0428.6-3756_daily_bin270> in cluster <slac> Done

Job <4FGL_J0428.6-3756_daily_bin270> was submitted from host <rhel6-64j> by user <kocevski> in cluster <slac> at Fri Aug 20 16:50:30 2021
Job was executed on host(s) <bullet0206>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Aug 20 16:50:30 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:50:30 2021
Terminated at Fri Aug 20 17:06:52 2021
Results reported at Fri Aug 20 17:06:52 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0428.6-3756_daily_bin270 67.173 -37.9403 309312001 309571201 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 :                                   966.34 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             355.73 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   981 sec.
    Turnaround time :                            982 sec.

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

