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


Performing analysis on: 4FGL_J0427.3-3900_daily_bin735
RA = 66.826, Dec = -39.0097
tmin = 429840001, tmax = 430099201
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='465662', job_status='RUN', time_executed='2021-08-20 16:29:30.697603', time_epoch_executed='1629502170.7' WHERE source_name='4FGL J0427.3-3900' and cadence='daily' and bin_id='735'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/465662

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/465662/ft1_4FGL_J0427.3-3900_daily_bin735.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/465662/ft2_4FGL_J0427.3-3900_daily_bin735.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/465662/ft1_4FGL_J0427.3-3900_daily_bin735.fits outfile=/scratch/kocevski/465662/ft1_filteredMKT_4FGL_J0427.3-3900_daily_bin735.fits ra=66.826 dec=-39.0097 rad=12.0 tmin=429840001.0 tmax=430099201.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.84
user 5.56
sys 0.25

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/465662/ft2_4FGL_J0427.3-3900_daily_bin735.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/465662/ft1_filteredMKT_4FGL_J0427.3-3900_daily_bin735.fits evtable="EVENTS" outfile="/scratch/kocevski/465662/ft1_filtered_4FGL_J0427.3-3900_daily_bin735.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.48
user 0.34
sys 0.14

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/465662/ft1_filtered_4FGL_J0427.3-3900_daily_bin735.fits" evtable="EVENTS" scfile=/scratch/kocevski/465662/ft2_4FGL_J0427.3-3900_daily_bin735.fits sctable="SC_DATA" outfile=/scratch/kocevski/465662/ltcube_429840001_430099201_4FGL_J0427.3-3900_daily_bin735.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/465662/ft2_4FGL_J0427.3-3900_daily_bin735.fits
.....................!
real 12.10
user 11.75
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/465662/ft1_filtered_4FGL_J0427.3-3900_daily_bin735.fits evtable="EVENTS" scfile=/scratch/kocevski/465662/ft2_4FGL_J0427.3-3900_daily_bin735.fits sctable="SC_DATA" expcube=/scratch/kocevski/465662/ltcube_429840001_430099201_4FGL_J0427.3-3900_daily_bin735.fits outfile=/scratch/kocevski/465662/expmap_429840001_430099201_4FGL_J0427.3-3900_daily_bin735.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/465662/ltcube_429840001_430099201_4FGL_J0427.3-3900_daily_bin735.fits
.....................!
real 190.14
user 185.80
sys 4.00

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/465662/ft1_filtered_4FGL_J0427.3-3900_daily_bin735.fits scfile=/scratch/kocevski/465662/ft2_4FGL_J0427.3-3900_daily_bin735.fits outfile=/scratch/kocevski/465662/cmap_429840001_430099201_4FGL_J0427.3-3900_daily_bin735.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.53
user 0.36
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/465662/ft1_filtered_4FGL_J0427.3-3900_daily_bin735.fits scfile=/scratch/kocevski/465662/ft2_4FGL_J0427.3-3900_daily_bin735.fits outfile=/scratch/kocevski/465662/cmap_HighResolution_429840001_430099201_4FGL_J0427.3-3900_daily_bin735.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.53
user 0.37
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/465662/ft1_filtered_4FGL_J0427.3-3900_daily_bin735.fits evtable="EVENTS" scfile=/scratch/kocevski/465662/ft2_4FGL_J0427.3-3900_daily_bin735.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/465662/Model_4FGL_J0427.3-3900_daily_bin735.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/465662/ft1_filtered_4FGL_J0427.3-3900_daily_bin735.fits.....................!
real 103.13
user 101.54
sys 1.22

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    9.7238       1.0000         .10000E-03   10000.    
     2 'norm      '    .63636       1.0000         .10000E-03   10000.    
     3 'Prefactor '    18.630       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    2.2041       1.0000         .10000E-03   10000.    
     7 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    13.746       1.0000         .10000E-03   10000.    
    10 'Prefactor '    14.803       1.0000         .10000E-03   10000.    
    11 'norm      '    1.3337       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    3.8219       1.0000         .10000E-03   10000.    
    16 'Prefactor '    3.1922       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    80.113       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    22.099       1.0000         .10000E-03   10000.    
    23 'Prefactor '    1.2959       1.0000         .10000E-03   10000.    
    24 'Prefactor '    1.5543       1.0000         .10000E-03   10000.    
    25 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    26 'Normalizat'    1.0218       1.0000         .10000E-01   10.000    
    27 'Prefactor '    1.2096       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.
 MACHINE ACCURACY LIMITS FURTHER IMPROVEMENT.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   4753.074     FROM MIGRAD    STATUS=CONVERGED    661 CALLS     3249 TOTAL
                     EDM=   .52E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          9.7236        5.2572         .0000       -.26640E-02
   2  norm          .63648        1.0903         .0000        .96200E-03
   3  Prefactor     18.630        43.369         .0000        .49369E-04
   4  Prefactor     .10000E-03    10.162         .0000    ** at limit **
   5  Prefactor     .10000E-03    76.339         .0000    ** at limit **
   6  norm          2.2042        .58518         .0000        .19383E-03
   7  norm          .10000E-03    2.5931         .0000    ** at limit **
   8  Prefactor     .10000E-03    12.947         .0000    ** at limit **
   9  Prefactor     13.747        13.557         .0000       -.44154E-03
  10  Prefactor     14.804        17.221         .0000       -.16090E-03
  11  norm          1.3336        .90079         .0000        .36307E-03
  12  Prefactor     .10000E-03    1.6549         .0000    ** at limit **
  13  norm          .10000E-03    7.7198         .0000    ** at limit **
  14  norm          .10000E-03    123.68         .0000    ** at limit **
  15  norm          3.8219        2.5306         .0000        .46265E-04
  16  Prefactor     3.1915        4.2094         .0000        .35028E-03
  17  Prefactor     .10000E-03    6.0346         .0000    ** at limit **
  18  norm          .10000E-03    1.6116         .0000    ** at limit **
  19  Prefactor     80.112        80.774         .0000        .30061E-03
  20  Prefactor     .10000E-03    3.5305         .0000    ** at limit **
  21  Prefactor     .10000E-03    24.281         .0000    ** at limit **
  22  Prefactor     22.094        54.869         .0000        .13302E-02
  23  Prefactor     1.2959        1.3841         .0000       -.12399E-03
  24  Prefactor     1.5561        6.8354         .0000        .19797E-01
  25  norm          .10000E-03    .80186         .0000    ** at limit **
  26  Normalizat    1.0217        .23231         .0000        .49851E-04
  27  Prefactor     1.2097        .23982         .0000        .42311E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 9.72362
  norm       = 0.636479
  Prefactor  = 18.6298
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 2.20423
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 13.7473
  Prefactor  = 14.8044
  norm       = 1.33363
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  norm       = 3.82193
  Prefactor  = 3.19145
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 80.1121
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 22.0939
  Prefactor  = 1.29589
  Prefactor  = 1.55606
  norm       = 0.0001
  Normalizat = 1.02166
  Prefactor  = 1.20969
 **********
 **   18 **HESSE 
 **********

 FCN=   4753.074     FROM HESSE     STATUS=OK           482 CALLS     3731 TOTAL
                     EDM=   .30E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          9.7236        5.2407        .11181E-03   -1.5084    
   2  norm          .63648        1.0022        .89362E-03   -1.5548    
   3  Prefactor     18.630        43.382        .92793E-04   -1.4844    
   4  Prefactor     .10000E-03    10.176        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    76.358        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          2.2042        .58704        .25775E-04   -1.5411    
   7  norm          .10000E-03    2.5976        .10841E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    12.952        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     13.747        13.538        .10803E-03   -1.4966    
  10  Prefactor     14.804        17.388        .10410E-03   -1.4938    
  11  norm          1.3336        .89537        .45713E-04   -1.5477    
  12  Prefactor     .10000E-03    1.6820        .86449E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .10000E-03    7.7547        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .10000E-03    123.67        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          3.8219        2.5548        .74496E-04   -1.5317    
  16  Prefactor     3.1915        4.2384        .13059E-03   -1.5351    
  17  Prefactor     .10000E-03    6.0413        .16540E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          .10000E-03    1.6132        .85456E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     80.112        80.694        .44871E-04   -1.3915    
  20  Prefactor     .10000E-03    3.5551        .12649E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    24.330        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     22.094        54.739        .85205E-04   -1.4768    
  23  Prefactor     1.2959        1.3924        .81718E-04   -1.5480    
  24  Prefactor     1.5561        6.8095        .16617E-02   -1.5458    
  25  norm          .10000E-03    .80272        .60258E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Normalizat    1.0217        .27879        .28547E-03   -.92308    
  27  Prefactor     1.2097        .28811        .28286E-03   -.86034    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.96817e-08
