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


Performing analysis on: 4FGL_J0401.9-2034_daily_bin326
RA = 60.4867, Dec = -20.5804
tmin = 323827201, tmax = 324086401
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='160159', job_status='RUN', time_executed='2021-08-19 23:23:04.450496', time_epoch_executed='1629440584.45' WHERE source_name='4FGL J0401.9-2034' and cadence='daily' and bin_id='326'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/160159

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/160159/ft1_4FGL_J0401.9-2034_daily_bin326.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/160159/ft2_4FGL_J0401.9-2034_daily_bin326.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/160159/ft1_4FGL_J0401.9-2034_daily_bin326.fits outfile=/scratch/kocevski/160159/ft1_filteredMKT_4FGL_J0401.9-2034_daily_bin326.fits ra=60.4867 dec=-20.5804 rad=12.0 tmin=323827201.0 tmax=324086401.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 11.70
user 3.15
sys 8.47

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/160159/ft2_4FGL_J0401.9-2034_daily_bin326.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/160159/ft2_4FGL_J0401.9-2034_daily_bin326.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/160159/ft1_filteredMKT_4FGL_J0401.9-2034_daily_bin326.fits evtable="EVENTS" outfile="/scratch/kocevski/160159/ft1_filtered_4FGL_J0401.9-2034_daily_bin326.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.72
user 0.32
sys 9.35

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/160159/ft1_filtered_4FGL_J0401.9-2034_daily_bin326.fits" evtable="EVENTS" scfile=/scratch/kocevski/160159/ft2_4FGL_J0401.9-2034_daily_bin326.fits sctable="SC_DATA" outfile=/scratch/kocevski/160159/ltcube_323827201_324086401_4FGL_J0401.9-2034_daily_bin326.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/160159/ft2_4FGL_J0401.9-2034_daily_bin326.fits
.....................!
real 22.28
user 11.78
sys 10.43

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/160159/ft1_filtered_4FGL_J0401.9-2034_daily_bin326.fits evtable="EVENTS" scfile=/scratch/kocevski/160159/ft2_4FGL_J0401.9-2034_daily_bin326.fits sctable="SC_DATA" expcube=/scratch/kocevski/160159/ltcube_323827201_324086401_4FGL_J0401.9-2034_daily_bin326.fits outfile=/scratch/kocevski/160159/expmap_323827201_324086401_4FGL_J0401.9-2034_daily_bin326.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/160159/ltcube_323827201_324086401_4FGL_J0401.9-2034_daily_bin326.fits
.....................!
real 204.46
user 186.82
sys 17.21

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 146 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 J0401.9-2034 @ 60.4867 -20.5804

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/160159/ft1_filtered_4FGL_J0401.9-2034_daily_bin326.fits scfile=/scratch/kocevski/160159/ft2_4FGL_J0401.9-2034_daily_bin326.fits outfile=/scratch/kocevski/160159/cmap_323827201_324086401_4FGL_J0401.9-2034_daily_bin326.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=60.4867 yref=-20.5804 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.54
user 0.38
sys 9.13

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/160159/ft1_filtered_4FGL_J0401.9-2034_daily_bin326.fits scfile=/scratch/kocevski/160159/ft2_4FGL_J0401.9-2034_daily_bin326.fits outfile=/scratch/kocevski/160159/cmap_HighResolution_323827201_324086401_4FGL_J0401.9-2034_daily_bin326.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=60.4867 yref=-20.5804 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 10.50
user 0.37
sys 10.09

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/160159/ft1_filtered_4FGL_J0401.9-2034_daily_bin326.fits evtable="EVENTS" scfile=/scratch/kocevski/160159/ft2_4FGL_J0401.9-2034_daily_bin326.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/160159/Model_4FGL_J0401.9-2034_daily_bin326.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/160159/ft1_filtered_4FGL_J0401.9-2034_daily_bin326.fits.....................!
real 118.74
user 105.25
sys 13.13

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/160159/ft1_filtered_4FGL_J0401.9-2034_daily_bin326.fits', '/scratch/kocevski/160159/ft2_4FGL_J0401.9-2034_daily_bin326.fits', expMap='/scratch/kocevski/160159/expmap_323827201_324086401_4FGL_J0401.9-2034_daily_bin326.fits', expCube='/scratch/kocevski/160159/ltcube_323827201_324086401_4FGL_J0401.9-2034_daily_bin326.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/160159/Model_4FGL_J0401.9-2034_daily_bin326.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J0401.9-2034'

4FGL J0401.9-2034
   Spectrum: PowerLaw
