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


Performing analysis on: 4FGL_J0427.3-3900_daily_bin447
RA = 66.826, Dec = -39.0097
tmin = 355190401, tmax = 355449601
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='462702', job_status='RUN', time_executed='2021-08-20 16:16:53.721121', time_epoch_executed='1629501413.72' WHERE source_name='4FGL J0427.3-3900' and cadence='daily' and bin_id='447'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/462702

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/462702/ft1_4FGL_J0427.3-3900_daily_bin447.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/462702/ft2_4FGL_J0427.3-3900_daily_bin447.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/462702/ft1_4FGL_J0427.3-3900_daily_bin447.fits outfile=/scratch/kocevski/462702/ft1_filteredMKT_4FGL_J0427.3-3900_daily_bin447.fits ra=66.826 dec=-39.0097 rad=12.0 tmin=355190401.0 tmax=355449601.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 6.39
user 3.16
sys 3.18

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/462702/ft2_4FGL_J0427.3-3900_daily_bin447.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/462702/ft1_filteredMKT_4FGL_J0427.3-3900_daily_bin447.fits evtable="EVENTS" outfile="/scratch/kocevski/462702/ft1_filtered_4FGL_J0427.3-3900_daily_bin447.fits" apply_filter=yes overwrite=yes header_obstimes=yes tstart=0.0 tstop=0.0 gtifile="default" chatter=3 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