Minuit parameter uncertainties:
  1  5.24091
  2  1.00227
  3  43.4555
  4  1.00198e-05
  5  4.96976e-06
  6  0.587037
  7  3.09255e-06
  8  8.47273e-06
  9  13.5415
  10  17.3944
  11  0.89538
  12  7.94754e-07
  13  9.19736e-06
  14  0.000419527
  15  2.55484
  16  4.2388
  17  1.42435e-06
  18  2.66504e-07
  19  80.8047
  20  3.75135e-06
  21  1.0399e-05
  22  54.8638
  23  1.39247
  24  6.51135
  25  2.25168e-08
  26  0.279194
  27  0.28849
Done.

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

Extracting fit parameters...

4FGL J0427.3-3900
   Spectrum: PowerLaw
266    Prefactor:  1.480e+01  1.739e+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.210e+00  2.885e-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.022e+00  2.792e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.13
Ra Dec: 66.826 -39.010
Photon Index (Fixed Index): 2.84 +/- 0.00
Photon Flux (Fixed Index): 8.04e-08 +/- 9.43e-08
Energy Flux (Fixed Index): 1.75e-05 +/- 2.05e-05

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

Saving results to:
/scratch/kocevski/465662/likelihoodResults_429840001_430099201_4FGL_J0427.3-3900_daily_bin735.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) = 4751.84794231
delta logL = 1.22644926816

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 4751.69341402
delta logL = 1.3809775594

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .13262E-01   1.0000         .10000E-03   10000.    
     2 'Index     '    8.4481       1.0000          .0000       10.000    
     3 'Normalizat'    .91173       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.3098       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=   4751.693     FROM MIGRAD    STATUS=CONVERGED     57 CALLS      320 TOTAL
                     EDM=   .39E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .12973E-01    .13826        .90892E-03    .93530E-02
   2  Index         8.4630        7.6515        .16101        .77666E-04
   3  Normalizat    .91263        .75871E-01    .67673E-01   -.47464E-04
   4  Prefactor     1.3088        .81544E-01    .61956E-01   -.83707E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0129726
  Index      = 8.46301
  Normalizat = 0.912633
  Prefactor  = 1.30876
 **********
 **   18 **HESSE 
 **********

 FCN=   4751.693     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      349 TOTAL
                     EDM=   .70E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .12973E-01    .23977        .45410E-05   -1.5685    
   2  Index         8.4630        8.5022        .69721E-03    .76509    
   3  Normalizat    .91263        .27222        .29937E-03   -.96018    
   4  Prefactor     1.3088        .28493        .27400E-03   -.83047    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 6.95049e-10
