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


Performing analysis on: 4FGL_J0401.9-2034_daily_bin1324
RA = 60.4867, Dec = -20.5804
tmin = 582508801, tmax = 582768001
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='164609', job_status='RUN', time_executed='2021-08-19 23:38:11.052893', time_epoch_executed='1629441491.05' WHERE source_name='4FGL J0401.9-2034' and cadence='daily' and bin_id='1324'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/164609

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/164609/ft1_4FGL_J0401.9-2034_daily_bin1324.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/164609/ft2_4FGL_J0401.9-2034_daily_bin1324.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/164609/ft1_4FGL_J0401.9-2034_daily_bin1324.fits outfile=/scratch/kocevski/164609/ft1_filteredMKT_4FGL_J0401.9-2034_daily_bin1324.fits ra=60.4867 dec=-20.5804 rad=12.0 tmin=582508801.0 tmax=582768001.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 7.59
user 3.43
sys 4.11

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/164609/ft2_4FGL_J0401.9-2034_daily_bin1324.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/164609/ft1_filteredMKT_4FGL_J0401.9-2034_daily_bin1324.fits evtable="EVENTS" outfile="/scratch/kocevski/164609/ft1_filtered_4FGL_J0401.9-2034_daily_bin1324.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.38
user 0.33
sys 4.02

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/164609/ft1_filtered_4FGL_J0401.9-2034_daily_bin1324.fits" evtable="EVENTS" scfile=/scratch/kocevski/164609/ft2_4FGL_J0401.9-2034_daily_bin1324.fits sctable="SC_DATA" outfile=/scratch/kocevski/164609/ltcube_582508801_582768001_4FGL_J0401.9-2034_daily_bin1324.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/164609/ft2_4FGL_J0401.9-2034_daily_bin1324.fits
.....................!
real 16.92
user 11.74
sys 5.12

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/164609/ft1_filtered_4FGL_J0401.9-2034_daily_bin1324.fits evtable="EVENTS" scfile=/scratch/kocevski/164609/ft2_4FGL_J0401.9-2034_daily_bin1324.fits sctable="SC_DATA" expcube=/scratch/kocevski/164609/ltcube_582508801_582768001_4FGL_J0401.9-2034_daily_bin1324.fits outfile=/scratch/kocevski/164609/expmap_582508801_582768001_4FGL_J0401.9-2034_daily_bin1324.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/164609/ltcube_582508801_582768001_4FGL_J0401.9-2034_daily_bin1324.fits
.....................!
real 195.06
user 185.21
sys 9.46

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/164609/ft1_filtered_4FGL_J0401.9-2034_daily_bin1324.fits scfile=/scratch/kocevski/164609/ft2_4FGL_J0401.9-2034_daily_bin1324.fits outfile=/scratch/kocevski/164609/cmap_582508801_582768001_4FGL_J0401.9-2034_daily_bin1324.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 4.36
user 0.37
sys 3.97

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/164609/ft1_filtered_4FGL_J0401.9-2034_daily_bin1324.fits scfile=/scratch/kocevski/164609/ft2_4FGL_J0401.9-2034_daily_bin1324.fits outfile=/scratch/kocevski/164609/cmap_HighResolution_582508801_582768001_4FGL_J0401.9-2034_daily_bin1324.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 4.35
user 0.39
sys 3.95

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/164609/ft1_filtered_4FGL_J0401.9-2034_daily_bin1324.fits evtable="EVENTS" scfile=/scratch/kocevski/164609/ft2_4FGL_J0401.9-2034_daily_bin1324.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/164609/Model_4FGL_J0401.9-2034_daily_bin1324.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/164609/ft1_filtered_4FGL_J0401.9-2034_daily_bin1324.fits.....................!
real 155.82
user 149.28
sys 6.25

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/164609/ft1_filtered_4FGL_J0401.9-2034_daily_bin1324.fits', '/scratch/kocevski/164609/ft2_4FGL_J0401.9-2034_daily_bin1324.fits', expMap='/scratch/kocevski/164609/expmap_582508801_582768001_4FGL_J0401.9-2034_daily_bin1324.fits', expCube='/scratch/kocevski/164609/ltcube_582508801_582768001_4FGL_J0401.9-2034_daily_bin1324.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/164609/Model_4FGL_J0401.9-2034_daily_bin1324.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/164609/ft1_filtered_4FGL_J0401.9-2034_daily_bin1324.fits
Spacecraft file(s): /scratch/kocevski/164609/ft2_4FGL_J0401.9-2034_daily_bin1324.fits
Exposure map: /scratch/kocevski/164609/expmap_582508801_582768001_4FGL_J0401.9-2034_daily_bin1324.fits
Exposure cube: /scratch/kocevski/164609/ltcube_582508801_582768001_4FGL_J0401.9-2034_daily_bin1324.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/164609/Model_4FGL_J0401.9-2034_daily_bin1324.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) = 6313.05206633

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10586E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10035E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10036E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .15102E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10015E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    11.541       1.0000         .10000E-03   10000.    
     7 'Prefactor '    4.9674       1.0000         .10000E-03   10000.    
     8 'Prefactor '    4.2422       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    23.119       1.0000         .10000E-03   10000.    
    11 'Prefactor '    28.774       1.0000         .10000E-03   10000.    
    12 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    40.495       1.0000         .10000E-03   10000.    
    14 'Prefactor '    5.8218       1.0000         .10000E-03   10000.    
    15 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    10.126       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10054E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .11316E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    6.2241       1.0000         .10000E-03   10000.    
    21 'Prefactor '    4.4904       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    23 'Normalizat'    .93611       1.0000         .10000E-01   10.000    
    24 'Prefactor '    .76272       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=   6313.032     FROM MIGRAD    STATUS=CONVERGED    581 CALLS     2854 TOTAL
                     EDM=   .92E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  8.4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10006E-03    139.80        .13385E-04** at limit **
   2  Prefactor     .10000E-03    2.1043        .32230E-06** at limit **
   3  Prefactor     .10000E-03    22.627        .76389E-06** at limit **
   4  Prefactor     .10000E-03    113.70        .30918E-04** at limit **
   5  Prefactor     .10000E-03    16.938        .10260E-05** at limit **
   6  Prefactor     11.545        42.016       -.91766E-06   -.68429E-05
   7  Prefactor     4.9687        2.7809       -.40179E-06   -.15702E-02
   8  Prefactor     4.2426        5.9581       -.21102E-05   -.39787E-03
   9  Prefactor     .10000E-03    2.7780        .11748E-05** at limit **
  10  norm          23.119        2.4953        .22674E-07   -.19902E-02
  11  Prefactor     28.778        36.983       -.30195E-06   -.73924E-04
  12  norm          .10000E-03    .98847        .42920E-06** at limit **
  13  Prefactor     40.493        34.187        .33031E-06   -.16584E-03
  14  Prefactor     5.8227        3.7064       -.31470E-06   -.54083E-03
  15  norm          .10000E-03    5.0000        .82226E-07** at limit **
  16  Prefactor     10.124        28.476       -.91659E-06   -.99965E-04
  17  Prefactor     .10000E-03    4.5743        .83323E-07** at limit **
  18  Prefactor     .10000E-03    2.9204       -.36095E-08** at limit **
  19  Prefactor     .10000E-03    18.749       -.14087E-05** at limit **
  20  Prefactor     6.2311        21.050        .13926E-06    .15742E-04
  21  Prefactor     4.4903        4.3154        .43939E-07   -.15460E-03
  22  Prefactor     .10000E-03    36.556        .57545E-06** at limit **
  23  Normalizat    .93617        .19292       -.36707E-06   -.54217E-03
  24  Prefactor     .76272        .14927        .55393E-07   -.60556E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.00010006
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100002
  Prefactor  = 0.0001
  Prefactor  = 11.5454
  Prefactor  = 4.96868
  Prefactor  = 4.24255
  Prefactor  = 0.0001
  norm       = 23.1187
  Prefactor  = 28.7779
  norm       = 0.0001
  Prefactor  = 40.4932
  Prefactor  = 5.82271
  norm       = 0.0001
  Prefactor  = 10.1239
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 0.000100001
  Prefactor  = 6.23111
  Prefactor  = 4.49034
  Prefactor  = 0.0001
  Normalizat = 0.936165
  Prefactor  = 0.762724
 **********
 **   18 **HESSE 
 **********

 FCN=   6313.032     FROM HESSE     STATUS=OK           401 CALLS     3255 TOTAL
                     EDM=   .15E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10006E-03    139.05        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    5.8648        .22390E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    23.037        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    109.48        .53900E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    16.942        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     11.545        42.084        .11792E-03   -1.5028    
   7  Prefactor     4.9687        2.7430        .93037E-04   -1.5262    
   8  Prefactor     4.2426        6.0007        .19563E-03   -1.5296    
   9  Prefactor     .10000E-03    10.579        .23746E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          23.119        2.4966        .37517E-04   -1.4746    
  11  Prefactor     28.778        36.904        .74688E-04   -1.4635    
  12  norm          .10000E-03    1.6693        .14741E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     40.493        34.146        .62990E-04   -1.4434    
  14  Prefactor     5.8227        3.6723        .11296E-03   -1.5225    
  15  norm          .10000E-03    5.0036        .17348E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     10.124        28.476        .12592E-03   -1.5071    
  17  Prefactor     .10000E-03    4.6683        .16588E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    6.3780        .25792E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    18.884        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     6.2311        21.046        .16091E-03   -1.5209    
  21  Prefactor     4.4903        4.3220        .15764E-03   -1.5284    
  22  Prefactor     .10000E-03    36.674        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Normalizat    .93617        .21826        .27764E-03   -.95201    
  24  Prefactor     .76272        .17068        .24884E-03   -1.0112    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.47646e-09