This is gtmktime version HEAD
Applying GTI filter:
IN_SAA!=T && LIVETIME>0 && gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nogrb.gti',(START+STOP)/2) && (angsep(RA_SUN,DEC_SUN,RA_ZENITH,DEC_ZENITH)>115 || gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nosolarflares.gti',(START+STOP)/2))
real 3.59
user 0.37
sys 3.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/462702/ft1_filtered_4FGL_J0427.3-3900_daily_bin447.fits" evtable="EVENTS" scfile=/scratch/kocevski/462702/ft2_4FGL_J0427.3-3900_daily_bin447.fits sctable="SC_DATA" outfile=/scratch/kocevski/462702/ltcube_355190401_355449601_4FGL_J0427.3-3900_daily_bin447.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/462702/ft2_4FGL_J0427.3-3900_daily_bin447.fits
.....................!
real 17.11
user 13.32
sys 3.70

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/462702/ft1_filtered_4FGL_J0427.3-3900_daily_bin447.fits evtable="EVENTS" scfile=/scratch/kocevski/462702/ft2_4FGL_J0427.3-3900_daily_bin447.fits sctable="SC_DATA" expcube=/scratch/kocevski/462702/ltcube_355190401_355449601_4FGL_J0427.3-3900_daily_bin447.fits outfile=/scratch/kocevski/462702/expmap_355190401_355449601_4FGL_J0427.3-3900_daily_bin447.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/462702/ltcube_355190401_355449601_4FGL_J0427.3-3900_daily_bin447.fits
.....................!
real 197.04
user 187.65
sys 8.85

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/462702/ft1_filtered_4FGL_J0427.3-3900_daily_bin447.fits scfile=/scratch/kocevski/462702/ft2_4FGL_J0427.3-3900_daily_bin447.fits outfile=/scratch/kocevski/462702/cmap_355190401_355449601_4FGL_J0427.3-3900_daily_bin447.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 3.55
user 0.40
sys 3.09

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/462702/ft1_filtered_4FGL_J0427.3-3900_daily_bin447.fits scfile=/scratch/kocevski/462702/ft2_4FGL_J0427.3-3900_daily_bin447.fits outfile=/scratch/kocevski/462702/cmap_HighResolution_355190401_355449601_4FGL_J0427.3-3900_daily_bin447.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 3.51
user 0.42
sys 3.07

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/462702/ft1_filtered_4FGL_J0427.3-3900_daily_bin447.fits evtable="EVENTS" scfile=/scratch/kocevski/462702/ft2_4FGL_J0427.3-3900_daily_bin447.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/462702/Model_4FGL_J0427.3-3900_daily_bin447.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/462702/ft1_filtered_4FGL_J0427.3-3900_daily_bin447.fits.....................!
real 152.20
user 146.63
sys 5.14

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .13023E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    .10049E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    27.222       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    50.628       1.0000         .10000E-03   10000.    
     6 'norm      '    .79292       1.0000         .10000E-03   10000.    
     7 'norm      '    .10019E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    8.1237       1.0000         .10000E-03   10000.    
     9 'Prefactor '    24.265       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10294E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    3.6953       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10849E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    3.8127       1.0000         .10000E-03   10000.    
    14 'norm      '    .20501       1.0000         .10000E-03   10000.    
    15 'norm      '    5.1188       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10065E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    8.5988       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .12630E-02   1.0000         .10000E-03   10000.    
    20 'Prefactor '    2.2632       1.0000         .10000E-03   10000.    
    21 'Prefactor '    9.5138       1.0000         .10000E-03   10000.    
    22 'Prefactor '    3.1574       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .64680       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10019E-03   1.0000         .10000E-03   10000.    
    25 'norm      '    4.7093       1.0000         .10000E-03   10000.    
    26 'Normalizat'    1.0596       1.0000         .10000E-01   10.000    
    27 'Prefactor '    .75959       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5840E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   7011.894     FROM MIGRAD    STATUS=CONVERGED    156 CALLS     2428 TOTAL
                     EDM=   .14E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  5.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    5.2364        .10496E-05** at limit **
   2  norm          .10000E-03    .77142        .46853E-06** at limit **
   3  Prefactor     28.248        32.153       -.34846E-05    .34146E-02
   4  Prefactor     .10000E-03    3.6314        .14752E-06** at limit **
   5  Prefactor     58.396        74.527        .44186E-05   -.73549E-03
   6  norm          .79222        .27536        .16076E-06   -.78600E-05
   7  norm          .10000E-03    1.7903       -.26954E-06** at limit **
   8  Prefactor     8.1517        16.079       -.50360E-04    .84521E-02
   9  Prefactor     24.255        11.582       -.24137E-04   -.17936E-01
  10  Prefactor     .10000E-03    4.3001       -.63155E-08** at limit **
  11  norm          3.6974        .78094        .97473E-06    .15738E-03
  12  Prefactor     .10000E-03    2.7980       -.23514E-06** at limit **
  13  norm          3.7637        6.1095        .62728E-06   -.75278E-04
  14  norm          .10064E-03    87.666       -.19291E-04** at limit **
  15  norm          5.1249        1.7602        .18821E-07   -.35086E-04
  16  Prefactor     .10000E-03    3.2681       -.30219E-06** at limit **
  17  Prefactor     .10000E-03    10.838        .38814E-06** at limit **
  18  norm          8.6212        4.8032       -.54322E-06    .40000E-04
  19  Prefactor     .10093E-03    43.306        .41976E-04** at limit **
  20  Prefactor     2.2693        2.8599       -.18570E-06    .12068E-04
  21  Prefactor     8.8638        18.621        .14003E-04   -.19585E-02
  22  Prefactor     3.3372        2.7454       -.33752E-05    .43000E-03
  23  Prefactor     .64821        1.0219        .93870E-07    .41445E-04
  24  Prefactor     .10000E-03    1.7394       -.95850E-07** at limit **
  25  norm          4.7138        2.1801       -.20605E-06   -.22602E-05
  26  Normalizat    1.0570        .19206        .10983E-04    .90263E-05
  27  Prefactor     .76083        .20217       -.62667E-05    .68014E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 28.2483
  Prefactor  = 0.0001
  Prefactor  = 58.3963
  norm       = 0.79222
  norm       = 0.0001
  Prefactor  = 8.15173
  Prefactor  = 24.2552
  Prefactor  = 0.0001
  norm       = 3.69743
  Prefactor  = 0.0001
  norm       = 3.76374
  norm       = 0.00010064
  norm       = 5.12486
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 8.6212
  Prefactor  = 0.000100932
  Prefactor  = 2.26928
  Prefactor  = 8.86381
  Prefactor  = 3.3372
  Prefactor  = 0.648207
  Prefactor  = 0.0001
  norm       = 4.7138
  Normalizat = 1.05702
  Prefactor  = 0.760829
 **********
 **   18 **HESSE 
 **********

 FCN=   7011.894     FROM HESSE     STATUS=OK           574 CALLS     3002 TOTAL
                     EDM=   .12E-05    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    1.4368        .52571E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .10000E-03    .42838        .20020E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     28.248        32.997        .19196E-02   -1.4644    
   4  Prefactor     .10000E-03    3.6228        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     58.396        74.316        .14091E-02   -1.4178    
   6  norm          .79222        .27684        .55994E-02   -1.5530    
   7  norm          .10000E-03    1.7842        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     8.1517        29.787        .35167E-02   -1.5137    
   9  Prefactor     24.255        12.920        .20330E-02   -1.4723    
  10  Prefactor     .10000E-03    4.2734        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          3.6974        .78649        .52523E-02   -1.5323    
  12  Prefactor     .10000E-03    1.4573        .33320E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          3.7637        6.2315        .51678E-02   -1.5320    
  14  norm          .10064E-03    88.123        .10000E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          5.1249        1.8234        .44426E-02   -1.5255    
  16  Prefactor     .10000E-03    1.3030        .45684E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    10.827        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          8.6212        4.9457        .34175E-02   -1.5121    
  19  Prefactor     .10093E-03    44.011        .10300E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     2.2693        2.8736        .68260E-02   -1.5407    
  21  Prefactor     8.8638        18.745        .32481E-02   -1.5112    
  22  Prefactor     3.3372        82.051        .57026E-02   -1.5343    
  23  Prefactor     .64821        1.3079        .24935E-01   -1.5547    
  24  Prefactor     .10000E-03    1.7040        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  norm          4.7138        2.1866        .46357E-02   -1.5274    
  26  Normalizat    1.0570        .16589        .39958E-01   -.91144    
  27  Prefactor     .76083        .17184        .65015E-01   -1.0119    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.15174e-06
