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


Performing analysis on: 4FGL_J0428.6-3756_daily_bin968
RA = 67.173, Dec = -37.9403
tmin = 490233601, tmax = 490492801
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='478109', job_status='RUN', time_executed='2021-08-20 17:09:21.246019', time_epoch_executed='1629504561.25' WHERE source_name='4FGL J0428.6-3756' and cadence='daily' and bin_id='968'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/478109

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/478109/ft1_4FGL_J0428.6-3756_daily_bin968.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/478109/ft2_4FGL_J0428.6-3756_daily_bin968.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/478109/ft1_4FGL_J0428.6-3756_daily_bin968.fits outfile=/scratch/kocevski/478109/ft1_filteredMKT_4FGL_J0428.6-3756_daily_bin968.fits ra=67.173 dec=-37.9403 rad=12.0 tmin=490233601.0 tmax=490492801.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 3.89
user 3.47
sys 0.40

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/478109/ft1_filtered_4FGL_J0428.6-3756_daily_bin968.fits" evtable="EVENTS" scfile=/scratch/kocevski/478109/ft2_4FGL_J0428.6-3756_daily_bin968.fits sctable="SC_DATA" outfile=/scratch/kocevski/478109/ltcube_490233601_490492801_4FGL_J0428.6-3756_daily_bin968.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/478109/ft2_4FGL_J0428.6-3756_daily_bin968.fits
.....................!
real 12.22
user 11.64
sys 0.54

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/478109/ft1_filtered_4FGL_J0428.6-3756_daily_bin968.fits evtable="EVENTS" scfile=/scratch/kocevski/478109/ft2_4FGL_J0428.6-3756_daily_bin968.fits sctable="SC_DATA" expcube=/scratch/kocevski/478109/ltcube_490233601_490492801_4FGL_J0428.6-3756_daily_bin968.fits outfile=/scratch/kocevski/478109/expmap_490233601_490492801_4FGL_J0428.6-3756_daily_bin968.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/478109/ltcube_490233601_490492801_4FGL_J0428.6-3756_daily_bin968.fits
.....................!
real 190.63
user 185.39
sys 4.75

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/478109/ft1_filtered_4FGL_J0428.6-3756_daily_bin968.fits scfile=/scratch/kocevski/478109/ft2_4FGL_J0428.6-3756_daily_bin968.fits outfile=/scratch/kocevski/478109/cmap_490233601_490492801_4FGL_J0428.6-3756_daily_bin968.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.75
user 0.36
sys 0.36

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/478109/ft1_filtered_4FGL_J0428.6-3756_daily_bin968.fits scfile=/scratch/kocevski/478109/ft2_4FGL_J0428.6-3756_daily_bin968.fits outfile=/scratch/kocevski/478109/cmap_HighResolution_490233601_490492801_4FGL_J0428.6-3756_daily_bin968.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.78
user 0.39
sys 0.35

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/478109/ft1_filtered_4FGL_J0428.6-3756_daily_bin968.fits evtable="EVENTS" scfile=/scratch/kocevski/478109/ft2_4FGL_J0428.6-3756_daily_bin968.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/478109/Model_4FGL_J0428.6-3756_daily_bin968.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/478109/ft1_filtered_4FGL_J0428.6-3756_daily_bin968.fits.....................!
real 126.90
user 125.02
sys 1.59

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .23319       1.0000         .10000E-03   10000.    
     2 'norm      '    .92127       1.0000         .10000E-03   10000.    
     3 'Prefactor '    5.4419       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    1.0296       1.0000         .10000E-03   10000.    
     6 'norm      '    16.833       1.0000         .10000E-03   10000.    
     7 'Prefactor '    62.606       1.0000         .10000E-03   10000.    
     8 'Prefactor '    26.224       1.0000         .10000E-03   10000.    
     9 'Prefactor '    4.9119       1.0000         .10000E-03   10000.    
    10 'norm      '    6.7277       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    4.3093       1.0000         .10000E-03   10000.    
    13 'norm      '    74.155       1.0000         .10000E-03   10000.    
    14 'norm      '    3.2868       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .65076E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10033E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .10016E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    .71011       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    5.4012       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10016E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    7.9665       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    24 'norm      '    8.6683       1.0000         .10000E-03   10000.    
    25 'Normalizat'    1.5067       1.0000         .10000E-01   10.000    
    26 'Prefactor '    .64005       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=   5862.753     FROM MIGRAD    STATUS=CONVERGED    627 CALLS     3134 TOTAL
                     EDM=   .85E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  5.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .23815        2.2666        .31882E-06   -.15410E-03
   2  norm          .92136        .82836        .10048E-07   -.94502E-04
   3  Prefactor     5.4432        14.404        .15540E-05    .14299E-03
   4  Prefactor     .10000E-03    43.635       -.49152E-05** at limit **
   5  norm          1.0297        .46851        .49503E-08   -.48638E-04
   6  norm          16.835        12.342        .11348E-06   -.89778E-05
   7  Prefactor     62.615        45.712       -.95357E-06   -.12502E-03
   8  Prefactor     26.222        23.829        .34373E-06   -.26925E-06
   9  Prefactor     4.9172        18.539       -.33504E-06   -.74083E-04
  10  norm          6.7276        1.4556        .83178E-08   -.40499E-03
  11  Prefactor     .10000E-03    1.1729        .10827E-06** at limit **
  12  norm          4.3080        9.0289        .19395E-05    .14927E-03
  13  norm          74.153        109.41        .23730E-06    .30187E-05
  14  norm          3.2856        1.8953       -.23962E-06   -.15331E-02
  15  Prefactor     .10068E-03    2.4767        .10926E-05** at limit **
  16  Prefactor     .10000E-03    12.651       -.71747E-06** at limit **
  17  norm          .10000E-03    3.0646       -.20263E-07** at limit **
  18  norm          .73983        4.8422        .97383E-06   -.53553E-03
  19  Prefactor     .10000E-03    15.031        .12251E-05** at limit **
  20  Prefactor     5.4028        7.7558        .25363E-06    .12270E-04
  21  Prefactor     .10000E-03    52.384        .56634E-05** at limit **
  22  Prefactor     7.9646        4.3049       -.16571E-07   -.55174E-03
  23  Prefactor     .10000E-03    1.3676       -.14678E-07** at limit **
  24  norm          8.6686        3.2220        .98666E-08   -.14745E-03
  25  Normalizat    1.5064        .23296       -.11730E-05   -.40044E-03
  26  Prefactor     .64014        .21680        .62199E-06   -.22566E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.238149
  norm       = 0.921358
  Prefactor  = 5.44323
  Prefactor  = 0.000100003
  norm       = 1.0297
  norm       = 16.8347
  Prefactor  = 62.6152
  Prefactor  = 26.2225
  Prefactor  = 4.91724
  norm       = 6.72764
  Prefactor  = 0.0001
  norm       = 4.30801
  norm       = 74.1531
  norm       = 3.28562
  Prefactor  = 0.000100676
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.739834
  Prefactor  = 0.0001
  Prefactor  = 5.40276
  Prefactor  = 0.000100003
  Prefactor  = 7.96462
  Prefactor  = 0.0001
  norm       = 8.66859
  Normalizat = 1.50638
  Prefactor  = 0.640143
 **********
 **   18 **HESSE 
 **********

 FCN=   5862.753     FROM HESSE     STATUS=OK           462 CALLS     3596 TOTAL
                     EDM=   .42E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .23815        9.7941        .21729E-02   -1.5610    
   2  norm          .92136        .84176        .63523E-04   -1.5516    
   3  Prefactor     5.4432        14.361        .86126E-03   -1.5241    
   4  Prefactor     .10000E-03    43.633        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          1.0297        .46628        .32345E-04   -1.5505    
   6  norm          16.835        12.347        .97621E-04   -1.4887    
   7  Prefactor     62.615        45.948        .50714E-04   -1.4124    
   8  Prefactor     26.222        23.710        .78228E-04   -1.4683    
   9  Prefactor     4.9172        18.514        .18148E-03   -1.5264    
  10  norm          6.7276        1.4647        .34270E-04   -1.5189    
  11  Prefactor     .10000E-03    1.1803        .80923E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          4.3080        9.1136        .97031E-03   -1.5293    
  13  norm          74.153        109.44        .46625E-04   -1.3984    
  14  norm          3.2856        1.8559        .72725E-04   -1.5345    
  15  Prefactor     .10068E-03    30.015        .16738E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    12.680        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .10000E-03    3.1367        .26152E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          .73983        14.064        .27154E-02   -1.5536    
  19  Prefactor     .10000E-03    15.036        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     5.4028        7.7525        .17291E-03   -1.5243    
  21  Prefactor     .10000E-03    52.473        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     7.9646        4.2784        .10911E-03   -1.5143    
  23  Prefactor     .10000E-03    1.3732        .87420E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm          8.6686        3.2220        .80693E-04   -1.5119    
  25  Normalizat    1.5064        .26945        .25530E-03   -.77599    
  26  Prefactor     .64014        .25014        .37194E-03   -1.0592    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.183e-08
