/nfs/farm/g/glast/g/LCRepository/bin/miniconda2/envs/fermitools_v1.0.5/lib/python2.7/site-packages/matplotlib/font_manager.py:281: UserWarning: Matplotlib is building the font cache using fc-list. This may take a moment.
  'Matplotlib is building the font cache using fc-list. '
/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 95 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 = 7552
number of fields = 30
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J0427.3-3900_daily_bin1269
RA = 66.826, Dec = -39.0097
tmin = 568252801, tmax = 568512001
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='468861', job_status='RUN', time_executed='2021-08-20 16:39:22.259183', time_epoch_executed='1629502762.26' WHERE source_name='4FGL J0427.3-3900' and cadence='daily' and bin_id='1269'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/468861

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/468861/ft1_4FGL_J0427.3-3900_daily_bin1269.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/468861/ft2_4FGL_J0427.3-3900_daily_bin1269.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/468861/ft1_4FGL_J0427.3-3900_daily_bin1269.fits outfile=/scratch/kocevski/468861/ft1_filteredMKT_4FGL_J0427.3-3900_daily_bin1269.fits ra=66.826 dec=-39.0097 rad=12.0 tmin=568252801.0 tmax=568512001.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 9.99
user 3.50
sys 6.37

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/468861/ft1_filtered_4FGL_J0427.3-3900_daily_bin1269.fits" evtable="EVENTS" scfile=/scratch/kocevski/468861/ft2_4FGL_J0427.3-3900_daily_bin1269.fits sctable="SC_DATA" outfile=/scratch/kocevski/468861/ltcube_568252801_568512001_4FGL_J0427.3-3900_daily_bin1269.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/468861/ft2_4FGL_J0427.3-3900_daily_bin1269.fits
.....................!
real 18.48
user 11.12
sys 7.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/468861/ft1_filtered_4FGL_J0427.3-3900_daily_bin1269.fits evtable="EVENTS" scfile=/scratch/kocevski/468861/ft2_4FGL_J0427.3-3900_daily_bin1269.fits sctable="SC_DATA" expcube=/scratch/kocevski/468861/ltcube_568252801_568512001_4FGL_J0427.3-3900_daily_bin1269.fits outfile=/scratch/kocevski/468861/expmap_568252801_568512001_4FGL_J0427.3-3900_daily_bin1269.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/468861/ltcube_568252801_568512001_4FGL_J0427.3-3900_daily_bin1269.fits
.....................!
real 201.26
user 187.01
sys 13.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/468861/ft1_filtered_4FGL_J0427.3-3900_daily_bin1269.fits scfile=/scratch/kocevski/468861/ft2_4FGL_J0427.3-3900_daily_bin1269.fits outfile=/scratch/kocevski/468861/cmap_568252801_568512001_4FGL_J0427.3-3900_daily_bin1269.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 6.60
user 0.36
sys 6.19

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/468861/ft1_filtered_4FGL_J0427.3-3900_daily_bin1269.fits scfile=/scratch/kocevski/468861/ft2_4FGL_J0427.3-3900_daily_bin1269.fits outfile=/scratch/kocevski/468861/cmap_HighResolution_568252801_568512001_4FGL_J0427.3-3900_daily_bin1269.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 6.59
user 0.38
sys 6.18

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/468861/ft1_filtered_4FGL_J0427.3-3900_daily_bin1269.fits evtable="EVENTS" scfile=/scratch/kocevski/468861/ft2_4FGL_J0427.3-3900_daily_bin1269.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/468861/Model_4FGL_J0427.3-3900_daily_bin1269.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/468861/ft1_filtered_4FGL_J0427.3-3900_daily_bin1269.fits.........................!
real 34.31
user 24.93
sys 9.30

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/468861/ft1_filtered_4FGL_J0427.3-3900_daily_bin1269.fits', '/scratch/kocevski/468861/ft2_4FGL_J0427.3-3900_daily_bin1269.fits', expMap='/scratch/kocevski/468861/expmap_568252801_568512001_4FGL_J0427.3-3900_daily_bin1269.fits', expCube='/scratch/kocevski/468861/ltcube_568252801_568512001_4FGL_J0427.3-3900_daily_bin1269.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/468861/Model_4FGL_J0427.3-3900_daily_bin1269.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/468861/ft1_filtered_4FGL_J0427.3-3900_daily_bin1269.fits
Spacecraft file(s): /scratch/kocevski/468861/ft2_4FGL_J0427.3-3900_daily_bin1269.fits
Exposure map: /scratch/kocevski/468861/expmap_568252801_568512001_4FGL_J0427.3-3900_daily_bin1269.fits
Exposure cube: /scratch/kocevski/468861/ltcube_568252801_568512001_4FGL_J0427.3-3900_daily_bin1269.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/468861/Model_4FGL_J0427.3-3900_daily_bin1269.xml
Optimizer: MINUIT
Statistic: UNBINNED

