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


Performing analysis on: 4FGL_J0427.3-3900_daily_bin561
RA = 66.826, Dec = -39.0097
tmin = 384739201, tmax = 384998401
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='464154', job_status='RUN', time_executed='2021-08-20 16:22:02.780003', time_epoch_executed='1629501722.78' WHERE source_name='4FGL J0427.3-3900' and cadence='daily' and bin_id='561'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/464154

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/464154/ft1_4FGL_J0427.3-3900_daily_bin561.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/464154/ft2_4FGL_J0427.3-3900_daily_bin561.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/464154/ft1_4FGL_J0427.3-3900_daily_bin561.fits outfile=/scratch/kocevski/464154/ft1_filteredMKT_4FGL_J0427.3-3900_daily_bin561.fits ra=66.826 dec=-39.0097 rad=12.0 tmin=384739201.0 tmax=384998401.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 8.92
user 4.32
sys 4.57

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/464154/ft1_filtered_4FGL_J0427.3-3900_daily_bin561.fits" evtable="EVENTS" scfile=/scratch/kocevski/464154/ft2_4FGL_J0427.3-3900_daily_bin561.fits sctable="SC_DATA" outfile=/scratch/kocevski/464154/ltcube_384739201_384998401_4FGL_J0427.3-3900_daily_bin561.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/464154/ft2_4FGL_J0427.3-3900_daily_bin561.fits
.....................!
real 16.54
user 11.29
sys 5.21

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/464154/ft1_filtered_4FGL_J0427.3-3900_daily_bin561.fits evtable="EVENTS" scfile=/scratch/kocevski/464154/ft2_4FGL_J0427.3-3900_daily_bin561.fits sctable="SC_DATA" expcube=/scratch/kocevski/464154/ltcube_384739201_384998401_4FGL_J0427.3-3900_daily_bin561.fits outfile=/scratch/kocevski/464154/expmap_384739201_384998401_4FGL_J0427.3-3900_daily_bin561.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/464154/ltcube_384739201_384998401_4FGL_J0427.3-3900_daily_bin561.fits
.....................!
real 197.86
user 187.56
sys 9.93

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/464154/ft1_filtered_4FGL_J0427.3-3900_daily_bin561.fits scfile=/scratch/kocevski/464154/ft2_4FGL_J0427.3-3900_daily_bin561.fits outfile=/scratch/kocevski/464154/cmap_384739201_384998401_4FGL_J0427.3-3900_daily_bin561.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 4.81
user 0.37
sys 4.41

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/464154/ft1_filtered_4FGL_J0427.3-3900_daily_bin561.fits scfile=/scratch/kocevski/464154/ft2_4FGL_J0427.3-3900_daily_bin561.fits outfile=/scratch/kocevski/464154/cmap_HighResolution_384739201_384998401_4FGL_J0427.3-3900_daily_bin561.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 4.81
user 0.38
sys 4.40

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/464154/ft1_filtered_4FGL_J0427.3-3900_daily_bin561.fits evtable="EVENTS" scfile=/scratch/kocevski/464154/ft2_4FGL_J0427.3-3900_daily_bin561.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/464154/Model_4FGL_J0427.3-3900_daily_bin561.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/464154/ft1_filtered_4FGL_J0427.3-3900_daily_bin561.fits.....................!
real 104.59
user 97.40
sys 6.90

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    3.7579       1.0000         .10000E-03   10000.    
     2 'norm      '    .80405       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    41.242       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10016E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    .55885       1.0000         .10000E-03   10000.    
     7 'norm      '    6.2660       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    7.5828       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    3.4612       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .20187E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .13266E-02   1.0000         .10000E-03   10000.    
    14 'norm      '    .14979E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    3.9881       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10151E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .11711E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    13.143       1.0000         .10000E-03   10000.    
    19 'Prefactor '    136.94       1.0000         .10000E-03   10000.    
    20 'Prefactor '    7.2522       1.0000         .10000E-03   10000.    
    21 'Prefactor '    18.556       1.0000         .10000E-03   10000.    
    22 'Prefactor '    56.252       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10065E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    3.2051       1.0000         .10000E-03   10000.    
    25 'norm      '    11.871       1.0000         .10000E-03   10000.    
    26 'Normalizat'    1.0570       1.0000         .10000E-01   10.000    
    27 'Prefactor '    1.0642       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=   4526.155     FROM MIGRAD    STATUS=CONVERGED    112 CALLS     2809 TOTAL
                     EDM=   .24E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY= 13.4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          3.7578        3.5620       -.16073E-06   -.22520E-06
   2  norm          .80398        .78072       -.16004E-06    .11370E-03
   3  Prefactor     .10000E-03    23.154        .15982E-04** at limit **
   4  Prefactor     41.236        1.2714       -.80573E-06    .11774E-03
   5  Prefactor     .10008E-03    72.014        .88782E-04** at limit **
   6  norm          .55894        .46125       -.80552E-06   -.17780E-03
   7  norm          6.2646        1.0270        .26486E-06    .37423E-04
   8  Prefactor     .10267E-03    46.385       -.17294E-04** at limit **
   9  Prefactor     7.5806        1.0333        .66591E-06    .77949E-04
  10  Prefactor     .10000E-03    18.308       -.44515E-05** at limit **
  11  norm          3.4612        1.0884        .21072E-06    .85285E-03
  12  Prefactor     .10000E-03    6.6164        .10305E-05** at limit **
  13  norm          .10426E-03    16.575        .51083E-04** at limit **
  14  norm          .10414E-03    124.04       -.14490E-03** at limit **
  15  norm          3.9912        2.1623        .76757E-06    .46848E-03
  16  Prefactor     .10000E-03    2.9745        .66079E-06** at limit **
  17  Prefactor     .10009E-03    41.328       -.31972E-04** at limit **
  18  norm          13.146        7.3873       -.52424E-05   -.23146E-03
  19  Prefactor     136.94        1.9748        .11680E-05   -.31878E-02
  20  Prefactor     7.2500        1.2431        .93492E-06    .15414E-03
  21  Prefactor     18.556        1.0370       -.48978E-06    .79399E-04
  22  Prefactor     56.250        1.1301       -.55733E-06    .63192E-03
  23  Prefactor     .10000E-03    4.0329       -.82768E-06** at limit **
  24  Prefactor     3.2047        4.8082       -.52551E-05   -.36905E-04
  25  norm          11.870        4.8254        .30939E-05    .15036E-03
  26  Normalizat    1.0571        .28488        .10405E-04   -.60938E-05
  27  Prefactor     1.0643        .29206       -.11822E-04   -.57310E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 3.7578
  norm       = 0.803979
  Prefactor  = 0.000100002
  Prefactor  = 41.2362
  Prefactor  = 0.000100077
  norm       = 0.558943
  norm       = 6.2646
  Prefactor  = 0.000102671
  Prefactor  = 7.58055
  Prefactor  = 0.0001
  norm       = 3.46125
  Prefactor  = 0.0001
  norm       = 0.000104261
  norm       = 0.000104137
  norm       = 3.99123
  Prefactor  = 0.0001
  Prefactor  = 0.000100085
  norm       = 13.146
  Prefactor  = 136.944
  Prefactor  = 7.25
  Prefactor  = 18.5556
  Prefactor  = 56.2505
  Prefactor  = 0.0001
  Prefactor  = 3.20474
  norm       = 11.8702
  Normalizat = 1.05706
  Prefactor  = 1.06435
 **********
 **   18 **HESSE 
 **********

 FCN=   4526.155     FROM HESSE     STATUS=OK           564 CALLS     3373 TOTAL
                     EDM=   .16E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          3.7578        3.5771        .52067E-02   -1.5320    
   2  norm          .80398        .75570        .12455E-01   -1.5529    
   3  Prefactor     .10000E-03    23.164        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     41.236        29.603        .15605E-02   -1.4423    
   5  Prefactor     .10008E-03    100.89        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          .55894        .51095        .88542E-02   -1.5558    
   7  norm          6.2646        10.600        .40090E-02   -1.5207    
   8  Prefactor     .10267E-03    125.16        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     7.5806        19.363        .36408E-02   -1.5157    
  10  Prefactor     .10000E-03    18.129        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          3.4612        1.1375        .54344E-02   -1.5336    
  12  Prefactor     .10000E-03    3.6232        .37390E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .10426E-03    11.816        .10282       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .10414E-03    173.04        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          3.9912        2.2343        .50490E-02   -1.5308    
  16  Prefactor     .10000E-03    2.9182        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10009E-03    41.763        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          13.146        7.5977        .27622E-02   -1.4983    
  19  Prefactor     136.94        108.32        .86047E-03   -1.3362    
  20  Prefactor     7.2500        9.2879        .37236E-02   -1.5169    
  21  Prefactor     18.556        40.091        .23244E-02   -1.4846    
  22  Prefactor     56.250        80.569        .13371E-02   -1.4207    
  23  Prefactor     .10000E-03    1.9792        .33739E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     3.2047        4.8492        .56578E-02   -1.5350    
  25  norm          11.870        4.8549        .29067E-02   -1.5019    
  26  Normalizat    1.0571        .24967        .65050E-01   -.91143    
  27  Prefactor     1.0643        .24902        .67950E-01   -.90614    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.60924e-07