Minuit parameter uncertainties:
  1  3.05437
  2  0.841769
  3  14.3697
  4  0.00068078
  5  0.466279
  6  12.3485
  7  45.974
  8  23.7181
  9  18.5352
  10  1.46476
  11  8.92543e-07
  12  9.11655
  13  109.735
  14  1.85592
  15  0.00901444
  16  8.34542e-05
  17  1.23751e-07
  18  6.4527
  19  9.76449e-05
  20  7.7539
  21  0.000835208
  22  4.27854
  23  6.2436e-07
  24  3.22202
  25  0.269703
  26  0.250577
Done.

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

Extracting fit parameters...

4FGL J0428.6-3756
   Spectrum: LogParabola
257         norm:  6.728e+00  1.465e+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:  6.401e-01  2.506e-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.506e+00  2.697e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 114.72
Ra Dec: 67.173 -37.940
Photon Index (Fixed Index): 1.99 +/- 0.00
Photon Flux (Fixed Index): 3.70e-07 +/- 8.06e-08
Energy Flux (Fixed Index): 2.12e-04 +/- 4.62e-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) = 5862.48407484
delta logL = 0.269188468043

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5862.44561196
delta logL = 0.307651342746

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    6.4187       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.1310       1.0000          .0000       5.0000    
     3 'Normalizat'    1.4707       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .66141       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=   5862.446     FROM MIGRAD    STATUS=CONVERGED     53 CALLS      202 TOTAL
                     EDM=   .21E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          6.4192        1.7340        .39605E-02   -.13520E-04
   2  alpha         2.1309        .24147        .10551        .37356E-04
   3  Normalizat    1.4705        .21763        .58208E-01   -.10300E-05
   4  Prefactor     .66158        .21449        .82667E-01    .25236E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 6.41915
  alpha      = 2.13093
  Normalizat = 1.47046
  Prefactor  = 0.66158
 **********
 **   18 **HESSE 
 **********

 FCN=   5862.446     FROM HESSE     STATUS=OK            31 CALLS      233 TOTAL
                     EDM=   .24E-13    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          6.4192        1.2356        .32694E-04   -1.5201    
   2  alpha         2.1309        .17486        .45989E-03   -.14817    
   3  Normalizat    1.4705        .25176        .25740E-03   -.78612    
   4  Prefactor     .66158        .24750        .36614E-03   -1.0505    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.40772e-14
