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


Performing analysis on: 4FGL_J0427.3-3900_daily_bin775
RA = 66.826, Dec = -39.0097
tmin = 440208001, tmax = 440467201
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='465728', job_status='RUN', time_executed='2021-08-20 16:25:59.116824', time_epoch_executed='1629501959.12' WHERE source_name='4FGL J0427.3-3900' and cadence='daily' and bin_id='775'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/465728

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/465728/ft1_4FGL_J0427.3-3900_daily_bin775.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/465728/ft2_4FGL_J0427.3-3900_daily_bin775.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/465728/ft1_4FGL_J0427.3-3900_daily_bin775.fits outfile=/scratch/kocevski/465728/ft1_filteredMKT_4FGL_J0427.3-3900_daily_bin775.fits ra=66.826 dec=-39.0097 rad=12.0 tmin=440208001.0 tmax=440467201.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.03
user 3.21
sys 0.81

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/465728/ft2_4FGL_J0427.3-3900_daily_bin775.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/465728/ft1_filteredMKT_4FGL_J0427.3-3900_daily_bin775.fits evtable="EVENTS" outfile="/scratch/kocevski/465728/ft1_filtered_4FGL_J0427.3-3900_daily_bin775.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.00
user 0.31
sys 0.69

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/465728/ft1_filtered_4FGL_J0427.3-3900_daily_bin775.fits" evtable="EVENTS" scfile=/scratch/kocevski/465728/ft2_4FGL_J0427.3-3900_daily_bin775.fits sctable="SC_DATA" outfile=/scratch/kocevski/465728/ltcube_440208001_440467201_4FGL_J0427.3-3900_daily_bin775.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/465728/ft2_4FGL_J0427.3-3900_daily_bin775.fits
.....................!
real 12.66
user 11.59
sys 1.03

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/465728/ft1_filtered_4FGL_J0427.3-3900_daily_bin775.fits evtable="EVENTS" scfile=/scratch/kocevski/465728/ft2_4FGL_J0427.3-3900_daily_bin775.fits sctable="SC_DATA" expcube=/scratch/kocevski/465728/ltcube_440208001_440467201_4FGL_J0427.3-3900_daily_bin775.fits outfile=/scratch/kocevski/465728/expmap_440208001_440467201_4FGL_J0427.3-3900_daily_bin775.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/465728/ltcube_440208001_440467201_4FGL_J0427.3-3900_daily_bin775.fits
.....................!
real 192.22
user 185.99
sys 5.91

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/465728/ft1_filtered_4FGL_J0427.3-3900_daily_bin775.fits scfile=/scratch/kocevski/465728/ft2_4FGL_J0427.3-3900_daily_bin775.fits outfile=/scratch/kocevski/465728/cmap_440208001_440467201_4FGL_J0427.3-3900_daily_bin775.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 1.12
user 0.37
sys 0.73

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/465728/ft1_filtered_4FGL_J0427.3-3900_daily_bin775.fits scfile=/scratch/kocevski/465728/ft2_4FGL_J0427.3-3900_daily_bin775.fits outfile=/scratch/kocevski/465728/cmap_HighResolution_440208001_440467201_4FGL_J0427.3-3900_daily_bin775.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 1.04
user 0.38
sys 0.65

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/465728/ft1_filtered_4FGL_J0427.3-3900_daily_bin775.fits evtable="EVENTS" scfile=/scratch/kocevski/465728/ft2_4FGL_J0427.3-3900_daily_bin775.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/465728/Model_4FGL_J0427.3-3900_daily_bin775.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/465728/ft1_filtered_4FGL_J0427.3-3900_daily_bin775.fits.....................!
real 120.98
user 118.76
sys 2.02

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/465728/ft1_filtered_4FGL_J0427.3-3900_daily_bin775.fits', '/scratch/kocevski/465728/ft2_4FGL_J0427.3-3900_daily_bin775.fits', expMap='/scratch/kocevski/465728/expmap_440208001_440467201_4FGL_J0427.3-3900_daily_bin775.fits', expCube='/scratch/kocevski/465728/ltcube_440208001_440467201_4FGL_J0427.3-3900_daily_bin775.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/465728/Model_4FGL_J0427.3-3900_daily_bin775.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/465728/ft1_filtered_4FGL_J0427.3-3900_daily_bin775.fits
Spacecraft file(s): /scratch/kocevski/465728/ft2_4FGL_J0427.3-3900_daily_bin775.fits
Exposure map: /scratch/kocevski/465728/expmap_440208001_440467201_4FGL_J0427.3-3900_daily_bin775.fits
Exposure cube: /scratch/kocevski/465728/ltcube_440208001_440467201_4FGL_J0427.3-3900_daily_bin775.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/465728/Model_4FGL_J0427.3-3900_daily_bin775.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) = 5560.61089964

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    11.032       1.0000         .10000E-03   10000.    
     2 'norm      '    .12551       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    78.179       1.0000         .10000E-03   10000.    
     6 'norm      '    2.3546       1.0000         .10000E-03   10000.    
     7 'norm      '    .10063E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    29.119       1.0000         .10000E-03   10000.    
    10 'Prefactor '    17.153       1.0000         .10000E-03   10000.    
    11 'norm      '    4.0473       1.0000         .10000E-03   10000.    
    12 'Prefactor '    4.5978       1.0000         .10000E-03   10000.    
    13 'norm      '    12.334       1.0000         .10000E-03   10000.    
    14 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    1.5067       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .22789E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    87.049       1.0000         .10000E-03   10000.    
    18 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .64865       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .41269E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    4.7249       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10013E-03   1.0000         .10000E-03   10000.    
    25 'norm      '    6.6053       1.0000         .10000E-03   10000.    
    26 'Normalizat'    .90535       1.0000         .10000E-01   10.000    
    27 'Prefactor '    1.0489       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=   5560.583     FROM MIGRAD    STATUS=CONVERGED    718 CALLS     3384 TOTAL
                     EDM=   .90E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          11.031        5.2589        .14261E-06    .19559E-03
   2  norm          .12605        .89723       -.70677E-06   -.53513E-03
   3  Prefactor     .10000E-03    34.889        .75712E-06** at limit **
   4  Prefactor     .10000E-03    5.7446       -.40213E-06** at limit **
   5  Prefactor     78.146        135.20       -.32557E-04    .13090E-03
   6  norm          2.3544        .58814        .32149E-07    .68462E-03
   7  norm          .10000E-03    13.809       -.58587E-08** at limit **
   8  Prefactor     .10000E-03    8.6673       -.39944E-06** at limit **
   9  Prefactor     29.112        22.411        .29161E-06    .47324E-04
  10  Prefactor     17.156        17.151        .42137E-06    .22630E-03
  11  norm          4.0471        1.2211       -.90874E-07    .11095E-02
  12  Prefactor     4.5978        3.5956       -.45186E-06    .34005E-03
  13  norm          12.341        12.503        .24308E-05    .22094E-03
  14  norm          .10000E-03    148.30        .21324E-05** at limit **
  15  norm          1.5072        1.3844        .48894E-08    .83330E-03
  16  Prefactor     .10000E-03    1.6018       -.42599E-06** at limit **
  17  Prefactor     87.055        24.525        .12815E-05    .19173E-03
  18  norm          .10000E-03    3.9429       -.34914E-06** at limit **
  19  Prefactor     .16191        33.549       -.19962E-04   -.70182E-04
  20  Prefactor     .10000E-03    5.2578       -.43683E-06** at limit **
  21  Prefactor     .10000E-03    9.5579       -.43985E-06** at limit **
  22  Prefactor     .10000E-03    56.750        .88489E-08** at limit **
  23  Prefactor     4.7248        2.8304       -.81973E-07    .23836E-03
  24  Prefactor     .10000E-03    2.4489        .15881E-06** at limit **
  25  norm          6.6050        3.2518       -.25500E-07    .34899E-03
  26  Normalizat    .90538        .22420        .17802E-05    .65645E-03
  27  Prefactor     1.0492        .22416        .79355E-06    .67541E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 11.031
  norm       = 0.126046
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 78.1457
  norm       = 2.35439
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 29.112
  Prefactor  = 17.1564
  norm       = 4.04714
  Prefactor  = 4.59784
  norm       = 12.3406
  norm       = 0.0001
  norm       = 1.5072
  Prefactor  = 0.000100001
  Prefactor  = 87.0552
  norm       = 0.0001
  Prefactor  = 0.161905
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 4.72481
  Prefactor  = 0.0001
  norm       = 6.60501
  Normalizat = 0.905382
  Prefactor  = 1.04918
 **********
 **   18 **HESSE 
 **********

 FCN=   5560.583     FROM HESSE     STATUS=OK           494 CALLS     3878 TOTAL
                     EDM=   .16E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          11.031        5.2290        .11262E-03   -1.5044    
   2  norm          .12605        1.9681        .13256E-02   -1.5637    
   3  Prefactor     .10000E-03    34.901        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    5.7475        .17454E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     78.146        133.30        .45418E-04   -1.3938    
   6  norm          2.3544        .58859        .26935E-04   -1.5401    
   7  norm          .10000E-03    14.079        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    8.6691        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     29.112        22.406        .74246E-04   -1.4628    
  10  Prefactor     17.156        17.344        .96705E-04   -1.4879    
  11  norm          4.0471        1.2346        .37709E-04   -1.5306    
  12  Prefactor     4.5978        3.5555        .11183E-03   -1.5279    
  13  norm          12.341        12.360        .11406E-03   -1.5005    
  14  norm          .10000E-03    148.29        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          1.5072        1.3497        .78702E-04   -1.5462    
  16  Prefactor     .10000E-03    8.1169        .16734E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     87.055        24.186        .43061E-04   -1.3839    
  18  norm          .10000E-03    4.0007        .14423E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .16191        25.445        .22306       -1.5628    
  20  Prefactor     .10000E-03    17.133        .32834E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    9.5594        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    56.871        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     4.7248        2.8243        .93372E-04   -1.5273    
  24  Prefactor     .10000E-03    2.4766        .11384E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  norm          6.6050        3.2508        .90297E-04   -1.5194    
  26  Normalizat    .90538        .27213        .30140E-03   -.96271    
  27  Prefactor     1.0492        .27333        .29650E-03   -.91108    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.5527e-09
