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


Performing analysis on: 4FGL_J0427.3-3900_daily_bin914
RA = 66.826, Dec = -39.0097
tmin = 476236801, tmax = 476496001
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='466988', job_status='RUN', time_executed='2021-08-20 16:31:05.530298', time_epoch_executed='1629502265.53' WHERE source_name='4FGL J0427.3-3900' and cadence='daily' and bin_id='914'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/466988

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/466988/ft1_4FGL_J0427.3-3900_daily_bin914.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/466988/ft2_4FGL_J0427.3-3900_daily_bin914.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/466988/ft1_4FGL_J0427.3-3900_daily_bin914.fits outfile=/scratch/kocevski/466988/ft1_filteredMKT_4FGL_J0427.3-3900_daily_bin914.fits ra=66.826 dec=-39.0097 rad=12.0 tmin=476236801.0 tmax=476496001.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 5.07
user 3.29
sys 1.74

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/466988/ft2_4FGL_J0427.3-3900_daily_bin914.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/466988/ft1_filteredMKT_4FGL_J0427.3-3900_daily_bin914.fits evtable="EVENTS" outfile="/scratch/kocevski/466988/ft1_filtered_4FGL_J0427.3-3900_daily_bin914.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 2.06
user 0.32
sys 1.70

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/466988/ft1_filtered_4FGL_J0427.3-3900_daily_bin914.fits" evtable="EVENTS" scfile=/scratch/kocevski/466988/ft2_4FGL_J0427.3-3900_daily_bin914.fits sctable="SC_DATA" outfile=/scratch/kocevski/466988/ltcube_476236801_476496001_4FGL_J0427.3-3900_daily_bin914.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/466988/ft2_4FGL_J0427.3-3900_daily_bin914.fits
.....................!
real 13.55
user 11.45
sys 2.04

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/466988/ft1_filtered_4FGL_J0427.3-3900_daily_bin914.fits evtable="EVENTS" scfile=/scratch/kocevski/466988/ft2_4FGL_J0427.3-3900_daily_bin914.fits sctable="SC_DATA" expcube=/scratch/kocevski/466988/ltcube_476236801_476496001_4FGL_J0427.3-3900_daily_bin914.fits outfile=/scratch/kocevski/466988/expmap_476236801_476496001_4FGL_J0427.3-3900_daily_bin914.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/466988/ltcube_476236801_476496001_4FGL_J0427.3-3900_daily_bin914.fits
.....................!
real 197.71
user 190.59
sys 6.61

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/466988/ft1_filtered_4FGL_J0427.3-3900_daily_bin914.fits scfile=/scratch/kocevski/466988/ft2_4FGL_J0427.3-3900_daily_bin914.fits outfile=/scratch/kocevski/466988/cmap_476236801_476496001_4FGL_J0427.3-3900_daily_bin914.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 2.04
user 0.37
sys 1.65

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/466988/ft1_filtered_4FGL_J0427.3-3900_daily_bin914.fits scfile=/scratch/kocevski/466988/ft2_4FGL_J0427.3-3900_daily_bin914.fits outfile=/scratch/kocevski/466988/cmap_HighResolution_476236801_476496001_4FGL_J0427.3-3900_daily_bin914.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 2.07
user 0.38
sys 1.66

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/466988/ft1_filtered_4FGL_J0427.3-3900_daily_bin914.fits evtable="EVENTS" scfile=/scratch/kocevski/466988/ft2_4FGL_J0427.3-3900_daily_bin914.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/466988/Model_4FGL_J0427.3-3900_daily_bin914.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/466988/ft1_filtered_4FGL_J0427.3-3900_daily_bin914.fits.....................!
real 103.92
user 100.46
sys 3.20

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    3.1486       1.0000         .10000E-03   10000.    
     2 'norm      '    1.7124       1.0000         .10000E-03   10000.    
     3 'Prefactor '    25.074       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10017E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .11245E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    .10379E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    16.198       1.0000         .10000E-03   10000.    
     8 'Prefactor '    182.41       1.0000         .10000E-03   10000.    
     9 'Prefactor '    35.353       1.0000         .10000E-03   10000.    
    10 'Prefactor '    5.1090       1.0000         .10000E-03   10000.    
    11 'norm      '    2.2721       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .20147       1.0000         .10000E-03   10000.    
    13 'norm      '    .10049E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    .10054E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    2.8848       1.0000         .10000E-03   10000.    
    16 'Prefactor '    13.029       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .11649E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    .85999E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10014E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    2.5022       1.0000         .10000E-03   10000.    
    21 'Prefactor '    27.833       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10059E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    8.6863       1.0000         .10000E-03   10000.    
    25 'norm      '    2.8042       1.0000         .10000E-03   10000.    
    26 'Normalizat'    1.0783       1.0000         .10000E-01   10.000    
    27 'Prefactor '    .98176       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=   4709.768     FROM MIGRAD    STATUS=CONVERGED    703 CALLS     3454 TOTAL
                     EDM=   .12E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          3.1484        3.1007        .79195E-08    .97600E-05
   2  norm          1.7123        1.0740        .55103E-08   -.95408E-04
   3  Prefactor     25.071        46.827        .23072E-06    .13259E-05
   4  Prefactor     .10000E-03    13.657       -.88811E-08** at limit **
   5  Prefactor     .10000E-03    474.41        .24156E-05** at limit **
   6  norm          .10000E-03    .20371        .66350E-08** at limit **
   7  norm          16.195        11.846       -.11347E-07   -.38723E-05
   8  Prefactor     182.43        68.010        .32045E-05    .11608E-03
   9  Prefactor     35.352        23.024       -.20242E-06   -.27784E-05
  10  Prefactor     5.1073        8.3579        .64791E-06   -.43853E-03
  11  norm          2.2719        1.0036       -.21091E-07   -.12816E-04
  12  Prefactor     .18626        2.5616       -.35574E-06    .12630E-04
  13  norm          .10000E-03    9.4865       -.59057E-07** at limit **
  14  norm          .10000E-03    132.03       -.19495E-06** at limit **
  15  norm          2.8844        2.0226       -.16482E-07    .86492E-04
  16  Prefactor     13.038        5.6831        .93980E-07   -.38701E-03
  17  Prefactor     .10000E-03    42.091       -.19251E-06** at limit **
  18  norm          .10000E-03    4.6498        .23728E-08** at limit **
  19  Prefactor     .10000E-03    32.124        .21964E-06** at limit **
  20  Prefactor     2.4987        8.4704       -.43920E-06   -.87297E-04
  21  Prefactor     27.833        30.153        .48340E-07    .44177E-05
  22  Prefactor     .10000E-03    26.905       -.15602E-06** at limit **
  23  Prefactor     .10000E-03    2.3108        .12412E-07** at limit **
  24  Prefactor     8.6857        6.9704       -.41507E-07   -.41003E-04
  25  norm          2.8036        3.2581        .58133E-07   -.59249E-04
  26  Normalizat    1.0783        .24421       -.59112E-06    .57772E-04
  27  Prefactor     .98197        .23453        .90568E-07    .14405E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 3.1484
  norm       = 1.71227
  Prefactor  = 25.0712
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 16.1948
  Prefactor  = 182.426
  Prefactor  = 35.3516
  Prefactor  = 5.10732
  norm       = 2.27193
  Prefactor  = 0.186263
  norm       = 0.0001
  norm       = 0.0001
  norm       = 2.8844
  Prefactor  = 13.0377
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 2.49868
  Prefactor  = 27.8331
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 8.68568
  norm       = 2.80362
  Normalizat = 1.07835
  Prefactor  = 0.981968
 **********
 **   18 **HESSE 
 **********

 FCN=   4709.768     FROM HESSE     STATUS=OK           500 CALLS     3954 TOTAL
                     EDM=   .87E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          3.1484        3.1025        .11640E-03   -1.5353    
   2  norm          1.7123        1.0747        .16060E-03   -1.5446    
   3  Prefactor     25.071        46.825        .79998E-04   -1.4706    
   4  Prefactor     .10000E-03    13.693        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    475.34        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          .10000E-03    .58265        .58264E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          16.195        11.680        .99514E-04   -1.4903    
   8  Prefactor     182.43        69.078        .14945E-03   -1.2998    
   9  Prefactor     35.352        23.151        .67400E-04   -1.4518    
  10  Prefactor     5.1073        13.319        .88938E-03   -1.5256    
  11  norm          2.2719        1.0451        .40922E-04   -1.5407    
  12  Prefactor     .18626        15.078        .19192E-02   -1.5622    
  13  norm          .10000E-03    9.5382        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .10000E-03    132.03        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          2.8844        2.0312        .76185E-04   -1.5368    
  16  Prefactor     13.038        5.5830        .44604E-03   -1.4986    
  17  Prefactor     .10000E-03    42.529        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          .10000E-03    22.616        .26717E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    32.140        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     2.4987        8.5848        .25835E-03   -1.5392    
  21  Prefactor     27.833        30.075        .75937E-04   -1.4652    
  22  Prefactor     .10000E-03    26.913        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    4.1852        .20011E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     8.6857        6.9587        .13601E-03   -1.5118    
  25  norm          2.8036        3.2439        .12457E-03   -1.5373    
  26  Normalizat    1.0783        .29180        .28309E-03   -.90450    
  27  Prefactor     .98197        .28038        .30289E-03   -.93333    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.74999e-10
