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


Performing analysis on: 4FGL_J0427.3-3900_daily_bin324
RA = 66.826, Dec = -39.0097
tmin = 323308801, tmax = 323568001
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='462523', job_status='RUN', time_executed='2021-08-20 16:17:38.023837', time_epoch_executed='1629501458.02' WHERE source_name='4FGL J0427.3-3900' and cadence='daily' and bin_id='324'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/462523

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/462523/ft1_4FGL_J0427.3-3900_daily_bin324.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/462523/ft2_4FGL_J0427.3-3900_daily_bin324.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/462523/ft1_4FGL_J0427.3-3900_daily_bin324.fits outfile=/scratch/kocevski/462523/ft1_filteredMKT_4FGL_J0427.3-3900_daily_bin324.fits ra=66.826 dec=-39.0097 rad=12.0 tmin=323308801.0 tmax=323568001.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.45
user 3.11
sys 0.25

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/462523/ft2_4FGL_J0427.3-3900_daily_bin324.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/462523/ft2_4FGL_J0427.3-3900_daily_bin324.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/462523/ft1_filteredMKT_4FGL_J0427.3-3900_daily_bin324.fits evtable="EVENTS" outfile="/scratch/kocevski/462523/ft1_filtered_4FGL_J0427.3-3900_daily_bin324.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.57
user 0.33
sys 0.22

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/462523/ft1_filtered_4FGL_J0427.3-3900_daily_bin324.fits" evtable="EVENTS" scfile=/scratch/kocevski/462523/ft2_4FGL_J0427.3-3900_daily_bin324.fits sctable="SC_DATA" outfile=/scratch/kocevski/462523/ltcube_323308801_323568001_4FGL_J0427.3-3900_daily_bin324.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/462523/ft2_4FGL_J0427.3-3900_daily_bin324.fits
.....................!
real 12.62
user 12.15
sys 0.40

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/462523/ft1_filtered_4FGL_J0427.3-3900_daily_bin324.fits evtable="EVENTS" scfile=/scratch/kocevski/462523/ft2_4FGL_J0427.3-3900_daily_bin324.fits sctable="SC_DATA" expcube=/scratch/kocevski/462523/ltcube_323308801_323568001_4FGL_J0427.3-3900_daily_bin324.fits outfile=/scratch/kocevski/462523/expmap_323308801_323568001_4FGL_J0427.3-3900_daily_bin324.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/462523/ltcube_323308801_323568001_4FGL_J0427.3-3900_daily_bin324.fits
.....................!
real 190.04
user 185.25
sys 4.32

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 180 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 J0427.3-3900 @ 66.826 -39.0097

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/462523/ft1_filtered_4FGL_J0427.3-3900_daily_bin324.fits scfile=/scratch/kocevski/462523/ft2_4FGL_J0427.3-3900_daily_bin324.fits outfile=/scratch/kocevski/462523/cmap_323308801_323568001_4FGL_J0427.3-3900_daily_bin324.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=66.826 yref=-39.0097 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.61
user 0.36
sys 0.23

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/462523/ft1_filtered_4FGL_J0427.3-3900_daily_bin324.fits scfile=/scratch/kocevski/462523/ft2_4FGL_J0427.3-3900_daily_bin324.fits outfile=/scratch/kocevski/462523/cmap_HighResolution_323308801_323568001_4FGL_J0427.3-3900_daily_bin324.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=66.826 yref=-39.0097 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.61
user 0.39
sys 0.21

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/462523/ft1_filtered_4FGL_J0427.3-3900_daily_bin324.fits evtable="EVENTS" scfile=/scratch/kocevski/462523/ft2_4FGL_J0427.3-3900_daily_bin324.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/462523/Model_4FGL_J0427.3-3900_daily_bin324.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/462523/ft1_filtered_4FGL_J0427.3-3900_daily_bin324.fits....................!
real 128.87
user 127.40
sys 1.21

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/462523/ft1_filtered_4FGL_J0427.3-3900_daily_bin324.fits', '/scratch/kocevski/462523/ft2_4FGL_J0427.3-3900_daily_bin324.fits', expMap='/scratch/kocevski/462523/expmap_323308801_323568001_4FGL_J0427.3-3900_daily_bin324.fits', expCube='/scratch/kocevski/462523/ltcube_323308801_323568001_4FGL_J0427.3-3900_daily_bin324.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/462523/Model_4FGL_J0427.3-3900_daily_bin324.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J0427.3-3900'

