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


Performing analysis on: 4FGL_J0401.9-2034_daily_bin1235
RA = 60.4867, Dec = -20.5804
tmin = 559440001, tmax = 559699201
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='164479', job_status='RUN', time_executed='2021-08-19 23:36:45.079294', time_epoch_executed='1629441405.08' WHERE source_name='4FGL J0401.9-2034' and cadence='daily' and bin_id='1235'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/164479

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/164479/ft1_4FGL_J0401.9-2034_daily_bin1235.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/164479/ft2_4FGL_J0401.9-2034_daily_bin1235.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/164479/ft1_4FGL_J0401.9-2034_daily_bin1235.fits outfile=/scratch/kocevski/164479/ft1_filteredMKT_4FGL_J0401.9-2034_daily_bin1235.fits ra=60.4867 dec=-20.5804 rad=12.0 tmin=559440001.0 tmax=559699201.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 4.41
user 3.35
sys 1.05

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/164479/ft1_filtered_4FGL_J0401.9-2034_daily_bin1235.fits" evtable="EVENTS" scfile=/scratch/kocevski/164479/ft2_4FGL_J0401.9-2034_daily_bin1235.fits sctable="SC_DATA" outfile=/scratch/kocevski/164479/ltcube_559440001_559699201_4FGL_J0401.9-2034_daily_bin1235.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/164479/ft2_4FGL_J0401.9-2034_daily_bin1235.fits
.....................!
real 12.75
user 11.43
sys 1.28

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/164479/ft1_filtered_4FGL_J0401.9-2034_daily_bin1235.fits evtable="EVENTS" scfile=/scratch/kocevski/164479/ft2_4FGL_J0401.9-2034_daily_bin1235.fits sctable="SC_DATA" expcube=/scratch/kocevski/164479/ltcube_559440001_559699201_4FGL_J0401.9-2034_daily_bin1235.fits outfile=/scratch/kocevski/164479/expmap_559440001_559699201_4FGL_J0401.9-2034_daily_bin1235.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/164479/ltcube_559440001_559699201_4FGL_J0401.9-2034_daily_bin1235.fits
.....................!
real 191.24
user 185.27
sys 5.63

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/164479/ft1_filtered_4FGL_J0401.9-2034_daily_bin1235.fits scfile=/scratch/kocevski/164479/ft2_4FGL_J0401.9-2034_daily_bin1235.fits outfile=/scratch/kocevski/164479/cmap_559440001_559699201_4FGL_J0401.9-2034_daily_bin1235.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 1.39
user 0.38
sys 0.99

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/164479/ft1_filtered_4FGL_J0401.9-2034_daily_bin1235.fits scfile=/scratch/kocevski/164479/ft2_4FGL_J0401.9-2034_daily_bin1235.fits outfile=/scratch/kocevski/164479/cmap_HighResolution_559440001_559699201_4FGL_J0401.9-2034_daily_bin1235.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 1.38
user 0.37
sys 1.00

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/164479/ft1_filtered_4FGL_J0401.9-2034_daily_bin1235.fits evtable="EVENTS" scfile=/scratch/kocevski/164479/ft2_4FGL_J0401.9-2034_daily_bin1235.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/164479/Model_4FGL_J0401.9-2034_daily_bin1235.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/164479/ft1_filtered_4FGL_J0401.9-2034_daily_bin1235.fits......................!
real 52.68
user 50.27
sys 2.31

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    166.41       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10195E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    73.572       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10023E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    21.824       1.0000         .10000E-03   10000.    
    10 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10025E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    2.1156       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .10031E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10400E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    12.506       1.0000         .10000E-03   10000.    
    18 'Prefactor '    17.240       1.0000         .10000E-03   10000.    
    19 'Prefactor '    33.672       1.0000         .10000E-03   10000.    
    20 'Prefactor '    108.81       1.0000         .10000E-03   10000.    
    21 'Prefactor '    9.9142       1.0000         .10000E-03   10000.    
    22 'Prefactor '    120.90       1.0000         .10000E-03   10000.    
    23 'Normalizat'    .41432       1.0000         .10000E-01   10.000    
    24 'Prefactor '    .75378       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=   1869.514     FROM MIGRAD    STATUS=CONVERGED    541 CALLS     3213 TOTAL
                     EDM=   .78E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     166.36        366.24       -.33078E-04   -.14568E-04
   2  Prefactor     .10000E-03    1.5952       -.22809E-06** at limit **
   3  Prefactor     .10000E-03    20.120        .11638E-04** at limit **
   4  Prefactor     .10000E-03    3.5358       -.64819E-08** at limit **
   5  Prefactor     .10000E-03    89.588       -.77258E-05** at limit **
   6  Prefactor     73.568        67.831       -.37564E-05   -.20348E-04
   7  Prefactor     .10000E-03    4.3438        .46219E-06** at limit **
   8  Prefactor     .10000E-03    25.316       -.45699E-05** at limit **
   9  Prefactor     21.824        14.482        .44241E-06    .34238E-04
  10  norm          .10000E-03    1.6611        .11979E-07** at limit **
  11  Prefactor     .10000E-03    63.168        .14364E-05** at limit **
  12  norm          2.1158        4.4080       -.43347E-06   -.37559E-03
  13  Prefactor     .10000E-03    18.214       -.89900E-05** at limit **
  14  Prefactor     .10000E-03    6.4676        .35553E-06** at limit **
  15  norm          .10000E-03    15.785        .12509E-05** at limit **
  16  Prefactor     .10000E-03    66.317        .67812E-05** at limit **
  17  Prefactor     12.506        12.102       -.64748E-06   -.17187E-04
  18  Prefactor     17.238        12.218       -.19832E-05   -.57479E-03
  19  Prefactor     33.690        67.355        .25736E-04    .35388E-05
  20  Prefactor     108.82        70.120        .67984E-05    .34373E-05
  21  Prefactor     9.9130        16.133       -.15843E-05   -.61865E-03
  22  Prefactor     120.83        225.68       -.65623E-04   -.23996E-05
  23  Normalizat    .41431        .32257        .27706E-05   -.37557E-04
  24  Prefactor     .75377        .21999        .87637E-06   -.27910E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 166.364
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 73.5675
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 21.8236
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 2.11578
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 12.5057
  Prefactor  = 17.2384
  Prefactor  = 33.6895
  Prefactor  = 108.818
  Prefactor  = 9.91301
  Prefactor  = 120.828
  Normalizat = 0.414309
  Prefactor  = 0.753767
 **********
 **   18 **HESSE 
 **********

 FCN=   1869.514     FROM HESSE     STATUS=OK           395 CALLS     3608 TOTAL
                     EDM=   .15E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     166.36        367.05        .15635E-03   -1.3121    
   2  Prefactor     .10000E-03    1.5959        .53331E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    20.247        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    3.5363        .79411E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    89.582        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     73.568        67.943        .46808E-04   -1.3990    
   7  Prefactor     .10000E-03    6.1185        .16491E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    25.979        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     21.824        14.218        .85740E-04   -1.4773    
  10  norm          .10000E-03    2.4556        .10747E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    63.558        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          2.1158        4.1793        .10144E-03   -1.5417    
  13  Prefactor     .10000E-03    18.194        .18008E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    6.5463        .10679E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .10000E-03    15.785        .16782E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    66.351        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     12.506        12.083        .11327E-03   -1.5001    
  18  Prefactor     17.238        12.276        .48231E-03   -1.4877    
  19  Prefactor     33.690        67.321        .69057E-04   -1.4546    
  20  Prefactor     108.82        70.067        .38557E-04   -1.3618    
  21  Prefactor     9.9130        16.280        .63632E-03   -1.5078    
  22  Prefactor     120.83        223.46        .18300E-03   -1.3505    
  23  Normalizat    .41431        .35030        .33678E-03   -1.1657    
  24  Prefactor     .75377        .24663        .19211E-03   -1.0146    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.53489e-09