Minuit parameter uncertainties:
  1  3.10271
  2  1.07468
  3  46.894
  4  1.23394e-06
  5  0.000472164
  6  3.63496e-07
  7  11.6821
  8  69.1083
  9  23.1571
  10  13.327
  11  1.04511
  12  3.35166
  13  8.15882e-06
  14  1.51118e-05
  15  2.03124
  16  5.58326
  17  2.62822e-06
  18  3.84511e-05
  19  9.51591e-06
  20  8.58907
  21  30.0914
  22  2.43722e-06
  23  4.63782e-06
  24  6.95932
  25  3.24407
  26  0.292238
  27  0.280795
Done.

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

Extracting fit parameters...

4FGL J0427.3-3900
   Spectrum: PowerLaw
266    Prefactor:  5.107e+00  1.333e+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:  9.820e-01  2.808e-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:  1.078e+00  2.922e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/466988/likelihoodResults_476236801_476496001_4FGL_J0427.3-3900_daily_bin914.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) = 4709.28030134
delta logL = 0.487568493233

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4709.23026255
delta logL = 0.537607282714

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    8.5267       1.0000         .10000E-03   10000.    
     2 'Index     '    1.8207       1.0000          .0000       10.000    
     3 'Normalizat'    1.0978       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .96256       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.

 FCN=   4709.230     FROM MIGRAD    STATUS=CONVERGED     59 CALLS      224 TOTAL
                     EDM=   .35E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     8.5320        10.870        .34320E-02    .17967E-04
   2  Index         1.8223        .49812        .25108       -.44680E-04
   3  Normalizat    1.0980        .22504        .63486E-01    .83268E-05
   4  Prefactor     .96238        .23176        .68997E-01    .10211E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 8.53205
  Index      = 1.82227
  Normalizat = 1.098
  Prefactor  = 0.962385
 **********
 **   18 **HESSE 
 **********

 FCN=   4709.230     FROM HESSE     STATUS=OK            33 CALLS      257 TOTAL
                     EDM=   .18E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     8.5320        12.179        .13728E-03   -1.5124    
   2  Index         1.8223        .72113        .85850E-02   -.68872    
   3  Normalizat    1.0980        .26636        .28082E-03   -.89816    
   4  Prefactor     .96238        .27403        .30521E-03   -.93994    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.80505e-12