4FGL J0427.3-3900
   Spectrum: PowerLaw
266    Prefactor:  8.184e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-12)
267        Index:  2.844e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
268        Scale:  5.048e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/462523/ft1_filtered_4FGL_J0427.3-3900_daily_bin324.fits
Spacecraft file(s): /scratch/kocevski/462523/ft2_4FGL_J0427.3-3900_daily_bin324.fits
Exposure map: /scratch/kocevski/462523/expmap_323308801_323568001_4FGL_J0427.3-3900_daily_bin324.fits
Exposure cube: /scratch/kocevski/462523/ltcube_323308801_323568001_4FGL_J0427.3-3900_daily_bin324.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/462523/Model_4FGL_J0427.3-3900_daily_bin324.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) = 6224.70631409

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    3.9543       1.0000         .10000E-03   10000.    
     2 'norm      '    .37387       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    .86247       1.0000         .10000E-03   10000.    
     7 'norm      '    .10004E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10014E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10030E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    13.456       1.0000         .10000E-03   10000.    
    11 'norm      '    1.4745       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .61847       1.0000         .10000E-03   10000.    
    13 'norm      '    .10092E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    130.97       1.0000         .10000E-03   10000.    
    15 'norm      '    4.0767       1.0000         .10000E-03   10000.    
    16 'Prefactor '    1.7795       1.0000         .10000E-03   10000.    
    17 'Prefactor '    4.5165       1.0000         .10000E-03   10000.    
    18 'norm      '    .10016E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10000E-03   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 '    .10002E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    25 'norm      '    10.443       1.0000         .10000E-03   10000.    
    26 'Normalizat'    .99462       1.0000         .10000E-01   10.000    
    27 'Prefactor '    1.0536       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5840E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   6224.656     FROM MIGRAD    STATUS=CONVERGED    654 CALLS     3283 TOTAL
                     EDM=   .13E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          3.9540        3.1763       -.72793E-06   -.84249E-04
   2  norm          .37400        .82047       -.25546E-06   -.17875E-02
   3  Prefactor     .10000E-03    14.893        .90780E-05** at limit **
   4  Prefactor     .10000E-03    8.4866        .41583E-05** at limit **
   5  Prefactor     .10000E-03    126.62       -.40354E-05** at limit **
   6  norm          .86240        .34641       -.25564E-07   -.38985E-03
   7  norm          .10000E-03    3.9263        .20397E-06** at limit **
   8  Prefactor     .10000E-03    27.145        .49725E-05** at limit **
   9  Prefactor     .10000E-03    4.7862       -.20826E-06** at limit **
  10  Prefactor     13.455        10.308       -.11356E-06    .13508E-03
  11  norm          1.4747        .64818       -.16492E-07    .30686E-03
  12  Prefactor     .61604        3.4400       -.47790E-05    .30800E-03
  13  norm          .10000E-03    11.884        .72469E-06** at limit **
  14  norm          130.84        206.51       -.11219E-03    .27602E-06
  15  norm          4.0764        2.3354       -.27147E-06    .18904E-02
  16  Prefactor     1.7781        3.6906        .27475E-05    .16028E-02
  17  Prefactor     4.5180        9.9931        .20091E-06    .24013E-03
  18  norm          .10000E-03    2.5679        .12628E-07** at limit **
  19  Prefactor     .10000E-03    18.142       -.11561E-04** at limit **
  20  Prefactor     .10000E-03    1.4515       -.50628E-07** at limit **
  21  Prefactor     .10000E-03    9.1623       -.52156E-05** at limit **
  22  Prefactor     .10000E-03    16.504        .59498E-06** at limit **
  23  Prefactor     .10000E-03    1.1441       -.75418E-07** at limit **
  24  Prefactor     .10000E-03    2.2643       -.21916E-06** at limit **
  25  norm          10.443        3.3316        .10101E-05    .64627E-04
  26  Normalizat    .99464        .18602       -.26797E-06    .71256E-03
  27  Prefactor     1.0536        .19427        .16283E-05    .46937E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 3.954
  norm       = 0.374001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.862398
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 13.4553
  norm       = 1.47469
  Prefactor  = 0.616039
  norm       = 0.000100001
  norm       = 130.844
  norm       = 4.07645
  Prefactor  = 1.77805
  Prefactor  = 4.51796
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 10.443
  Normalizat = 0.994639
  Prefactor  = 1.0536
 **********
 **   18 **HESSE 
 **********

 FCN=   6224.656     FROM HESSE     STATUS=OK           484 CALLS     3767 TOTAL
                     EDM=   .22E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          3.9540        3.1521        .11976E-03   -1.5310    
   2  norm          .37400        .79979        .98169E-04   -1.5586    
   3  Prefactor     .10000E-03    14.890        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    8.5377        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    126.83        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          .86240        .34546        .27696E-04   -1.5522    
   7  norm          .10000E-03    3.9967        .15256E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    27.273        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    4.7934        .16850E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     13.455        10.414        .10919E-03   -1.4974    
  11  norm          1.4747        .65236        .37285E-04   -1.5465    
  12  Prefactor     .61604        4.9434        .21545E-02   -1.5551    
  13  norm          .10000E-03    12.009        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          130.84        205.55        .17591E-03   -1.3415    
  15  norm          4.0764        2.3075        .76045E-04   -1.5304    
  16  Prefactor     1.7781        3.3717        .15109E-03   -1.5441    
  17  Prefactor     4.5180        9.8836        .18944E-03   -1.5283    
  18  norm          .10000E-03    2.5880        .12316E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    18.149        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    1.4552        .92821E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    9.1641        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    16.517        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    1.1700        .82365E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10000E-03    2.3001        .11582E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  norm          10.443        3.3250        .78371E-04   -1.5062    
  26  Normalizat    .99464        .22203        .25087E-03   -.93210    
  27  Prefactor     1.0536        .23306        .26991E-03   -.90964    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.21728e-09
