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


Performing analysis on: 4FGL_J0401.9-2034_daily_bin1372
RA = 60.4867, Dec = -20.5804
tmin = 594950401, tmax = 595209601
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='165754', job_status='RUN', time_executed='2021-08-19 23:42:04.492617', time_epoch_executed='1629441724.49' WHERE source_name='4FGL J0401.9-2034' and cadence='daily' and bin_id='1372'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/165754

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/165754/ft1_4FGL_J0401.9-2034_daily_bin1372.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/165754/ft2_4FGL_J0401.9-2034_daily_bin1372.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/165754/ft1_4FGL_J0401.9-2034_daily_bin1372.fits outfile=/scratch/kocevski/165754/ft1_filteredMKT_4FGL_J0401.9-2034_daily_bin1372.fits ra=60.4867 dec=-20.5804 rad=12.0 tmin=594950401.0 tmax=595209601.0 emin=100.0 emax=100000.0 zmin=0.0 zmax=90.0 evclass=128 evtype="INDEF" convtype=-1 phasemin=0.0 phasemax=1.0 evtable="EVENTS" chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

Done.
real 8.30
user 2.81
sys 5.42

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/165754/ft1_filtered_4FGL_J0401.9-2034_daily_bin1372.fits" evtable="EVENTS" scfile=/scratch/kocevski/165754/ft2_4FGL_J0401.9-2034_daily_bin1372.fits sctable="SC_DATA" outfile=/scratch/kocevski/165754/ltcube_594950401_595209601_4FGL_J0401.9-2034_daily_bin1372.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/165754/ft2_4FGL_J0401.9-2034_daily_bin1372.fits
.....................!
real 18.34
user 12.06
sys 6.24

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/165754/ft1_filtered_4FGL_J0401.9-2034_daily_bin1372.fits evtable="EVENTS" scfile=/scratch/kocevski/165754/ft2_4FGL_J0401.9-2034_daily_bin1372.fits sctable="SC_DATA" expcube=/scratch/kocevski/165754/ltcube_594950401_595209601_4FGL_J0401.9-2034_daily_bin1372.fits outfile=/scratch/kocevski/165754/expmap_594950401_595209601_4FGL_J0401.9-2034_daily_bin1372.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/165754/ltcube_594950401_595209601_4FGL_J0401.9-2034_daily_bin1372.fits
.....................!
real 198.18
user 185.47
sys 12.33

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/165754/ft1_filtered_4FGL_J0401.9-2034_daily_bin1372.fits scfile=/scratch/kocevski/165754/ft2_4FGL_J0401.9-2034_daily_bin1372.fits outfile=/scratch/kocevski/165754/cmap_594950401_595209601_4FGL_J0401.9-2034_daily_bin1372.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 5.66
user 0.38
sys 5.25

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/165754/ft1_filtered_4FGL_J0401.9-2034_daily_bin1372.fits scfile=/scratch/kocevski/165754/ft2_4FGL_J0401.9-2034_daily_bin1372.fits outfile=/scratch/kocevski/165754/cmap_HighResolution_594950401_595209601_4FGL_J0401.9-2034_daily_bin1372.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 5.71
user 0.38
sys 5.30

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/165754/ft1_filtered_4FGL_J0401.9-2034_daily_bin1372.fits evtable="EVENTS" scfile=/scratch/kocevski/165754/ft2_4FGL_J0401.9-2034_daily_bin1372.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/165754/Model_4FGL_J0401.9-2034_daily_bin1372.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/165754/ft1_filtered_4FGL_J0401.9-2034_daily_bin1372.fits.....................!
real 105.56
user 97.37
sys 7.99

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10058E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    4.3487       1.0000         .10000E-03   10000.    
     4 'Prefactor '    32.008       1.0000         .10000E-03   10000.    
     5 'Prefactor '    1.6528       1.0000         .10000E-03   10000.    
     6 'Prefactor '    24.309       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10992E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    8.3602       1.0000         .10000E-03   10000.    
     9 'Prefactor '    6.8223       1.0000         .10000E-03   10000.    
    10 'norm      '    14.312       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    .20456       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    1.4686       1.0000         .10000E-03   10000.    
    15 'norm      '    19.655       1.0000         .10000E-03   10000.    
    16 'Prefactor '    59.342       1.0000         .10000E-03   10000.    
    17 'Prefactor '    11.803       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10039E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10016E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .45340E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .23913       1.0000         .10000E-03   10000.    
    23 'Normalizat'    .86887       1.0000         .10000E-01   10.000    
    24 'Prefactor '    1.1972       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=   4257.621     FROM MIGRAD    STATUS=CONVERGED    995 CALLS     3204 TOTAL
                     EDM=   .54E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    86.061        .18142E-02** at limit **
   2  Prefactor     .10000E-03    2.6975        .10460E-02** at limit **
   3  Prefactor     4.3463        24.703        .19316E-03   -.14538E-04
   4  Prefactor     32.011        43.132        .70824E-04    .49472E-04
   5  Prefactor     1.7047        197.63        .32836E-03   -.13676E-04
   6  Prefactor     24.301        71.327        .81245E-04    .48920E-04
   7  Prefactor     .10002E-03    10.708        .18758E-02** at limit **
   8  Prefactor     8.3614        8.3807        .13865E-03   -.11889E-03
   9  Prefactor     6.8171        7.5061        .15361E-03    .17096E-03
  10  norm          14.312        2.4242        .37772E-04   -.17633E-02
  11  Prefactor     .10000E-03    53.345        .18142E-02** at limit **
  12  norm          .20238        7.1155        .14748E-02    .10917E-02
  13  Prefactor     .10000E-03    16.492        .18142E-02** at limit **
  14  Prefactor     1.4659        4.9052        .23531E-03    .69837E-03
  15  norm          19.658        17.325        .90342E-04    .22173E-04
  16  Prefactor     59.313        44.288        .52082E-04   -.31171E-04
  17  Prefactor     11.804        17.781        .11660E-03    .32370E-04
  18  Prefactor     .10000E-03    2.6464        .10341E-02** at limit **
  19  Prefactor     .10000E-03    7.6476        .17618E-02** at limit **
  20  Prefactor     .10000E-03    29.409        .18142E-02** at limit **
  21  Prefactor     .10001E-03    66.873        .39391E-02** at limit **
  22  Prefactor     .10685E-03    104.71        .17093    ** at limit **
  23  Normalizat    .86893        .32946        .34648E-03    .21206E-03
  24  Prefactor     1.1970        .26554        .25666E-03    .24930E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100005
  Prefactor  = 0.0001
  Prefactor  = 4.34635
  Prefactor  = 32.0107
  Prefactor  = 1.70471
  Prefactor  = 24.3009
  Prefactor  = 0.000100019
  Prefactor  = 8.36145
  Prefactor  = 6.81707
  norm       = 14.3118
  Prefactor  = 0.0001
  norm       = 0.202383
  Prefactor  = 0.0001
  Prefactor  = 1.46591
  norm       = 19.6582
  Prefactor  = 59.313
  Prefactor  = 11.8036
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.00010001
  Prefactor  = 0.000106849
  Normalizat = 0.868929
  Prefactor  = 1.19702
 **********
 **   18 **HESSE 
 **********

 FCN=   4257.621     FROM HESSE     STATUS=OK           385 CALLS     3589 TOTAL
                     EDM=   .49E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    86.061        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    2.6975        .20920E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     4.3463        24.693        .77262E-05   -1.5291    
   4  Prefactor     32.011        43.132        .14165E-04   -1.4576    
   5  Prefactor     1.7047        197.40        .13134E-04   -1.5447    
   6  Prefactor     24.301        71.312        .16249E-04   -1.4722    
   7  Prefactor     .10002E-03    10.748        .37517E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     8.3614        8.3790        .55460E-05   -1.5130    
   9  Prefactor     6.8171        7.4782        .61444E-05   -1.5186    
  10  norm          14.312        2.4240        .75544E-05   -1.4951    
  11  Prefactor     .10000E-03    53.357        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          .20238        6.9287        .58991E-04   -1.5618    
  13  Prefactor     .10000E-03    16.492        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     1.4659        4.8771        .94125E-05   -1.5466    
  15  norm          19.658        17.324        .18068E-04   -1.4821    
  16  Prefactor     59.313        44.285        .10416E-04   -1.4166    
  17  Prefactor     11.804        17.780        .46641E-05   -1.5021    
  18  Prefactor     .10000E-03    2.6466        .20682E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    7.6477        .35237E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    29.410        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10001E-03    68.701        .15756E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10685E-03    118.47        .15909       -1.5707    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Normalizat    .86893        .32975        .13859E-04   -.97561    
  24  Prefactor     1.1970        .26561        .51333E-04   -.86423    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.8699e-09
