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


Performing analysis on: 4FGL_J0407.0-3826_daily_bin1024
RA = 61.7627, Dec = -38.4394
tmin = 504748801, tmax = 505008001
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='261672', job_status='RUN', time_executed='2021-08-20 05:18:29.938596', time_epoch_executed='1629461909.94' WHERE source_name='4FGL J0407.0-3826' and cadence='daily' and bin_id='1024'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/261672

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/261672/ft1_4FGL_J0407.0-3826_daily_bin1024.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/261672/ft2_4FGL_J0407.0-3826_daily_bin1024.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/261672/ft1_4FGL_J0407.0-3826_daily_bin1024.fits outfile=/scratch/kocevski/261672/ft1_filteredMKT_4FGL_J0407.0-3826_daily_bin1024.fits ra=61.7627 dec=-38.4394 rad=12.0 tmin=504748801.0 tmax=505008001.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 18.09
user 8.22
sys 9.80

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/261672/ft2_4FGL_J0407.0-3826_daily_bin1024.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/261672/ft2_4FGL_J0407.0-3826_daily_bin1024.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/261672/ft1_filteredMKT_4FGL_J0407.0-3826_daily_bin1024.fits evtable="EVENTS" outfile="/scratch/kocevski/261672/ft1_filtered_4FGL_J0407.0-3826_daily_bin1024.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 9.43
user 0.35
sys 9.05

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/261672/ft1_filtered_4FGL_J0407.0-3826_daily_bin1024.fits" evtable="EVENTS" scfile=/scratch/kocevski/261672/ft2_4FGL_J0407.0-3826_daily_bin1024.fits sctable="SC_DATA" outfile=/scratch/kocevski/261672/ltcube_504748801_505008001_4FGL_J0407.0-3826_daily_bin1024.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/261672/ft2_4FGL_J0407.0-3826_daily_bin1024.fits
.....................!
real 22.86
user 12.38
sys 10.41

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/261672/ft1_filtered_4FGL_J0407.0-3826_daily_bin1024.fits evtable="EVENTS" scfile=/scratch/kocevski/261672/ft2_4FGL_J0407.0-3826_daily_bin1024.fits sctable="SC_DATA" expcube=/scratch/kocevski/261672/ltcube_504748801_505008001_4FGL_J0407.0-3826_daily_bin1024.fits outfile=/scratch/kocevski/261672/expmap_504748801_505008001_4FGL_J0407.0-3826_daily_bin1024.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/261672/ltcube_504748801_505008001_4FGL_J0407.0-3826_daily_bin1024.fits
.....................!
real 202.29
user 186.12
sys 15.78

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 179 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 J0407.0-3826 @ 61.7627 -38.4394

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/261672/ft1_filtered_4FGL_J0407.0-3826_daily_bin1024.fits scfile=/scratch/kocevski/261672/ft2_4FGL_J0407.0-3826_daily_bin1024.fits outfile=/scratch/kocevski/261672/cmap_504748801_505008001_4FGL_J0407.0-3826_daily_bin1024.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=61.7627 yref=-38.4394 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 9.31
user 0.38
sys 8.88

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/261672/ft1_filtered_4FGL_J0407.0-3826_daily_bin1024.fits scfile=/scratch/kocevski/261672/ft2_4FGL_J0407.0-3826_daily_bin1024.fits outfile=/scratch/kocevski/261672/cmap_HighResolution_504748801_505008001_4FGL_J0407.0-3826_daily_bin1024.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=61.7627 yref=-38.4394 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 9.36
user 0.39
sys 8.94

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/261672/ft1_filtered_4FGL_J0407.0-3826_daily_bin1024.fits evtable="EVENTS" scfile=/scratch/kocevski/261672/ft2_4FGL_J0407.0-3826_daily_bin1024.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/261672/Model_4FGL_J0407.0-3826_daily_bin1024.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/261672/ft1_filtered_4FGL_J0407.0-3826_daily_bin1024.fits......................!
real 58.90
user 45.84
sys 12.91

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/261672/ft1_filtered_4FGL_J0407.0-3826_daily_bin1024.fits', '/scratch/kocevski/261672/ft2_4FGL_J0407.0-3826_daily_bin1024.fits', expMap='/scratch/kocevski/261672/expmap_504748801_505008001_4FGL_J0407.0-3826_daily_bin1024.fits', expCube='/scratch/kocevski/261672/ltcube_504748801_505008001_4FGL_J0407.0-3826_daily_bin1024.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/261672/Model_4FGL_J0407.0-3826_daily_bin1024.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J0407.0-3826'