Minuit parameter uncertainties:
  1  0.111111
  2  5.59798
  3  0.272629
  4  0.28527
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/465662': 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) = 4751.69340038
delta logL = 1.38099119179

Extracting fit parameters...

4FGL J0427.3-3900
   Spectrum: PowerLaw
266    Prefactor:  1.297e-02  1.111e-01  1.000e-04  1.000e+04 ( 1.000e-12)
267        Index:  8.463e+00  5.598e+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.309e+00  2.853e-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.126e-01  2.726e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 4.27
Ra Dec: 66.826 -39.010
Photon Index (Free Index): 8.46 +/- 5.60
Photon Flux (Free Index): 1.59e-07 +/- 1.01e-07
Energy Flux (Free Index): 1.82e-05 +/- 1.25e-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/465662/cmap_HighResolution_429840001_430099201_4FGL_J0427.3-3900_daily_bin735.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.89e-02', comment='SUCCESS', photon_flux='8.04e-08', energy_flux2='1.82e-05', photon_flux_error='9.43e-08', dlogl='1.38e+00', energy_flux='1.75e-05', photon_flux2='1.59e-07', job_status='DONE', time_completed='2021-08-20 16:41:35.629806', photon_index_error2='5.60', photon_index2='8.46', ts='1.13', fit_tolerance='1e-08', GAL='1.21', photon_index_error='0.00', photon_flux_upper_limit='2.38e-07', energy_flux_error2='1.25e-05', EG='1.02', time_epoch_completed='1629502895.63', return_code='0', job_id='465662', GAL2='1.31', EG2='0.91', return_code2='102', energy_flux_error='2.05e-05', photon_flux_error2='1.01e-07', ts2='4.27', photon_index='2.84' WHERE bin_id='735' AND source_name='4FGL J0427.3-3900' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Aug 20 16:41:35 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0256>
Subject: Job 465662: <4FGL_J0427.3-3900_daily_bin735> in cluster <slac> Done

Job <4FGL_J0427.3-3900_daily_bin735> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Fri Aug 20 16:25:33 2021
Job was executed on host(s) <bullet0256>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Aug 20 16:25: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:25:34 2021
Terminated at Fri Aug 20 16:41:36 2021
Results reported at Fri Aug 20 16:41:36 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0427.3-3900_daily_bin735 66.826 -39.0097 429840001 430099201 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 :                                   721.00 sec.
    Max Memory :                                 1095 MB
    Average Memory :                             269.24 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   961 sec.
    Turnaround time :                            963 sec.

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