250    Prefactor:  1.016e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-12)
251        Index:  2.309e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
252        Scale:  9.282e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/160159/ft1_filtered_4FGL_J0401.9-2034_daily_bin326.fits
Spacecraft file(s): /scratch/kocevski/160159/ft2_4FGL_J0401.9-2034_daily_bin326.fits
Exposure map: /scratch/kocevski/160159/expmap_323827201_324086401_4FGL_J0401.9-2034_daily_bin326.fits
Exposure cube: /scratch/kocevski/160159/ltcube_323827201_324086401_4FGL_J0401.9-2034_daily_bin326.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/160159/Model_4FGL_J0401.9-2034_daily_bin326.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) = 4544.73365281

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    12.984       1.0000         .10000E-03   10000.    
     4 'Prefactor '    13.476       1.0000         .10000E-03   10000.    
     5 'Prefactor '    65.486       1.0000         .10000E-03   10000.    
     6 'Prefactor '    30.155       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .11648       1.0000         .10000E-03   10000.    
     8 'Prefactor '    10.077       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10126E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    .10028E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    7.0496       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    6.5968       1.0000         .10000E-03   10000.    
    18 'Prefactor '    8.9537       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    23.091       1.0000         .10000E-03   10000.    
    23 'Normalizat'    1.1831       1.0000         .10000E-01   10.000    
    24 'Prefactor '    .73556       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .4710E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   4544.730     FROM MIGRAD    STATUS=CONVERGED    546 CALLS     2742 TOTAL
                     EDM=   .69E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    93.583        .38012E-05** at limit **
   2  Prefactor     .10000E-03    1.8109        .16595E-07** at limit **
   3  Prefactor     12.982        23.781        .11400E-04    .43166E-04
   4  Prefactor     13.478        16.280       -.84850E-06   -.56386E-05
   5  Prefactor     65.488        66.522        .17877E-05   -.50065E-05
   6  Prefactor     30.099        57.984       -.77215E-04    .82635E-05
   7  Prefactor     .12241        1.4802       -.38512E-06    .41007E-03
   8  Prefactor     10.076        5.5720        .11534E-05   -.90247E-04
   9  Prefactor     .10000E-03    1.3728       -.52501E-07** at limit **
  10  norm          .10000E-03    .27932       -.54096E-07** at limit **
  11  Prefactor     .10000E-03    18.867        .17454E-06** at limit **
  12  norm          .10000E-03    .83128        .20432E-06** at limit **
  13  Prefactor     7.0472        32.820        .21414E-05   -.19603E-05
  14  Prefactor     .10000E-03    1.3829        .33442E-07** at limit **
  15  norm          .10000E-03    3.6180       -.23312E-07** at limit **
  16  Prefactor     .10000E-03    14.782       -.16230E-06** at limit **
  17  Prefactor     6.5976        8.4158       -.63822E-06   -.11797E-03
  18  Prefactor     8.9542        5.9317       -.88940E-06   -.15916E-03
  19  Prefactor     .10000E-03    7.9576       -.38394E-06** at limit **
  20  Prefactor     .10000E-03    11.876        .37108E-06** at limit **
  21  Prefactor     .10000E-03    2.6902       -.25104E-07** at limit **
  22  Prefactor     23.093        41.261        .21726E-05   -.32619E-05
  23  Normalizat    1.1832        .21464       -.35791E-05    .28347E-03
  24  Prefactor     .73538        .16453        .78679E-05   -.27587E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 12.9822
  Prefactor  = 13.4784
  Prefactor  = 65.488
  Prefactor  = 30.0994
  Prefactor  = 0.122412
  Prefactor  = 10.0757
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.000100001
  norm       = 0.0001
  Prefactor  = 7.04723
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 6.59763
  Prefactor  = 8.95425
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 23.0935
  Normalizat = 1.18323
  Prefactor  = 0.73538
 **********
 **   18 **HESSE 
 **********

 FCN=   4544.730     FROM HESSE     STATUS=OK           395 CALLS     3137 TOTAL
                     EDM=   .25E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    93.585        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    1.8127        .88548E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     12.982        23.854        .11116E-03   -1.4987    
   4  Prefactor     13.478        16.282        .10911E-03   -1.4974    
   5  Prefactor     65.488        66.706        .49594E-04   -1.4088    
   6  Prefactor     30.099        57.989        .72962E-04   -1.4610    
   7  Prefactor     .12241        7.0172        .15421E-02   -1.5638    
   8  Prefactor     10.076        5.6089        .11006E-03   -1.5073    
   9  Prefactor     .10000E-03    1.3751        .77071E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          .10000E-03    .28438        .34730E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    18.893        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          .10000E-03    1.2923        .11785E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     7.0472        33.192        .15109E-03   -1.5177    
  14  Prefactor     .10000E-03    1.3967        .77348E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .10000E-03    3.6184        .12524E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    14.810        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     6.5976        8.4108        .15624E-03   -1.5194    
  18  Prefactor     8.9542        5.9477        .12608E-03   -1.5109    
  19  Prefactor     .10000E-03    7.9741        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    11.897        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    2.6953        .10799E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     23.093        41.277        .83357E-04   -1.4746    
  23  Normalizat    1.1832        .25243        .23870E-03   -.87122    
  24  Prefactor     .73538        .19042        .24052E-03   -1.0216    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.53025e-09