4FGL J0407.0-3826
   Spectrum: LogParabola
280         norm:  8.651e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-12)
281        alpha:  2.246e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
282         beta:  1.120e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
283           Eb:  6.315e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/261672/ft1_filtered_4FGL_J0407.0-3826_daily_bin1024.fits
Spacecraft file(s): /scratch/kocevski/261672/ft2_4FGL_J0407.0-3826_daily_bin1024.fits
Exposure map: /scratch/kocevski/261672/expmap_504748801_505008001_4FGL_J0407.0-3826_daily_bin1024.fits
Exposure cube: /scratch/kocevski/261672/ltcube_504748801_505008001_4FGL_J0407.0-3826_daily_bin1024.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/261672/Model_4FGL_J0407.0-3826_daily_bin1024.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) = 1782.37425755

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    63.778       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10268E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10017E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    .10008E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    2.0656       1.0000         .10000E-03   10000.    
     6 'Prefactor '    14.978       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10268E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10145E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    1.1767       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .24520E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    .55725       1.0000         .10000E-03   10000.    
    12 'norm      '    .10347E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10172E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    66.710       1.0000         .10000E-03   10000.    
    15 'Prefactor '    57.662       1.0000         .10000E-03   10000.    
    16 'norm      '    4.2608       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    36.513       1.0000         .10000E-03   10000.    
    19 'norm      '    15.560       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .11725E-01   1.0000         .10000E-03   10000.    
    21 'Prefactor '    3.4984       1.0000         .10000E-03   10000.    
    22 'norm      '    .10030E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    143.20       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10252E-03   1.0000         .10000E-03   10000.    
    25 'Normalizat'    .79578       1.0000         .10000E-01   10.000    
    26 'Prefactor '    .62044       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5790E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   1782.340     FROM MIGRAD    STATUS=CONVERGED    627 CALLS     3181 TOTAL
                     EDM=   .14E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  6.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     63.760        56.469       -.12476E-06    .11273E-04
   2  Prefactor     .10002E-03    36.878        .44567E-05** at limit **
   3  Prefactor     .10000E-03    67.019       -.57128E-06** at limit **
   4  norm          .10000E-03    2.8839       -.11527E-06** at limit **
   5  norm          2.0655        2.0490        .16237E-06    .75519E-03
   6  Prefactor     14.819        239.62       -.75482E-05   -.25991E-04
   7  Prefactor     .10000E-03    67.132       -.54241E-07** at limit **
   8  Prefactor     .10000E-03    24.789       -.11678E-05** at limit **
   9  norm          1.1766        1.3614       -.17945E-07    .90879E-04
  10  Prefactor     .10001E-03    281.29       -.42264E-05** at limit **
  11  norm          .55709        .65846       -.12396E-06   -.76127E-03
  12  norm          .10000E-03    6.8179       -.35183E-06** at limit **
  13  Prefactor     .10000E-03    30.958       -.65360E-06** at limit **
  14  Prefactor     66.726        47.894        .40473E-06    .77426E-04
  15  Prefactor     57.656        29.792        .10899E-06    .80425E-04
  16  norm          4.2608        1.8329       -.19156E-07    .24103E-03
  17  Prefactor     .10000E-03    2.4674        .31631E-06** at limit **
  18  norm          36.540        26.675       -.70422E-07    .91108E-04
  19  norm          15.576        5.6400        .54264E-07    .43942E-03
  20  Prefactor     .10002E-03    55.905       -.19031E-04** at limit **
  21  Prefactor     3.5724        59.306       -.38554E-05   -.76008E-04
  22  norm          .10001E-03    11.037        .18921E-05** at limit **
  23  Prefactor     143.13        142.68       -.95491E-06    .39916E-05
  24  Prefactor     .10000E-03    55.709       -.61927E-06** at limit **
  25  Normalizat    .79576        .37857       -.22196E-05    .29805E-03
  26  Prefactor     .62068        .37524        .47939E-05    .11343E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 63.7598
  Prefactor  = 0.00010002
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 2.06553
  Prefactor  = 14.8195
  Prefactor  = 0.0001
  Prefactor  = 0.000100002
  norm       = 1.17658
  Prefactor  = 0.00010001
  norm       = 0.557095
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 66.7264
  Prefactor  = 57.6561
  norm       = 4.2608
  Prefactor  = 0.0001
  norm       = 36.5401
  norm       = 15.5761
  Prefactor  = 0.00010002
  Prefactor  = 3.57241
  norm       = 0.000100005
  Prefactor  = 143.132
  Prefactor  = 0.0001
  Normalizat = 0.795758
  Prefactor  = 0.620683
 **********
 **   18 **HESSE 
 **********

 FCN=   1782.340     FROM HESSE     STATUS=OK           444 CALLS     3625 TOTAL
                     EDM=   .30E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     63.760        56.502        .50249E-04   -1.4109    
   2  Prefactor     .10002E-03    38.210        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    67.096        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          .10000E-03    2.8874        .70020E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          2.0655        2.0395        .56498E-04   -1.5421    
   6  Prefactor     14.819        245.04        .10349E-03   -1.4938    
   7  Prefactor     .10000E-03    67.153        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    25.060        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          1.1766        1.3492        .51431E-04   -1.5491    
  10  Prefactor     .10001E-03    282.63        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .55709        .64229        .34458E-03   -1.5559    
  12  norm          .10000E-03    6.8287        .10771E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    30.988        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     66.726        47.767        .49139E-04   -1.4072    
  15  Prefactor     57.656        29.840        .52831E-04   -1.4188    
  16  norm          4.2608        1.8353        .33195E-04   -1.5295    
  17  Prefactor     .10000E-03    2.4902        .64902E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          36.540        26.670        .66324E-04   -1.4498    
  19  norm          15.576        5.6386        .55400E-04   -1.4918    
  20  Prefactor     .10002E-03    56.597        .16948E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     3.5724        60.699        .21616E-03   -1.5330    
  22  norm          .10001E-03    11.413        .13882E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     143.13        142.79        .16834E-03   -1.3309    
  24  Prefactor     .10000E-03    55.713        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Normalizat    .79576        .38768        .26034E-03   -1.0023    
  26  Prefactor     .62068        .37912        .30979E-03   -1.0672    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.01733e-09