Minuit parameter uncertainties:
  1  5.22924
  2  0.995775
  3  5.29462e-05
  4  1.61515e-05
  5  133.819
  6  0.588589
  7  4.96614e-05
  8  4.59712e-06
  9  22.4127
  10  17.3488
  11  1.23462
  12  3.55567
  13  12.3623
  14  0.000242545
  15  1.34971
  16  0.000203662
  17  24.1885
  18  2.86272e-05
  19  4.05987
  20  9.35348e-05
  21  7.27298e-06
  22  1.00854e-05
  23  2.82442
  24  3.96589e-06
  25  3.25087
  26  0.272543
  27  0.273692
Done.

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

Extracting fit parameters...

4FGL J0427.3-3900
   Spectrum: PowerLaw
266    Prefactor:  1.716e+01  1.735e+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.049e+00  2.737e-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.054e-01  2.725e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.58
Ra Dec: 66.826 -39.010
Photon Index (Fixed Index): 2.84 +/- 0.00
Photon Flux (Fixed Index): 9.31e-08 +/- 9.40e-08
Energy Flux (Fixed Index): 2.03e-05 +/- 2.05e-05

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

Saving results to:
/scratch/kocevski/465728/likelihoodResults_440208001_440467201_4FGL_J0427.3-3900_daily_bin775.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) = 5560.49429222
delta logL = 0.0884250927547

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5560.48960076
delta logL = 0.093116553885

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    10.058       1.0000         .10000E-03   10000.    
     2 'Index     '    3.4818       1.0000          .0000       10.000    
     3 'Normalizat'    .87800       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0726       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=   5560.490     FROM MIGRAD    STATUS=CONVERGED     90 CALLS      313 TOTAL
                     EDM=   .85E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     10.065        54.257        .12635E-03    .63238E-03
   2  Index         3.4827        3.4081        .78608E-02    .13408E-03
   3  Normalizat    .87757        .27295        .30545E-03   -.32204E-03
   4  Prefactor     1.0729        .28459        .29378E-03   -.27870E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 10.0652
  Index      = 3.48268
  Normalizat = 0.877572
  Prefactor  = 1.07287
 **********
 **   18 **HESSE 
 **********

 FCN=   5560.490     FROM HESSE     STATUS=OK            25 CALLS      338 TOTAL
                     EDM=   .63E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     10.065        20.397        .50539E-05   -1.5073    
   2  Index         3.4827        1.6203        .31443E-03   -.30833    
   3  Normalizat    .87757        .26858        .61090E-04   -.97253    
   4  Prefactor     1.0729        .27710        .58756E-04   -.90338    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.34083e-10