Minuit parameter uncertainties:
  1  12.183
  2  0.725391
  3  0.26669
  4  0.274428
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/466988': 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) = 4709.2302598
delta logL = 0.537610039452

Extracting fit parameters...

4FGL J0427.3-3900
   Spectrum: PowerLaw
266    Prefactor:  8.532e+00  1.218e+01  1.000e-04  1.000e+04 ( 1.000e-12)
267        Index:  1.822e+00  7.254e-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:  9.624e-01  2.744e-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:  1.098e+00  2.667e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.30
Ra Dec: 66.826 -39.010
Photon Index (Free Index): 1.82 +/- 0.73
Photon Flux (Free Index): 1.98e-08 +/- 3.15e-08
Energy Flux (Free Index): 2.21e-05 +/- 3.80e-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/466988/cmap_HighResolution_476236801_476496001_4FGL_J0427.3-3900_daily_bin914.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.56e-02', comment='SUCCESS', energy_flux2='2.21e-05', dlogl='5.38e-01', photon_flux2='1.98e-08', job_status='DONE', time_completed='2021-08-20 16:43:30.662709', photon_index_error2='0.73', photon_index2='1.82', ts='0.22', fit_tolerance='1e-08', GAL='0.98', photon_index_error='0.00', photon_flux_upper_limit='1.97e-07', energy_flux_error2='3.80e-05', EG='1.08', time_epoch_completed='1629503010.66', return_code='0', job_id='466988', GAL2='0.96', EG2='1.10', return_code2='0', photon_flux_error2='3.15e-08', ts2='1.30', photon_index='2.84' WHERE bin_id='914' AND source_name='4FGL J0427.3-3900' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Aug 20 16:43:30 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0073>
Subject: Job 466988: <4FGL_J0427.3-3900_daily_bin914> in cluster <slac> Done

Job <4FGL_J0427.3-3900_daily_bin914> was submitted from host <rhel6-64o> by user <kocevski> in cluster <slac> at Fri Aug 20 16:30:27 2021
Job was executed on host(s) <bullet0073>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Aug 20 16:30:29 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:30:29 2021
Terminated at Fri Aug 20 16:43:31 2021
Results reported at Fri Aug 20 16:43:31 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0427.3-3900_daily_bin914 66.826 -39.0097 476236801 476496001 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 :                                   765.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             319.00 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   782 sec.
    Turnaround time :                            784 sec.

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