Minuit parameter uncertainties:
  1  56.5494
  2  0.00176059
  3  0.000307853
  4  1.12309e-05
  5  2.03961
  6  121.109
  7  8.26624e-05
  8  0.000422487
  9  1.34922
  10  0.0033104
  11  0.642302
  12  5.64527e-05
  13  0.000173605
  14  47.7945
  15  29.8475
  16  1.83529
  17  4.32829e-05
  18  26.6791
  19  5.63879
  20  0.00215191
  21  29.4859
  22  0.000477913
  23  143.133
  24  0.000162554
  25  0.389039
  26  0.380696
Done.

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

Extracting fit parameters...

4FGL J0407.0-3826
   Spectrum: LogParabola
280         norm:  1.000e-04  5.645e-05  1.000e-04  1.000e+04 ( 1.000e-12)
281        alpha:  2.246e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
282         beta:  1.120e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
283           Eb:  6.315e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
576    Prefactor:  6.207e-01  3.807e-01  0.000e+00  1.000e+01 ( 1.000e+00)
577        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
578        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
572   Normalization:  7.958e-01  3.890e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 61.763 -38.439
Photon Flux Upper Limit: 1.41e-07 ph cm-2 s-1
Energy Flux Upper Limit: 5.19e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/261672/likelihoodResults_504748801_505008001_4FGL_J0407.0-3826_daily_bin1024.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) = 1782.34033512
delta logL = -0.000682541716742

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 1782.33965257
delta logL = 9.72499947238e-09

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    2.2520       1.0000          .0000       5.0000    
     3 'Normalizat'    .79575       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .62069       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5790E+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=   1782.147     FROM MIGRAD    STATUS=CONVERGED    150 CALLS      295 TOTAL
                     EDM=   .81E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .41634        53.260        .97653E-02   -.70186E-03
   2  alpha         5.0000        2.5157        .50000    ** at limit **
   3  Normalizat    .71779        .26049        .26032E-02   -.55945E-04
   4  Prefactor     .67454        .18309        .30980E-02   -.14865E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.41634
  alpha      = 5
  Normalizat = 0.717785
  Prefactor  = 0.67454
 **********
 **   18 **HESSE 
 **********

 FCN=   1782.147     FROM HESSE     STATUS=OK            27 CALLS      322 TOTAL
                     EDM=   .50E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .41634        .72208        .43850E-04   -1.5579    
   2  alpha         5.0000        3.8408        .57901E-01    7.8540    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Normalizat    .71779        .36961        .10413E-03   -1.0320    
   4  Prefactor     .67454        .38435        .12392E-03   -1.0453    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.98427e-10