Minuit parameter uncertainties:
  1  5.39375e-05
  2  2.66976e-06
  3  23.8714
  4  16.2869
  5  66.7827
  6  58.098
  7  1.85311
  8  5.60915
  9  6.21404e-06
  10  2.71444e-06
  11  0.000222863
  12  2.36641e-05
  13  30.6159
  14  3.85644e-06
  15  2.82749e-06
  16  2.63605e-05
  17  8.41229
  18  5.94808
  19  1.29455e-05
  20  2.20345e-05
  21  4.92284e-06
  22  41.3283
  23  0.25269
  24  0.190586
Done.

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

Extracting fit parameters...

4FGL J0401.9-2034
   Spectrum: PowerLaw
250    Prefactor:  1.000e-04  3.856e-06  1.000e-04  1.000e+04 ( 1.000e-12)
251        Index:  2.309e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
252        Scale:  9.282e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
468    Prefactor:  7.354e-01  1.906e-01  0.000e+00  1.000e+01 ( 1.000e+00)
469        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
470        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
464   Normalization:  1.183e+00  2.527e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 60.487 -20.580
Photon Flux Upper Limit: 7.77e-08 ph cm-2 s-1
Energy Flux Upper Limit: 5.97e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/160159/likelihoodResults_323827201_324086401_4FGL_J0401.9-2034_daily_bin326.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) = 4544.73288022
delta logL = -0.00337537668565

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4544.7295049
delta logL = -5.83831933909e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.3159       1.0000          .0000       10.000    
     3 'Normalizat'    1.1832       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .73542       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .4710E+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=   4544.730     FROM MIGRAD    STATUS=CONVERGED     87 CALLS      238 TOTAL
                     EDM=   .54E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    1.7470        .77463E-03** at limit **
   2  Index         2.3227        6.1460        .50000       -.40738E-04
   3  Normalizat    1.1832        .22243        .23870E-03   -.88150E-04
   4  Prefactor     .73539        .18190        .24052E-03   -.68916E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100002
  Index      = 2.32269
  Normalizat = 1.18323
  Prefactor  = 0.735387
 **********
 **   18 **HESSE 
 **********

 FCN=   4544.730     FROM HESSE     STATUS=OK            29 CALLS      267 TOTAL
                     EDM=   .33E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    1.4135        .15493E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.3227        6.1613        .50000       -.56506    
   3  Normalizat    1.1832        .22259        .47740E-04   -.87123    
   4  Prefactor     .73539        .18204        .96207E-05   -1.0216    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.34412e-09
Minuit parameter uncertainties:
  1  0.000103943
  2  4.24159
  3  0.222768
  4  0.182185
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/160159': 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) = 4544.72950471
delta logL = 1.2791770132e-07

Extracting fit parameters...

4FGL J0401.9-2034
   Spectrum: PowerLaw
250    Prefactor:  1.000e-04  1.039e-04  1.000e-04  1.000e+04 ( 1.000e-12)
251        Index:  2.323e+00  4.242e+00  0.000e+00  1.000e+01 (-1.000e+00)
252        Scale:  9.282e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
468    Prefactor:  7.354e-01  1.822e-01  0.000e+00  1.000e+01 ( 1.000e+00)
469        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
470        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
464   Normalization:  1.183e+00  2.228e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 60.487 -20.580

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/160159/cmap_HighResolution_323827201_324086401_4FGL_J0401.9-2034_daily_bin326.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.97e-03', job_status='DONE', photon_flux_upper_limit='7.77e-08', time_completed='2021-08-19 23:35:09.974221', job_id='160159', GAL2='0.74', fit_tolerance='1e-08', EG2='1.18', EG='1.18', time_epoch_completed='1629441309.97', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.74', dlogl='1.28e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.31' WHERE bin_id='326' AND source_name='4FGL J0401.9-2034' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Aug 19 23:35:10 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0251>
Subject: Job 160159: <4FGL_J0401.9-2034_daily_bin326> in cluster <slac> Done

Job <4FGL_J0401.9-2034_daily_bin326> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Thu Aug 19 23:20:20 2021
Job was executed on host(s) <bullet0251>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Aug 19 23:20:22 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Thu Aug 19 23:20:22 2021
Terminated at Thu Aug 19 23:35:14 2021
Results reported at Thu Aug 19 23:35:14 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0401.9-2034_daily_bin326 60.4867 -20.5804 323827201 324086401 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J0401.9-2034 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   865.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             254.25 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              7
    Max Threads :                                21
    Run time :                                   889 sec.
    Turnaround time :                            894 sec.

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