Minuit parameter uncertainties:
  1  3.57726
  2  0.755706
  3  0.000409587
  4  29.6138
  5  0.00560011
  6  0.510951
  7  10.6031
  8  0.0366434
  9  19.3787
  10  8.41295e-05
  11  1.13755
  12  2.44782e-05
  13  0.0141936
  14  0.0536703
  15  2.23435
  16  5.96302e-06
  17  0.00377507
  18  7.5983
  19  108.474
  20  9.2897
  21  40.149
  22  80.7261
  23  1.63187e-05
  24  4.84983
  25  4.85502
  26  0.249949
  27  0.249292
Done.

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

Extracting fit parameters...

4FGL J0427.3-3900
   Spectrum: PowerLaw
266    Prefactor:  1.000e-04  8.413e-05  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.064e+00  2.493e-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  2.499e-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: 1.70e-07 ph cm-2 s-1
Energy Flux Upper Limit: 1.35e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/464154/likelihoodResults_384739201_384998401_4FGL_J0427.3-3900_daily_bin561.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) = 4526.15520251
delta logL = -0.000260376128608

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 4526.15494087
delta logL = 1.26903796627e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    3.4333       1.0000          .0000       10.000    
     3 'Normalizat'    1.0570       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0644       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=   4526.155     FROM MIGRAD    STATUS=CONVERGED     62 CALLS      261 TOTAL
                     EDM=   .55E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10001E-03    .50455        .60046E-01** at limit **
   2  Index         3.4555        7.0946        .50000       -.61764E-05
   3  Normalizat    1.0571        .15996E-02    .65050E-01    .13155E-03
   4  Prefactor     1.0643        .16840E-02    .67950E-01    .80850E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.00010001
  Index      = 3.45547
  Normalizat = 1.05706
  Prefactor  = 1.06435
 **********
 **   18 **HESSE 
 **********

 FCN=   4526.155     FROM HESSE     STATUS=NOT POSDEF    35 CALLS      296 TOTAL
                     EDM=   .36E-06    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10001E-03    151.66        .34950E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         3.4555        8.1609        .50000       -.31404    
   3  Normalizat    1.0571        .12629E-01    .28775E-03   -.91143    
   4  Prefactor     1.0643        .13296E-01    .30059E-03   -.90614    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 3.64358e-07