Minuit parameter uncertainties:
  1  0.00580176
  2  5.09553e-05
  3  6.39775e-07
  4  0.000955381
  5  0.000135807
  6  42.1927
  7  2.74307
  8  6.00153
  9  2.67759e-05
  10  2.49662
  11  36.9337
  12  2.89279e-05
  13  34.1621
  14  3.67247
  15  2.23397e-06
  16  28.5143
  17  5.63481e-06
  18  0.000112956
  19  0.000300182
  20  21.0707
  21  4.32231
  22  9.6944e-05
  23  0.218465
  24  0.170802
Done.

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

Extracting fit parameters...

4FGL J0401.9-2034
   Spectrum: PowerLaw
250    Prefactor:  5.823e+00  3.672e+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

GAL_V02
   Spectrum: PowerLaw
468    Prefactor:  7.627e-01  1.708e-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:  9.362e-01  2.185e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 3.81
Ra Dec: 60.487 -20.580
Photon Index (Fixed Index): 2.31 +/- 0.00
Photon Flux (Fixed Index): 7.64e-08 +/- 4.81e-08
Energy Flux (Fixed Index): 2.85e-05 +/- 1.80e-05

TS (Fixed Index): 3.81
Ra Dec: 60.487 -20.580
Photon Flux Upper Limit: 1.71e-07 ph cm-2 s-1
Energy Flux Upper Limit: 1.31e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/164609/likelihoodResults_582508801_582768001_4FGL_J0401.9-2034_daily_bin1324.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) = 6312.0723778
delta logL = 0.960005396533

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6312.06903421
delta logL = 0.963348989362

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    2.6550       1.0000         .10000E-03   10000.    
     2 'Index     '    3.1552       1.0000          .0000       10.000    
     3 'Normalizat'    .85871       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .80526       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=   6312.069     FROM MIGRAD    STATUS=CONVERGED     79 CALLS      273 TOTAL
                     EDM=   .97E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     2.6549        4.0416        .60132E-04   -.37775E-03
   2  Index         3.1553        .92535        .41970E-02   -.78706E-04
   3  Normalizat    .85869        .21636        .28840E-03   -.16899E-03
   4  Prefactor     .80530        .17251        .24282E-03   -.21810E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 2.65492
  Index      = 3.15531
  Normalizat = 0.858692
  Prefactor  = 0.805301
 **********
 **   18 **HESSE 
 **********

 FCN=   6312.069     FROM HESSE     STATUS=OK            25 CALLS      298 TOTAL
                     EDM=   .13E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     2.6549        3.0823        .24053E-05   -1.5382    
   2  Index         3.1553        .70657        .16788E-03   -.37787    
   3  Normalizat    .85869        .21473        .11536E-04   -.97927    
   4  Prefactor     .80530        .17102        .48564E-04   -.99533    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.3195e-10
