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


Performing analysis on: 4FGL_J0401.9-2034_daily_bin1091
RA = 60.4867, Dec = -20.5804
tmin = 522115201, tmax = 522374401
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='163202', job_status='RUN', time_executed='2021-08-19 23:34:59.352185', time_epoch_executed='1629441299.35' WHERE source_name='4FGL J0401.9-2034' and cadence='daily' and bin_id='1091'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/163202

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/163202/ft1_4FGL_J0401.9-2034_daily_bin1091.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/163202/ft2_4FGL_J0401.9-2034_daily_bin1091.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/163202/ft1_4FGL_J0401.9-2034_daily_bin1091.fits outfile=/scratch/kocevski/163202/ft1_filteredMKT_4FGL_J0401.9-2034_daily_bin1091.fits ra=60.4867 dec=-20.5804 rad=12.0 tmin=522115201.0 tmax=522374401.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 6.14
user 3.49
sys 2.62

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/163202/ft1_filtered_4FGL_J0401.9-2034_daily_bin1091.fits" evtable="EVENTS" scfile=/scratch/kocevski/163202/ft2_4FGL_J0401.9-2034_daily_bin1091.fits sctable="SC_DATA" outfile=/scratch/kocevski/163202/ltcube_522115201_522374401_4FGL_J0401.9-2034_daily_bin1091.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/163202/ft2_4FGL_J0401.9-2034_daily_bin1091.fits
.....................!
real 14.60
user 11.43
sys 3.13

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/163202/ft1_filtered_4FGL_J0401.9-2034_daily_bin1091.fits evtable="EVENTS" scfile=/scratch/kocevski/163202/ft2_4FGL_J0401.9-2034_daily_bin1091.fits sctable="SC_DATA" expcube=/scratch/kocevski/163202/ltcube_522115201_522374401_4FGL_J0401.9-2034_daily_bin1091.fits outfile=/scratch/kocevski/163202/expmap_522115201_522374401_4FGL_J0401.9-2034_daily_bin1091.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/163202/ltcube_522115201_522374401_4FGL_J0401.9-2034_daily_bin1091.fits
.....................!
real 194.19
user 185.62
sys 8.24

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/163202/ft1_filtered_4FGL_J0401.9-2034_daily_bin1091.fits scfile=/scratch/kocevski/163202/ft2_4FGL_J0401.9-2034_daily_bin1091.fits outfile=/scratch/kocevski/163202/cmap_522115201_522374401_4FGL_J0401.9-2034_daily_bin1091.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 2.99
user 0.37
sys 2.56

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/163202/ft1_filtered_4FGL_J0401.9-2034_daily_bin1091.fits scfile=/scratch/kocevski/163202/ft2_4FGL_J0401.9-2034_daily_bin1091.fits outfile=/scratch/kocevski/163202/cmap_HighResolution_522115201_522374401_4FGL_J0401.9-2034_daily_bin1091.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 2.93
user 0.38
sys 2.54

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/163202/ft1_filtered_4FGL_J0401.9-2034_daily_bin1091.fits evtable="EVENTS" scfile=/scratch/kocevski/163202/ft2_4FGL_J0401.9-2034_daily_bin1091.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/163202/Model_4FGL_J0401.9-2034_daily_bin1091.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/163202/ft1_filtered_4FGL_J0401.9-2034_daily_bin1091.fits.....................!
real 108.73
user 104.25
sys 4.29

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10465E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10052E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    13.175       1.0000         .10000E-03   10000.    
     4 'Prefactor '    3.3568       1.0000         .10000E-03   10000.    
     5 'Prefactor '    32.818       1.0000         .10000E-03   10000.    
     6 'Prefactor '    72.398       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10053E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .25871E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    1.5391       1.0000         .10000E-03   10000.    
    11 'Prefactor '    27.363       1.0000         .10000E-03   10000.    
    12 'norm      '    .10311E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10125E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    1.0292       1.0000         .10000E-03   10000.    
    15 'norm      '    61.813       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10459E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10140E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .34658       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    7.9682       1.0000         .10000E-03   10000.    
    22 'Prefactor '    17.147       1.0000         .10000E-03   10000.    
    23 'Normalizat'    .96146       1.0000         .10000E-01   10.000    
    24 'Prefactor '    1.0397       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=   4716.379     FROM MIGRAD    STATUS=CONVERGED    562 CALLS     2387 TOTAL
                     EDM=   .77E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    147.39        .85789E-05** at limit **
   2  Prefactor     .10000E-03    2.6856       -.15450E-06** at limit **
   3  Prefactor     13.173        17.900        .15448E-06    .98255E-05
   4  Prefactor     3.3607        10.094       -.62036E-06    .95332E-04
   5  Prefactor     32.828        41.540       -.24242E-05   -.53444E-05
   6  Prefactor     72.418        55.572       -.45477E-05   -.50599E-04
   7  Prefactor     .10000E-03    2.3130       -.75261E-06** at limit **
   8  Prefactor     .10000E-03    2.5546       -.49433E-06** at limit **
   9  Prefactor     .10000E-03    2.0723       -.66052E-07** at limit **
  10  norm          1.5381        .93668        .33312E-07    .28722E-03
  11  Prefactor     27.365        25.179        .56264E-07    .77974E-06
  12  norm          .10000E-03    1.0065        .59562E-06** at limit **
  13  Prefactor     .10000E-03    26.856       -.48872E-06** at limit **
  14  Prefactor     1.0266        3.0682       -.36371E-05    .76925E-05
  15  norm          61.812        25.687        .14232E-06   -.71088E-04
  16  Prefactor     .10000E-03    52.597        .28603E-05** at limit **
  17  Prefactor     .10000E-03    5.7386       -.27525E-06** at limit **
  18  Prefactor     .10000E-03    4.2724        .36340E-07** at limit **
  19  Prefactor     .40112        99.113       -.19174E-04    .11052E-04
  20  Prefactor     .10000E-03    6.9061       -.14284E-06** at limit **
  21  Prefactor     7.9696        6.8088       -.25820E-07    .63124E-05
  22  Prefactor     17.141        40.395        .20234E-05    .18960E-04
  23  Normalizat    .96120        .21622        .22740E-05    .57539E-04
  24  Prefactor     1.0396        .18036        .15112E-05   -.44466E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 13.1727
  Prefactor  = 3.36074
  Prefactor  = 32.8284
  Prefactor  = 72.4178
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 1.53807
  Prefactor  = 27.3648
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 1.02665
  norm       = 61.8117
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.401117
  Prefactor  = 0.0001
  Prefactor  = 7.96957
  Prefactor  = 17.141
  Normalizat = 0.961197
  Prefactor  = 1.03956
 **********
 **   18 **HESSE 
 **********

 FCN=   4716.379     FROM HESSE     STATUS=OK           401 CALLS     2788 TOTAL
                     EDM=   .24E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    148.10        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    2.7054        .10987E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     13.173        17.919        .11035E-03   -1.4982    
   4  Prefactor     3.3607        10.133        .22088E-03   -1.5341    
   5  Prefactor     32.828        41.592        .69946E-04   -1.4561    
   6  Prefactor     72.418        56.088        .23591E-03   -1.4004    
   7  Prefactor     .10000E-03    2.3701        .20334E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    4.4879        .21048E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    2.0945        .96453E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          1.5381        .93533        .49580E-04   -1.5460    
  11  Prefactor     27.365        25.171        .76586E-04   -1.4661    
  12  norm          .10000E-03    7.3062        .12640E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    26.975        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     1.0266        3.0694        .19635E-03   -1.5505    
  15  norm          61.812        25.671        .51037E-04   -1.4134    
  16  Prefactor     .10000E-03    53.129        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    5.8100        .16066E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    4.3322        .13840E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .40112        98.395        .45210E-02   -1.5581    
  20  Prefactor     .10000E-03    6.9080        .17628E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     7.9696        6.8088        .14204E-03   -1.5143    
  22  Prefactor     17.141        40.428        .96722E-04   -1.4880    
  23  Normalizat    .96120        .24583        .27095E-03   -.94342    
  24  Prefactor     1.0396        .20623        .22428E-03   -.91422    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.446e-10