Minuit parameter uncertainties:
  1  1.23556
  2  0.175006
  3  0.251972
  4  0.247913
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/478109': 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) = 5862.44561119
delta logL = 0.30765211818

Extracting fit parameters...

4FGL J0428.6-3756
   Spectrum: LogParabola
257         norm:  6.419e+00  1.236e+00  1.000e-04  1.000e+04 ( 1.000e-11)
258        alpha:  2.131e+00  1.750e-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:  6.616e-01  2.479e-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.470e+00  2.520e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 116.20
Ra Dec: 67.173 -37.940
Photon Index (Free Index): 2.13 +/- 0.18
Photon Flux (Free Index): 4.10e-07 +/- 8.81e-08
Energy Flux (Free Index): 1.89e-04 +/- 4.22e-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/478109/cmap_HighResolution_490233601_490492801_4FGL_J0428.6-3756_daily_bin968.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='3.70e-07', energy_flux2='1.89e-04', photon_flux_error='8.06e-08', dlogl='3.08e-01', energy_flux='2.12e-04', photon_flux2='4.10e-07', job_status='DONE', time_completed='2021-08-20 17:21:20.529591', photon_index_error2='0.18', photon_index2='2.13', ts='114.72', fit_tolerance='1e-08', GAL='0.64', photon_index_error='0.00', energy_flux_error2='4.22e-05', EG='1.51', time_epoch_completed='1629505280.53', return_code='0', job_id='478109', GAL2='0.66', EG2='1.47', return_code2='0', energy_flux_error='4.62e-05', photon_flux_error2='8.81e-08', ts2='116.20', photon_index='1.99' WHERE bin_id='968' AND source_name='4FGL J0428.6-3756' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Aug 20 17:21:20 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0208>
Subject: Job 478109: <4FGL_J0428.6-3756_daily_bin968> in cluster <slac> Done

Job <4FGL_J0428.6-3756_daily_bin968> 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) <bullet0208>, 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:21:21 2021
Results reported at Fri Aug 20 17:21:21 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0428.6-3756_daily_bin968 67.173 -37.9403 490233601 490492801 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 :                                   721.23 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             318.76 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   953 sec.
    Turnaround time :                            956 sec.

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

