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


Performing analysis on: 4FGL_J0401.9-2034_daily_bin1508
RA = 60.4867, Dec = -20.5804
tmin = 630201601, tmax = 630460801
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='165950', job_status='RUN', time_executed='2021-08-19 23:40:57.119391', time_epoch_executed='1629441657.12' WHERE source_name='4FGL J0401.9-2034' and cadence='daily' and bin_id='1508'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/165950

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/165950/ft1_4FGL_J0401.9-2034_daily_bin1508.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/165950/ft2_4FGL_J0401.9-2034_daily_bin1508.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/165950/ft1_4FGL_J0401.9-2034_daily_bin1508.fits outfile=/scratch/kocevski/165950/ft1_filteredMKT_4FGL_J0401.9-2034_daily_bin1508.fits ra=60.4867 dec=-20.5804 rad=12.0 tmin=630201601.0 tmax=630460801.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 3.66
user 3.45
sys 0.19

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/165950/ft1_filtered_4FGL_J0401.9-2034_daily_bin1508.fits" evtable="EVENTS" scfile=/scratch/kocevski/165950/ft2_4FGL_J0401.9-2034_daily_bin1508.fits sctable="SC_DATA" outfile=/scratch/kocevski/165950/ltcube_630201601_630460801_4FGL_J0401.9-2034_daily_bin1508.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/165950/ft2_4FGL_J0401.9-2034_daily_bin1508.fits
.....................!
real 12.26
user 11.90
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/165950/ft1_filtered_4FGL_J0401.9-2034_daily_bin1508.fits evtable="EVENTS" scfile=/scratch/kocevski/165950/ft2_4FGL_J0401.9-2034_daily_bin1508.fits sctable="SC_DATA" expcube=/scratch/kocevski/165950/ltcube_630201601_630460801_4FGL_J0401.9-2034_daily_bin1508.fits outfile=/scratch/kocevski/165950/expmap_630201601_630460801_4FGL_J0401.9-2034_daily_bin1508.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/165950/ltcube_630201601_630460801_4FGL_J0401.9-2034_daily_bin1508.fits
.....................!
real 189.62
user 185.16
sys 4.10

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/165950/ft1_filtered_4FGL_J0401.9-2034_daily_bin1508.fits scfile=/scratch/kocevski/165950/ft2_4FGL_J0401.9-2034_daily_bin1508.fits outfile=/scratch/kocevski/165950/cmap_630201601_630460801_4FGL_J0401.9-2034_daily_bin1508.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 0.53
user 0.36
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/165950/ft1_filtered_4FGL_J0401.9-2034_daily_bin1508.fits scfile=/scratch/kocevski/165950/ft2_4FGL_J0401.9-2034_daily_bin1508.fits outfile=/scratch/kocevski/165950/cmap_HighResolution_630201601_630460801_4FGL_J0401.9-2034_daily_bin1508.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 0.54
user 0.38
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/165950/ft1_filtered_4FGL_J0401.9-2034_daily_bin1508.fits evtable="EVENTS" scfile=/scratch/kocevski/165950/ft2_4FGL_J0401.9-2034_daily_bin1508.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/165950/Model_4FGL_J0401.9-2034_daily_bin1508.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/165950/ft1_filtered_4FGL_J0401.9-2034_daily_bin1508.fits.....................!
real 208.05
user 206.16
sys 1.44

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    1.0927       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    10.299       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10660E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    1.7743       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    1.9726       1.0000         .10000E-03   10000.    
    10 'norm      '    6.8142       1.0000         .10000E-03   10000.    
    11 'Prefactor '    11.766       1.0000         .10000E-03   10000.    
    12 'norm      '    .26845       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10241E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    5.5112       1.0000         .10000E-03   10000.    
    15 'norm      '    .10026E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .22689       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .85607E-02   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .96189E-02   1.0000         .10000E-03   10000.    
    20 'Prefactor '    1.6439       1.0000         .10000E-03   10000.    
    21 'Prefactor '    1.9522       1.0000         .10000E-03   10000.    
    22 'Prefactor '    14.366       1.0000         .10000E-03   10000.    
    23 'Normalizat'    .84413       1.0000         .10000E-01   10.000    
    24 'Prefactor '    1.0551       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=   9440.594     FROM MIGRAD    STATUS=CONVERGED    989 CALLS     2855 TOTAL
                     EDM=   .35E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    78.674        .18142E-02** at limit **
   2  Prefactor     1.0930        2.2562        .20741E-03    .32942E-03
   3  Prefactor     .10000E-03    6.5475        .18142E-02** at limit **
   4  Prefactor     10.300        9.5286        .12485E-03    .14933E-04
   5  Prefactor     .10002E-03    58.104        .36285E-03** at limit **
   6  Prefactor     .10000E-03    34.117        .18142E-02** at limit **
   7  Prefactor     1.7742        1.4953        .10249E-03   -.26733E-03
   8  Prefactor     .10000E-03    1.1880        .10261E-02** at limit **
   9  Prefactor     1.9727        2.5960        .16905E-03   -.49107E-03
  10  norm          6.8143        1.0534        .15370E-04   -.47051E-02
  11  Prefactor     11.768        13.666        .11679E-03    .15673E-03
  12  norm          .26876        1.0276        .13774E-02    .11726E-02
  13  Prefactor     .10000E-03    14.857        .18142E-02** at limit **
  14  Prefactor     5.5114        2.7055        .10278E-03   -.12962E-02
  15  norm          .10000E-03    7.0203        .18142E-02** at limit **
  16  Prefactor     .10000E-03    9.5457        .18142E-02** at limit **
  17  Prefactor     .25746        23.852        .35902E-02   -.25389E-03
  18  Prefactor     .10022E-03    3.6243        .36210E-01** at limit **
  19  Prefactor     .10023E-03    8.3500        .87148E-01** at limit **
  20  Prefactor     1.6472        70.191        .16473E-02    .72870E-04
  21  Prefactor     1.9527        3.4781        .23689E-03   -.49527E-04
  22  Prefactor     14.380        31.755        .10568E-03    .18383E-03
  23  Normalizat    .84411        .16585        .27030E-03   -.59250E-03
  24  Prefactor     1.0550        .14143        .21803E-03   -.50998E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 1.09303
  Prefactor  = 0.0001
  Prefactor  = 10.2998
  Prefactor  = 0.000100022
  Prefactor  = 0.000100001
  Prefactor  = 1.77419
  Prefactor  = 0.0001
  Prefactor  = 1.97268
  norm       = 6.81426
  Prefactor  = 11.7675
  norm       = 0.268763
  Prefactor  = 0.0001
  Prefactor  = 5.51136
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.257461
  Prefactor  = 0.00010022
  Prefactor  = 0.000100229
  Prefactor  = 1.64718
  Prefactor  = 1.95274
  Prefactor  = 14.3804
  Normalizat = 0.844114
  Prefactor  = 1.05505
 **********
 **   18 **HESSE 
 **********

 FCN=   9440.594     FROM HESSE     STATUS=OK           399 CALLS     3254 TOTAL
                     EDM=   .34E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    78.676        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     1.0930        2.2558        .82964E-05   -1.5499    
   3  Prefactor     .10000E-03    6.5492        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     10.300        9.5277        .49941E-05   -1.5066    
   5  Prefactor     .10002E-03    58.107        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    34.122        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     1.7742        1.4918        .40995E-05   -1.5442    
   8  Prefactor     .10000E-03    1.1882        .20522E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     1.9727        2.5934        .67619E-05   -1.5427    
  10  norm          6.8143        1.0530        .30740E-05   -1.5186    
  11  Prefactor     11.768        13.663        .46715E-05   -1.5022    
  12  norm          .26876        1.0199        .55096E-04   -1.5604    
  13  Prefactor     .10000E-03    14.864        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     5.5114        2.6994        .41111E-05   -1.5238    
  15  norm          .10000E-03    7.0270        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    9.5470        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .25746        24.031        .14361E-03   -1.5607    
  18  Prefactor     .10022E-03    2.6444        .44409E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10023E-03    8.2841        .87742E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     1.6472        70.064        .32946E-03   -1.5451    
  21  Prefactor     1.9527        3.4779        .94757E-05   -1.5428    
  22  Prefactor     14.380        31.747        .21135E-04   -1.4949    
  23  Normalizat    .84411        .16562        .54060E-04   -.98453    
  24  Prefactor     1.0550        .14150        .43605E-04   -.90916    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.43331e-09