Minuit parameter uncertainties:
  1  3.08248
  2  0.709319
  3  0.214942
  4  0.17113
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/164609': 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) = 6312.06903407
delta logL = 0.963349131629

Extracting fit parameters...

4FGL J0401.9-2034
   Spectrum: PowerLaw
250    Prefactor:  2.655e+00  3.082e+00  1.000e-04  1.000e+04 ( 1.000e-12)
251        Index:  3.155e+00  7.093e-01  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:  8.053e-01  1.711e-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:  8.587e-01  2.149e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 5.91
Ra Dec: 60.487 -20.580
Photon Index (Free Index): 3.16 +/- 0.71
Photon Flux (Free Index): 1.40e-07 +/- 7.59e-08
Energy Flux (Free Index): 2.60e-05 +/- 1.33e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/164609/cmap_HighResolution_582508801_582768001_4FGL_J0401.9-2034_daily_bin1324.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.31e-02', comment='SUCCESS', photon_flux='7.64e-08', energy_flux2='2.60e-05', photon_flux_error='4.81e-08', dlogl='9.63e-01', energy_flux='2.85e-05', photon_flux2='1.40e-07', job_status='DONE', time_completed='2021-08-19 23:51:25.598077', photon_index_error2='0.71', photon_index2='3.16', ts='3.81', fit_tolerance='1e-08', GAL='0.76', photon_index_error='0.00', photon_flux_upper_limit='1.71e-07', energy_flux_error2='1.33e-05', EG='0.94', time_epoch_completed='1629442285.6', return_code='0', job_id='164609', GAL2='0.81', EG2='0.86', return_code2='0', energy_flux_error='1.80e-05', photon_flux_error2='7.59e-08', ts2='5.91', photon_index='2.31' WHERE bin_id='1324' AND source_name='4FGL J0401.9-2034' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Aug 19 23:51:25 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0083>
Subject: Job 164609: <4FGL_J0401.9-2034_daily_bin1324> in cluster <slac> Done

Job <4FGL_J0401.9-2034_daily_bin1324> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Thu Aug 19 23:35:43 2021
Job was executed on host(s) <bullet0083>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Aug 19 23:35:44 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:35:44 2021
Terminated at Thu Aug 19 23:51:26 2021
Results reported at Thu Aug 19 23:51:26 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0401.9-2034_daily_bin1324 60.4867 -20.5804 582508801 582768001 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 :                                   851.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             305.42 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   942 sec.
    Turnaround time :                            943 sec.

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