Minuit parameter uncertainties:
  1  0.000341142
  2  5.75524e-06
  3  17.9263
  4  10.1379
  5  41.6282
  6  56.1295
  7  7.72681e-06
  8  7.31309e-05
  9  2.05927e-08
  10  0.935342
  11  25.1807
  12  1.94467e-05
  13  4.52291e-06
  14  3.06982
  15  25.6754
  16  4.67958e-05
  17  2.1842e-05
  18  1.77786e-06
  19  12.5841
  20  6.13876e-06
  21  6.80945
  22  40.493
  23  0.246121
  24  0.206387
Done.

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

Extracting fit parameters...

4FGL J0401.9-2034
   Spectrum: PowerLaw
250    Prefactor:  1.027e+00  3.070e+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.040e+00  2.064e-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.612e-01  2.461e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.13
Ra Dec: 60.487 -20.580
Photon Flux Upper Limit: 1.13e-07 ph cm-2 s-1
Energy Flux Upper Limit: 8.70e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/163202/likelihoodResults_522115201_522374401_4FGL_J0401.9-2034_daily_bin1091.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) = 4716.13771467
delta logL = 0.241751147909

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4716.11414085
delta logL = 0.265324964299

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .68534       1.0000         .10000E-03   10000.    
     2 'Index     '    3.3229       1.0000          .0000       10.000    
     3 'Normalizat'    .92040       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0583       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=   4716.114     FROM MIGRAD    STATUS=CONVERGED     53 CALLS      211 TOTAL
                     EDM=   .65E-10    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .67990        19.020        .12005E-01    .93521E-03
   2  Index         3.3258        3.9071        .14126        .90596E-04
   3  Normalizat    .92070        .46657E-01    .45162E-01    .98860E-05
   4  Prefactor     1.0582        .39924E-01    .39444E-01    .19152E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.679898
  Index      = 3.32584
  Normalizat = 0.920705
  Prefactor  = 1.05824
 **********
 **   18 **HESSE 
 **********

 FCN=   4716.114     FROM HESSE     STATUS=OK            33 CALLS      244 TOTAL
                     EDM=   .48E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .67990        3.9916        .72639E-04   -1.5543    
   2  Index         3.3258        2.6449        .81381E-02   -.34143    
   3  Normalizat    .92070        .25014        .27623E-03   -.95736    
   4  Prefactor     1.0582        .20951        .22249E-03   -.90813    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.79385e-08