Performing an iterative likelihood fit...

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Fixed Index): 101
logL (Fixed Index) = 624.088804951

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Fixed Index): 101
logL (Fixed Index) = 621.266816154

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    17.467       1.0000         .10000E-03   10000.    
     2 'norm      '    .10007E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    1.6912       1.0000         .10000E-03   10000.    
     4 'Prefactor '    16.757       1.0000         .10000E-03   10000.    
     5 'Prefactor '    91.997       1.0000         .10000E-03   10000.    
     6 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    .12450E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .53937E-01   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .49206E-01   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .41976E-01   1.0000         .10000E-03   10000.    
    11 'norm      '    .10069E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10540E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .40294E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    593.15       1.0000         .10000E-03   10000.    
    15 'norm      '    .10145E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10440E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    4.4518       1.0000         .10000E-03   10000.    
    18 'norm      '    .73802       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .22451       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10061E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    1.7893       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .65134E-01   1.0000         .10000E-03   10000.    
    23 'Prefactor '    1.9871       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    25 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    26 'Normalizat'    1.9623       1.0000         .10000E-01   10.000    
    27 'Prefactor '    .11528E-04   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=   621.2637     FROM MIGRAD    STATUS=CONVERGED    140 CALLS      771 TOTAL
                     EDM=   .93E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          17.463        1.0301        .50097E-07   -.29390E-05
   2  norm          .10000E-03    2.5894        .78619E-05** at limit **
   3  Prefactor     .11838E-03    389.95       -.81637E-04** at limit **
   4  Prefactor     16.756        1.0289       -.48822E-06    .79994E-04
   5  Prefactor     92.072        5.6816        .50261E-05   -.10015E-01
   6  norm          .10000E-03    .73542       -.10919E-04** at limit **
   7  norm          .10000E-03    31.178        .24534E-04** at limit **
   8  Prefactor     .10351E-03    39.400        .93126E-04** at limit **
   9  Prefactor     .12925E-03    123.92        .10682E-04** at limit **
  10  Prefactor     .10804E-03    23.979        .72241E-04** at limit **
  11  norm          .10000E-03    5.7665        .12209E-04** at limit **
  12  Prefactor     .10023E-03    50.260        .47172E-05** at limit **
  13  norm          .10030E-03    2.0363        .23527E-05** at limit **
  14  norm          593.23        6.0931        .22025E-05   -.27628E-01
  15  norm          .10000E-03    16.159       -.17843E-05** at limit **
  16  Prefactor     .10157E-03    56.959       -.10456E-03** at limit **
  17  Prefactor     4.3982        4.3469       -.17469E-04    .17257E-02
  18  norm          .31085E-03    174.64        .14283E-03** at limit **
  19  Prefactor     .10248E-03    191.83        .20519E-03** at limit **
  20  Prefactor     .10425E-03    75.192        .11311E-03** at limit **
  21  Prefactor     1.7893        1.0456         .0000         .0000    
  22  Prefactor     .20970E-03    98.696        .60793E-04** at limit **
  23  Prefactor     1.9871        1.0358         .0000         .0000    
  24  Prefactor     .10000E-03    34.747       -.36471E-04** at limit **
  25  norm          .10000E-03    9.5854       -.47556E-05** at limit **
  26  Normalizat    1.9625        .33276       -.18938E-04   -.22683E-04
  27  Prefactor     .13883E-10    6.4543        .11869E-03** at limit **
                               ERR DEF=  .500    
Final values: 
  norm       = 17.4632
  norm       = 0.0001
  Prefactor  = 0.000118375
  Prefactor  = 16.7565
  Prefactor  = 92.0725
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.000103509
  Prefactor  = 0.000129253
  Prefactor  = 0.000108038
  norm       = 0.0001
  Prefactor  = 0.000100235
  norm       = 0.000100299
  norm       = 593.226
  norm       = 0.0001
  Prefactor  = 0.000101573
  Prefactor  = 4.39824
  norm       = 0.000310855
  Prefactor  = 0.000102483
  Prefactor  = 0.000104252
  Prefactor  = 1.78927
  Prefactor  = 0.0002097
  Prefactor  = 1.98714
  Prefactor  = 0.000100001
  norm       = 0.0001
  Normalizat = 1.96247
  Prefactor  = 1.38828e-11
 **********
 **   18 **HESSE 
 **********
  MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. 

 FCN=   621.2637     FROM HESSE     STATUS=FAILED        93 CALLS      864 TOTAL
                     EDM=   .93E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          17.463        15.200        .23958E-02   -1.4872    
   2  norm          .10000E-03    2.5624        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .11838E-03    432.34        .80920E-02   -1.5707    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     16.756        48.753        .24461E-02   -1.4889    
   5  Prefactor     92.072        208.29        .10474E-02   -1.3786    
   6  norm          .10000E-03    .68255        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .10000E-03    30.994        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10351E-03    368.20        .92893E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .12925E-03    145.89        .92662E-02   -1.5709    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10804E-03    378.43        .92308E-02   -1.5709    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .10000E-03    3.3596        .18144E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10023E-03    50.435        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .10030E-03    93.072        .10630E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          593.23        852.80        .42335E-03   -1.0787    
  15  norm          .10000E-03    16.207        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10157E-03    58.292        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     4.3982        7056.9        .47712E-02   -1.5288    
  18  norm          .31085E-03    792.89        .12207E-01   -1.5711    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10248E-03    414.76        .10089E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10425E-03    77.054        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     572.55        570.60         .0000       -1.5440    
  22  Prefactor     .20970E-03    .21826        .60793E-04   -1.5706    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     1.9871        1.0358         .0000       -1.5426    
  24  Prefactor     .10000E-03    .20571       -.36471E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  norm          .10000E-03    .20571       -.47556E-05   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Normalizat    1.9625        1.0218       -.18938E-04   -.65494    
  27  Prefactor     .13883E-10    .25504        .11869E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
                               ERR DEF=  .500    