Minuit parameter uncertainties:
  1  1.11475e-06
  2  4.61182e-07
  3  33.0179
  4  9.20303e-06
  5  74.4342
  6  0.276836
  7  7.25266e-07
  8  29.8413
  9  12.9218
  10  2.17623e-06
  11  0.786495
  12  2.28173e-06
  13  6.23259
  14  0.0150445
  15  1.8234
  16  3.07643e-06
  17  1.51689e-06
  18  4.94589
  19  0.0128215
  20  2.8738
  21  18.7576
  22  33.1455
  23  1.30792
  24  8.89726e-09
  25  2.18664
  26  0.165969
  27  0.171963
Done.

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

Extracting fit parameters...

4FGL J0427.3-3900
   Spectrum: PowerLaw
266    Prefactor:  1.000e-04  2.176e-06  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:  7.608e-01  1.720e-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.057e+00  1.660e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 66.826 -39.010
Photon Flux Upper Limit: 7.69e-08 ph cm-2 s-1
Energy Flux Upper Limit: 6.10e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/462702/likelihoodResults_355190401_355449601_4FGL_J0427.3-3900_daily_bin447.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): 102
logL (Free Index) = 7011.89538448
delta logL = -0.00110757744642

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 7011.89427717
delta logL = -2.5939061743e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10147E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.8387       1.0000          .0000       10.000    
     3 'Normalizat'    1.0570       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .76092       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=   7011.894     FROM MIGRAD    STATUS=CONVERGED     88 CALLS      240 TOTAL
                     EDM=   .49E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10032E-03    116.48        .16904E-02** at limit **
   2  Index         2.7957        5.0096        .50000        .87198E-05
   3  Normalizat    1.0570        .20405E-01    .22860E-03    .15118E-04
   4  Prefactor     .76083        .22216E-01    .28761E-03    .28460E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100324
  Index      = 2.79569
  Normalizat = 1.05702
  Prefactor  = 0.760829
 **********
 **   18 **HESSE 
 **********

 FCN=   7011.894     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      269 TOTAL
                     EDM=   .23E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10032E-03    458.09        .33808E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.7957        8.0173        .50000       -.45656    
   3  Normalizat    1.0570        .45944E-01    .91441E-05   -.91144    
   4  Prefactor     .76083        .50018E-01    .11505E-04   -1.0119    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 2.27994e-08
Minuit parameter uncertainties:
  1  0.0245402
  2  1425.87
  3  0.0459457
  4  0.0500207
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/462702': 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): 102
logL (Free Index) = 7011.89427683
delta logL = 7.2859620559e-08

Extracting fit parameters...

4FGL J0427.3-3900
   Spectrum: PowerLaw
266    Prefactor:  1.003e-04  2.454e-02  1.000e-04  1.000e+04 ( 1.000e-12)
267        Index:  2.796e+00  1.426e+03  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:  7.608e-01  5.002e-02  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.057e+00  4.595e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 66.826 -39.010

Creating a high resolution counts map...
INFO: Auto-setting vmin to -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/462702/cmap_HighResolution_355190401_355449601_4FGL_J0427.3-3900_daily_bin447.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.10e-03', job_status='DONE', photon_flux_upper_limit='7.69e-08', time_completed='2021-08-20 16:32:06.843621', job_id='462702', GAL2='0.76', fit_tolerance='1e-08', EG2='1.06', EG='1.06', time_epoch_completed='1629502326.84', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.76', dlogl='7.29e-08', ts2='-0.00', photon_index_error='0.00', photon_index='2.84' WHERE bin_id='447' AND source_name='4FGL J0427.3-3900' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Aug 20 16:32:06 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0117>
Subject: Job 462702: <4FGL_J0427.3-3900_daily_bin447> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0427.3-3900_daily_bin447 66.826 -39.0097 355190401 355449601 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 :                                   957.00 sec.
    Max Memory :                                 1095 MB
    Average Memory :                             343.43 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   980 sec.
    Turnaround time :                            982 sec.

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