Minuit parameter uncertainties:
  1  372.288
  2  1.37316e-06
  3  7.13e-05
  4  9.89422e-07
  5  1.0857e-05
  6  68.015
  7  9.36293e-05
  8  1.70772e-05
  9  14.2198
  10  1.31537e-05
  11  4.32113e-05
  12  4.17984
  13  4.9209e-06
  14  1.91597e-06
  15  2.82138e-06
  16  3.53601e-05
  17  12.0856
  18  12.2775
  19  67.4729
  20  70.12
  21  16.2871
  22  225.053
  23  0.352172
  24  0.246988
Done.

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

Extracting fit parameters...

4FGL J0401.9-2034
   Spectrum: PowerLaw
250    Prefactor:  1.000e-04  1.916e-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.538e-01  2.470e-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:  4.143e-01  3.522e-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: 1.91e-07 ph cm-2 s-1
Energy Flux Upper Limit: 1.47e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/164479/likelihoodResults_559440001_559699201_4FGL_J0401.9-2034_daily_bin1235.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) = 1869.51491922
delta logL = -0.000727872069092

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 1869.51419137
delta logL = -2.11243786907e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10079E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.3259       1.0000          .0000       10.000    
     3 'Normalizat'    .41432       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .75379       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=   1869.514     FROM MIGRAD    STATUS=CONVERGED     91 CALLS      243 TOTAL
                     EDM=   .12E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10120E-03    77.482        .21561E-02** at limit **
   2  Index         2.3837        6.0318        .50000       -.16266E-04
   3  Normalizat    .41430        .23854E-01    .33678E-03   -.20141E-03
   4  Prefactor     .75377        .18289E-01    .19210E-03   -.16802E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001012
  Index      = 2.38374
  Normalizat = 0.414304
  Prefactor  = 0.753769
 **********
 **   18 **HESSE 
 **********

 FCN=   1869.514     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      272 TOTAL
                     EDM=   .64E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10120E-03    403.79        .43122E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.3837        8.8068        .50000       -.55066    
   3  Normalizat    .41430        .58032E-01    .13471E-04   -1.1657    
   4  Prefactor     .75377        .44488E-01    .38421E-04   -1.0146    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 6.41295e-08