Minuit parameter uncertainties:
  1  0.0012917
  2  3.4605e-06
  3  20.7322
  4  43.1741
  5  36.8126
  6  71.5636
  7  0.000898236
  8  8.38015
  9  7.47924
  10  2.42398
  11  0.000236382
  12  2.36804
  13  1.84237e-05
  14  4.87843
  15  17.3288
  16  44.3091
  17  17.7876
  18  3.45738e-05
  19  2.58576e-06
  20  2.00127e-05
  21  0.00166468
  22  0.0570814
  23  0.330515
  24  0.265908
Done.

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

Extracting fit parameters...

4FGL J0401.9-2034
   Spectrum: PowerLaw
250    Prefactor:  1.466e+00  4.878e+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.197e+00  2.659e-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.689e-01  3.305e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/165754/likelihoodResults_594950401_595209601_4FGL_J0401.9-2034_daily_bin1372.txt

Performing a free index iterative likelihood fit...

Freezing all point sources, except source of interest...

Done.

Freeing candidate source...
Done.

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 4255.40947136
delta logL = 2.21159010787

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 4255.30499242
delta logL = 2.31606904319

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .11874       1.0000         .10000E-03   10000.    
     2 'Index     '    5.0741       1.0000          .0000       10.000    
     3 'Normalizat'    .66982       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.3010       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=   4255.305     FROM MIGRAD    STATUS=CONVERGED     56 CALLS      247 TOTAL
                     EDM=   .17E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .11690        1.1105        .27009E-02    .17159E-02
   2  Index         5.0821        2.7240        .79673E-01    .13323E-03
   3  Normalizat    .67043        .92502E-01    .87689E-01    .22502E-04
   4  Prefactor     1.3009        .79221E-01    .55948E-01    .20811E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.116905
  Index      = 5.08208
  Normalizat = 0.670427
  Prefactor  = 1.30088
 **********
 **   18 **HESSE 
 **********

 FCN=   4255.305     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      280 TOTAL
                     EDM=   .10E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .11690        1.8341        .12075E-04   -1.5640    
   2  Index         5.0821        3.5940        .32999E-02    .16417E-01
   3  Normalizat    .67043        .28449        .38846E-03   -1.0507    
   4  Prefactor     1.3009        .24165        .24735E-03   -.83281    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.00111e-10