Minuit parameter uncertainties:
  1  3.15226
  2  0.799814
  3  2.21115e-06
  4  3.24566e-06
  5  4.12606e-05
  6  0.345459
  7  1.31554e-06
  8  4.76201e-05
  9  1.8555e-07
  10  10.4154
  11  0.65236
  12  3.49027
  13  0.000222407
  14  206.69
  15  2.30755
  16  3.37202
  17  9.88712
  18  4.44066e-06
  19  1.74183e-05
  20  1.59592e-06
  21  4.50753e-07
  22  1.9084e-05
  23  4.82759e-06
  24  2.49109e-05
  25  3.32502
  26  0.222236
  27  0.233288
Done.

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

Extracting fit parameters...

4FGL J0427.3-3900
   Spectrum: PowerLaw
266    Prefactor:  1.346e+01  1.042e+01  1.000e-04  1.000e+04 ( 1.000e-12)
267        Index:  2.844e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
268        Scale:  5.048e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
581    Prefactor:  1.054e+00  2.333e-01  0.000e+00  1.000e+01 ( 1.000e+00)
582        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
583        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
577   Normalization:  9.946e-01  2.222e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 2.65
Ra Dec: 66.826 -39.010
Photon Index (Fixed Index): 2.84 +/- 0.00
Photon Flux (Fixed Index): 7.30e-08 +/- 5.65e-08
Energy Flux (Fixed Index): 1.59e-05 +/- 1.23e-05