Minuit fit quality: 1   estimated distance: 9.34301e-10
Minuit parameter uncertainties:
  1  15.2033
  2  4.78433e-06
  3  0.17957
  4  48.8695
  5  209.975
  6  1.83071e-06
  7  0.000160935
  8  0.0723341
  9  0.130978
  10  0.111012
  11  8.22609e-06
  12  0.00688588
  13  0.0105758
  14  872.499
  15  3.47109e-05
  16  0.0191679
  17  1034.02
  18  0.828976
  19  0.0646349
  20  0.036249
  21  1.04563
  22  0.00978634
  23  1.0358
  24  3.37278e-05
  25  6.06047e-07
  26  1.03343
  27  3.77954e-06
Done.

MINUIT Return Code (Fixed Index): 101
logL (Fixed Index) = 621.263715686

Extracting fit parameters...

4FGL J0427.3-3900
   Spectrum: PowerLaw
266    Prefactor:  1.080e-04  1.110e-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.388e-11  3.780e-06  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.962e+00  1.033e+00  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/468861/likelihoodResults_568252801_568512001_4FGL_J0427.3-3900_daily_bin1269.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) = 621.263729171
delta logL = -1.34846842457e-05

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 621.237412237
delta logL = 0.0263034488156

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    5.0872       1.0000         .10000E-03   10000.    
     2 'Index     '    3.9681       1.0000          .0000       10.000    
     3 'Normalizat'    1.9352       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .10630E-03   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=   621.2374     FROM MIGRAD    STATUS=CONVERGED     95 CALLS      434 TOTAL
                     EDM=   .11E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     5.0782        51.850        .17826E-03    .60650E-03
   2  Index         3.9681        3.5568        .11428E-01    .12976E-03
   3  Normalizat    1.9359        .35388        .20573E-03   -.63416E-03
   4  Prefactor     .10900E-10    7.2919        .13241E-01** at limit **
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 5.0782
  Index      = 3.96807
  Normalizat = 1.93592
  Prefactor  = 1.09002e-11
 **********
 **   18 **HESSE 
 **********

 FCN=   621.2374     FROM HESSE     STATUS=OK            23 CALLS      457 TOTAL
                     EDM=   .12E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     5.0782        42.927        .35653E-04   -1.5257    
   2  Index         3.9681        3.3000        .45711E-03   -.20788    
   3  Normalizat    1.9359        .35040        .41146E-04   -.66166    
   4  Prefactor     .10900E-10    7.3024        .52964E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.15965e-08
Minuit parameter uncertainties:
  1  29.5575
  2  3.62191
  3  0.35086
  4  1.55737e-05
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/468861': 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) = 621.237401199
delta logL = 0.0263144873627

Extracting fit parameters...

4FGL J0427.3-3900
   Spectrum: PowerLaw
266    Prefactor:  5.078e+00  2.956e+01  1.000e-04  1.000e+04 ( 1.000e-12)
267        Index:  3.968e+00  3.622e+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.090e-11  1.557e-05  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.936e+00  3.509e-01  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  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/468861/cmap_HighResolution_568252801_568512001_4FGL_J0427.3-3900_daily_bin1269.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='7.28e-02', job_status='DONE', photon_flux_upper_limit='9.17e-07', time_completed='2021-08-20 16:46:47.360348', job_id='468861', GAL2='0.00', fit_tolerance='1e-08', EG2='1.94', EG='1.96', time_epoch_completed='1629503207.36', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='101', GAL='0.00', dlogl='2.63e-02', ts2='0.05', photon_index_error='0.00', photon_index='2.84' WHERE bin_id='1269' AND source_name='4FGL J0427.3-3900' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Aug 20 16:46:47 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0216>
Subject: Job 468861: <4FGL_J0427.3-3900_daily_bin1269> in cluster <slac> Done

Job <4FGL_J0427.3-3900_daily_bin1269> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Fri Aug 20 16:35:49 2021
Job was executed on host(s) <bullet0216>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Aug 20 16:35:50 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:35:50 2021
Terminated at Fri Aug 20 16:46:49 2021
Results reported at Fri Aug 20 16:46:49 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0427.3-3900_daily_bin1269 66.826 -39.0097 568252801 568512001 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 :                                   535.52 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             229.86 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   658 sec.
    Turnaround time :                            660 sec.

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