Minuit parameter uncertainties:
  1  0.722093
  2  4.95811e-06
  3  0.370906
  4  0.385867
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/261672': 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) = 1782.14714541
delta logL = 0.192507173786

Extracting fit parameters...

4FGL J0407.0-3826
   Spectrum: LogParabola
280         norm:  4.163e-01  7.221e-01  1.000e-04  1.000e+04 ( 1.000e-12)
281        alpha:  5.000e+00  4.958e-06  0.000e+00  5.000e+00 ( 1.000e+00)
282         beta:  1.120e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
283           Eb:  6.315e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
576    Prefactor:  6.745e-01  3.859e-01  0.000e+00  1.000e+01 ( 1.000e+00)
577        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
578        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
572   Normalization:  7.178e-01  3.709e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 61.763 -38.439

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/261672/cmap_HighResolution_504748801_505008001_4FGL_J0407.0-3826_daily_bin1024.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.19e-05', job_status='DONE', photon_flux_upper_limit='1.41e-07', time_completed='2021-08-20 05:29:00.047445', job_id='261672', GAL2='0.67', fit_tolerance='1e-08', EG2='0.72', EG='0.80', time_epoch_completed='1629462540.05', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.62', dlogl='1.93e-01', ts2='0.42', photon_index_error='0.00', photon_index='2.25' WHERE bin_id='1024' AND source_name='4FGL J0407.0-3826' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Aug 20 05:29:00 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0260>
Subject: Job 261672: <4FGL_J0407.0-3826_daily_bin1024> in cluster <slac> Done

Job <4FGL_J0407.0-3826_daily_bin1024> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Fri Aug 20 05:15:20 2021
Job was executed on host(s) <bullet0260>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Aug 20 05:15:22 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Fri Aug 20 05:15:22 2021
Terminated at Fri Aug 20 05:29:02 2021
Results reported at Fri Aug 20 05:29:02 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0407.0-3826_daily_bin1024 61.7627 -38.4394 504748801 505008001 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J0407.0-3826 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   763.07 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             248.31 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   820 sec.
    Turnaround time :                            822 sec.

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