TS (Fixed Index): 2.65
Ra Dec: 66.826 -39.010
Photon Flux Upper Limit: 1.73e-07 ph cm-2 s-1
Energy Flux Upper Limit: 1.37e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/462523/likelihoodResults_323308801_323568001_4FGL_J0427.3-3900_daily_bin324.txt

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) = 6224.0452158
delta logL = 0.610471587386

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6224.03750418
delta logL = 0.618183207699

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    6.8920       1.0000         .10000E-03   10000.    
     2 'Index     '    3.6990       1.0000          .0000       10.000    
     3 'Normalizat'    .95736       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0826       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5840E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   6224.038     FROM MIGRAD    STATUS=CONVERGED     87 CALLS      299 TOTAL
                     EDM=   .91E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     6.8926        9.7227        .11303E-03   -.43754E-04
   2  Index         3.6989        1.0545        .58473E-02    .42686E-03
   3  Normalizat    .95726        .21333        .25491E-03    .11966E-03
   4  Prefactor     1.0827        .23154        .26667E-03    .80574E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 6.89257
  Index      = 3.69892
  Normalizat = 0.957263
  Prefactor  = 1.08267
 **********
 **   18 **HESSE 
 **********

 FCN=   6224.038     FROM HESSE     STATUS=OK            25 CALLS      324 TOTAL
                     EDM=   .22E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     6.8926        8.2181        .45211E-05   -1.5183    
   2  Index         3.6989        .89272        .11695E-02   -.26325    
   3  Normalizat    .95726        .21363        .10197E-04   -.94476    
   4  Prefactor     1.0827        .23172        .10667E-04   -.90022    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.20881e-11
Minuit parameter uncertainties:
  1  8.21946
  2  0.89789
  3  0.213823
  4  0.23194
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/462523': 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) = 6224.03750397
delta logL = 0.618183415939

Extracting fit parameters...

4FGL J0427.3-3900
   Spectrum: PowerLaw
266    Prefactor:  6.893e+00  8.219e+00  1.000e-04  1.000e+04 ( 1.000e-12)
267        Index:  3.699e+00  8.979e-01  0.000e+00  1.000e+01 (-1.000e+00)
268        Scale:  5.048e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
581    Prefactor:  1.083e+00  2.319e-01  0.000e+00  1.000e+01 ( 1.000e+00)
582        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
583        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
577   Normalization:  9.573e-01  2.138e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 4.07
Ra Dec: 66.826 -39.010
Photon Index (Free Index): 3.70 +/- 0.90
Photon Flux (Free Index): 1.02e-07 +/- 6.04e-08
Energy Flux (Free Index): 1.62e-05 +/- 9.67e-06

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/462523/cmap_HighResolution_323308801_323568001_4FGL_J0427.3-3900_daily_bin324.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.37e-02', comment='SUCCESS', photon_flux='7.30e-08', energy_flux2='1.62e-05', photon_flux_error='5.65e-08', dlogl='6.18e-01', energy_flux='1.59e-05', photon_flux2='1.02e-07', job_status='DONE', time_completed='2021-08-20 16:31:42.087212', photon_index_error2='0.90', photon_index2='3.70', ts='2.65', fit_tolerance='1e-08', GAL='1.05', photon_index_error='0.00', photon_flux_upper_limit='1.73e-07', energy_flux_error2='9.67e-06', EG='0.99', time_epoch_completed='1629502302.09', return_code='0', job_id='462523', GAL2='1.08', EG2='0.96', return_code2='0', energy_flux_error='1.23e-05', photon_flux_error2='6.04e-08', ts2='4.07', photon_index='2.84' WHERE bin_id='324' AND source_name='4FGL J0427.3-3900' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Aug 20 16:31:42 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0204>
Subject: Job 462523: <4FGL_J0427.3-3900_daily_bin324> in cluster <slac> Done

Job <4FGL_J0427.3-3900_daily_bin324> was submitted from host <rhel6-64j> by user <kocevski> in cluster <slac> at Fri Aug 20 16:15:32 2021
Job was executed on host(s) <bullet0204>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Aug 20 16:15:34 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:15:34 2021
Terminated at Fri Aug 20 16:31:43 2021
Results reported at Fri Aug 20 16:31:43 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0427.3-3900_daily_bin324 66.826 -39.0097 323308801 323568001 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J0427.3-3900 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   843.45 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             327.93 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   968 sec.
    Turnaround time :                            971 sec.

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