Minuit parameter uncertainties:
  1  0.0443226
  2  793.981
  3  0.0580404
  4  0.0444902
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/164479': 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) = 1869.5141911
delta logL = 2.4740097615e-07

Extracting fit parameters...

4FGL J0401.9-2034
   Spectrum: PowerLaw
250    Prefactor:  1.012e-04  4.432e-02  1.000e-04  1.000e+04 ( 1.000e-12)
251        Index:  2.384e+00  7.940e+02  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.538e-01  4.449e-02  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:  4.143e-01  5.804e-02  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/164479/cmap_HighResolution_559440001_559699201_4FGL_J0401.9-2034_daily_bin1235.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.47e-02', job_status='DONE', photon_flux_upper_limit='1.91e-07', time_completed='2021-08-19 23:44:09.479506', job_id='164479', GAL2='0.75', fit_tolerance='1e-08', EG2='0.41', EG='0.41', time_epoch_completed='1629441849.48', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.75', dlogl='2.47e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.31' WHERE bin_id='1235' AND source_name='4FGL J0401.9-2034' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Aug 19 23:44:09 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0030>
Subject: Job 164479: <4FGL_J0401.9-2034_daily_bin1235> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0401.9-2034_daily_bin1235 60.4867 -20.5804 559440001 559699201 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 :                                   455.00 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             296.83 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              7
    Max Threads :                                21
    Run time :                                   514 sec.
    Turnaround time :                            517 sec.

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