Minuit parameter uncertainties:
  1  0.00245269
  2  437.804
  3  0.0126288
  4  0.0132956
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/464154': 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) = 4526.15494084
delta logL = 1.3019916878e-06

Extracting fit parameters...

4FGL J0427.3-3900
   Spectrum: PowerLaw
266    Prefactor:  1.000e-04  2.453e-03  1.000e-04  1.000e+04 ( 1.000e-12)
267        Index:  3.455e+00  4.378e+02  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.064e+00  1.330e-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  1.263e-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  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/464154/cmap_HighResolution_384739201_384998401_4FGL_J0427.3-3900_daily_bin561.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.35e-02', job_status='DONE', photon_flux_upper_limit='1.70e-07', time_completed='2021-08-20 16:34:25.205729', job_id='464154', GAL2='1.06', fit_tolerance='1e-08', EG2='1.06', EG='1.06', time_epoch_completed='1629502465.21', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.06', dlogl='1.30e-06', ts2='-0.00', photon_index_error='0.00', photon_index='2.84' WHERE bin_id='561' AND source_name='4FGL J0427.3-3900' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Aug 20 16:34:25 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0116>
Subject: Job 464154: <4FGL_J0427.3-3900_daily_bin561> in cluster <slac> Done

Job <4FGL_J0427.3-3900_daily_bin561> was submitted from host <rhel6-64a> by user <kocevski> in cluster <slac> at Fri Aug 20 16:20:42 2021
Job was executed on host(s) <bullet0116>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Aug 20 16:20:43 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:20:43 2021
Terminated at Fri Aug 20 16:34:26 2021
Results reported at Fri Aug 20 16:34:26 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0427.3-3900_daily_bin561 66.826 -39.0097 384739201 384998401 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 :                                   809.43 sec.
    Max Memory :                                 1095 MB
    Average Memory :                             308.84 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   822 sec.
    Turnaround time :                            824 sec.

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