Minuit parameter uncertainties:
  1  3.24556e-05
  2  2.25598
  3  4.61854e-05
  4  9.52909
  5  0.00226991
  6  0.000312867
  7  1.4918
  8  1.46159e-05
  9  2.59359
  10  1.05304
  11  13.667
  12  1.02001
  13  7.75442e-05
  14  2.69947
  15  3.41033e-05
  16  5.47295e-05
  17  4.97587
  18  0.00152472
  19  0.00275594
  20  21.5119
  21  3.4783
  22  31.7844
  23  0.16572
  24  0.141549
Done.

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

Extracting fit parameters...

4FGL J0401.9-2034
   Spectrum: PowerLaw
250    Prefactor:  5.511e+00  2.699e+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:  1.055e+00  1.415e-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.441e-01  1.657e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 8.74
Ra Dec: 60.487 -20.580
Photon Index (Fixed Index): 2.31 +/- 0.00
Photon Flux (Fixed Index): 7.23e-08 +/- 3.54e-08
Energy Flux (Fixed Index): 2.70e-05 +/- 1.32e-05

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) = 9440.49596384
delta logL = 0.0979542575242

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 9440.48741042
delta logL = 0.106507681154

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    4.7503       1.0000         .10000E-03   10000.    
     2 'Index     '    2.5287       1.0000          .0000       10.000    
     3 'Normalizat'    .82443       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0656       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.

 FCN=   9440.487     FROM MIGRAD    STATUS=CONVERGED     55 CALLS      238 TOTAL
                     EDM=   .93E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     4.7509        30.984        .46152E-02    .51349E-03
   2  Index         2.5280        2.9655        .11977        .20501E-03
   3  Normalizat    .82456        .74743E-01    .43928E-01    .29272E-04
   4  Prefactor     1.0656        .50307E-01    .39071E-01    .72403E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 4.75092
  Index      = 2.52802
  Normalizat = 0.824556
  Prefactor  = 1.06555
 **********
 **   18 **HESSE 
 **********

 FCN=   9440.487     FROM HESSE     STATUS=OK            33 CALLS      271 TOTAL
                     EDM=   .11E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     4.7509        3.2077        .88378E-04   -1.5272    
   2  Index         2.5280        .52644        .59124E-02   -.51714    
   3  Normalizat    .82456        .16339        .27311E-03   -.99164    
   4  Prefactor     1.0656        .14161        .21706E-03   -.90575    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.05865e-11