Minuit parameter uncertainties:
  1  20.4116
  2  1.65326
  3  0.268986
  4  0.277467
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/465728': 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) = 5560.48959758
delta logL = 0.0931197324298

Extracting fit parameters...

4FGL J0427.3-3900
   Spectrum: PowerLaw
266    Prefactor:  1.007e+01  2.041e+01  1.000e-04  1.000e+04 ( 1.000e-12)
267        Index:  3.483e+00  1.653e+00  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.073e+00  2.775e-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:  8.776e-01  2.690e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.96
Ra Dec: 66.826 -39.010
Photon Index (Free Index): 3.48 +/- 1.65
Photon Flux (Free Index): 1.14e-07 +/- 9.41e-08
Energy Flux (Free Index): 1.91e-05 +/- 1.65e-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/465728/cmap_HighResolution_440208001_440467201_4FGL_J0427.3-3900_daily_bin775.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.96e-02', comment='SUCCESS', photon_flux='9.31e-08', energy_flux2='1.91e-05', photon_flux_error='9.40e-08', dlogl='9.31e-02', energy_flux='2.03e-05', photon_flux2='1.14e-07', job_status='DONE', time_completed='2021-08-20 16:39:25.448785', photon_index_error2='1.65', photon_index2='3.48', ts='1.58', fit_tolerance='1e-08', GAL='1.05', photon_index_error='0.00', photon_flux_upper_limit='2.47e-07', energy_flux_error2='1.65e-05', EG='0.91', time_epoch_completed='1629502765.45', return_code='0', job_id='465728', GAL2='1.07', EG2='0.88', return_code2='0', energy_flux_error='2.05e-05', photon_flux_error2='9.41e-08', ts2='1.96', photon_index='2.84' WHERE bin_id='775' AND source_name='4FGL J0427.3-3900' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Aug 20 16:39:25 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0046>
Subject: Job 465728: <4FGL_J0427.3-3900_daily_bin775> in cluster <slac> Done

Job <4FGL_J0427.3-3900_daily_bin775> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Fri Aug 20 16:25:38 2021
Job was executed on host(s) <bullet0046>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Aug 20 16:25:40 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:25:40 2021
Terminated at Fri Aug 20 16:39:26 2021
Results reported at Fri Aug 20 16:39:26 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0427.3-3900_daily_bin775 66.826 -39.0097 440208001 440467201 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 :                                   814.26 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             317.11 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   825 sec.
    Turnaround time :                            828 sec.

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