Minuit parameter uncertainties:
  1  3.29487
  2  2.80827
  3  0.250457
  4  0.209671
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/163202': 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) = 4716.11413498
delta logL = 0.265330832446

Extracting fit parameters...

4FGL J0401.9-2034
   Spectrum: PowerLaw
250    Prefactor:  6.799e-01  3.295e+00  1.000e-04  1.000e+04 ( 1.000e-12)
251        Index:  3.326e+00  2.808e+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.058e+00  2.097e-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.207e-01  2.505e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.13
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/163202/cmap_HighResolution_522115201_522374401_4FGL_J0401.9-2034_daily_bin1091.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='8.70e-03', job_status='DONE', photon_flux_upper_limit='1.13e-07', time_completed='2021-08-19 23:45:15.069971', job_id='163202', GAL2='1.06', fit_tolerance='1e-08', EG2='0.92', EG='0.96', time_epoch_completed='1629441915.07', return_code2='0', ts='0.13', comment='SUCCESS', return_code='0', GAL='1.04', dlogl='2.65e-01', ts2='0.70', photon_index_error='0.00', photon_index='2.31' WHERE bin_id='1091' AND source_name='4FGL J0401.9-2034' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Aug 19 23:45:15 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0207>
Subject: Job 163202: <4FGL_J0401.9-2034_daily_bin1091> in cluster <slac> Done

Job <4FGL_J0401.9-2034_daily_bin1091> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Thu Aug 19 23:30:48 2021
Job was executed on host(s) <bullet0207>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Aug 19 23:30:50 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:30:50 2021
Terminated at Thu Aug 19 23:45:16 2021
Results reported at Thu Aug 19 23:45:16 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0401.9-2034_daily_bin1091 60.4867 -20.5804 522115201 522374401 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 :                                   651.13 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             251.93 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   865 sec.
    Turnaround time :                            868 sec.

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