Minuit parameter uncertainties:
  1  0.925734
  2  4.01059
  3  0.285112
  4  0.241859
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/165754': No such file or directory
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 4255.30497947
delta logL = 2.31608199718

Extracting fit parameters...

4FGL J0401.9-2034
   Spectrum: PowerLaw
250    Prefactor:  1.169e-01  9.257e-01  1.000e-04  1.000e+04 ( 1.000e-12)
251        Index:  5.082e+00  4.011e+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:  1.301e+00  2.419e-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:  6.704e-01  2.851e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 5.19
Ra Dec: 60.487 -20.580
Photon Index (Free Index): 5.08 +/- 4.01
Photon Flux (Free Index): 2.39e-07 +/- 1.35e-07
Energy Flux (Free Index): 3.15e-05 +/- 1.96e-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/165754/cmap_HighResolution_594950401_595209601_4FGL_J0401.9-2034_daily_bin1372.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.28e-02', comment='SUCCESS', energy_flux2='3.15e-05', dlogl='2.32e+00', photon_flux2='2.39e-07', job_status='DONE', time_completed='2021-08-19 23:53:23.392450', photon_index_error2='4.01', photon_index2='5.08', ts='0.11', fit_tolerance='1e-08', GAL='1.20', photon_index_error='0.00', photon_flux_upper_limit='1.67e-07', energy_flux_error2='1.96e-05', EG='0.87', time_epoch_completed='1629442403.39', return_code='0', job_id='165754', GAL2='1.30', EG2='0.67', return_code2='102', photon_flux_error2='1.35e-07', ts2='5.19', photon_index='2.31' WHERE bin_id='1372' AND source_name='4FGL J0401.9-2034' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Aug 19 23:53:23 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0055>
Subject: Job 165754: <4FGL_J0401.9-2034_daily_bin1372> in cluster <slac> Done

Job <4FGL_J0401.9-2034_daily_bin1372> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Thu Aug 19 23:40:16 2021
Job was executed on host(s) <bullet0055>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Aug 19 23:40:18 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:18 2021
Terminated at Thu Aug 19 23:53:25 2021
Results reported at Thu Aug 19 23:53:25 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0401.9-2034_daily_bin1372 60.4867 -20.5804 594950401 595209601 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 :                                   744.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             258.68 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              7
    Max Threads :                                21
    Run time :                                   786 sec.
    Turnaround time :                            789 sec.

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