Minuit parameter uncertainties:
  1  3.20786
  2  0.527737
  3  0.163492
  4  0.141656
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/165950': 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) = 9440.48740883
delta logL = 0.106509272287

Extracting fit parameters...

4FGL J0401.9-2034
   Spectrum: PowerLaw
250    Prefactor:  4.751e+00  3.208e+00  1.000e-04  1.000e+04 ( 1.000e-12)
251        Index:  2.528e+00  5.277e-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:  1.066e+00  1.417e-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.246e-01  1.635e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 8.97
Ra Dec: 60.487 -20.580
Photon Index (Free Index): 2.53 +/- 0.53
Photon Flux (Free Index): 8.70e-08 +/- 4.77e-08
Energy Flux (Free Index): 2.45e-05 +/- 1.23e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/165950/cmap_HighResolution_630201601_630460801_4FGL_J0401.9-2034_daily_bin1508.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='7.23e-08', energy_flux2='2.45e-05', photon_flux_error='3.54e-08', dlogl='1.07e-01', energy_flux='2.70e-05', photon_flux2='8.70e-08', job_status='DONE', time_completed='2021-08-19 23:54:57.331423', photon_index_error2='0.53', photon_index2='2.53', ts='8.74', fit_tolerance='1e-08', GAL='1.06', photon_index_error='0.00', energy_flux_error2='1.23e-05', EG='0.84', time_epoch_completed='1629442497.33', return_code='0', job_id='165950', GAL2='1.07', EG2='0.82', return_code2='0', energy_flux_error='1.32e-05', photon_flux_error2='4.77e-08', ts2='8.97', photon_index='2.31' WHERE bin_id='1508' AND source_name='4FGL J0401.9-2034' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Aug 19 23:54:57 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0231>
Subject: Job 165950: <4FGL_J0401.9-2034_daily_bin1508> in cluster <slac> Done

Job <4FGL_J0401.9-2034_daily_bin1508> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Thu Aug 19 23:40:30 2021
Job was executed on host(s) <bullet0231>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Aug 19 23:40:31 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:40:31 2021
Terminated at Thu Aug 19 23:54:57 2021
Results reported at Thu Aug 19 23:54:57 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0401.9-2034_daily_bin1508 60.4867 -20.5804 630201601 630460801 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 :                                   832.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             356.66 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   866 sec.
    Turnaround time :                            867 sec.

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

