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


Performing analysis on: 4FGL_J0331.3-6156_daily_bin1629
RA = 52.8438, Dec = -61.9365
tmin = 661564801, tmax = 661824001
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='403854', job_status='RUN', time_executed='2021-12-22 01:56:37.482738', time_epoch_executed='1640166997.48' WHERE source_name='4FGL J0331.3-6156' and cadence='daily' and bin_id='1629'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/403854

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/403854/ft1_4FGL_J0331.3-6156_daily_bin1629.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/403854/ft2_4FGL_J0331.3-6156_daily_bin1629.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/403854/ft1_4FGL_J0331.3-6156_daily_bin1629.fits outfile=/scratch/kocevski/403854/ft1_filteredMKT_4FGL_J0331.3-6156_daily_bin1629.fits ra=52.8438 dec=-61.9365 rad=12.0 tmin=661564801.0 tmax=661824001.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 2.97
user 2.73
sys 0.20

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/403854/ft2_4FGL_J0331.3-6156_daily_bin1629.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/403854/ft2_4FGL_J0331.3-6156_daily_bin1629.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/403854/ft1_filteredMKT_4FGL_J0331.3-6156_daily_bin1629.fits evtable="EVENTS" outfile="/scratch/kocevski/403854/ft1_filtered_4FGL_J0331.3-6156_daily_bin1629.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.44
user 0.28
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/403854/ft1_filtered_4FGL_J0331.3-6156_daily_bin1629.fits" evtable="EVENTS" scfile=/scratch/kocevski/403854/ft2_4FGL_J0331.3-6156_daily_bin1629.fits sctable="SC_DATA" outfile=/scratch/kocevski/403854/ltcube_661564801_661824001_4FGL_J0331.3-6156_daily_bin1629.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/403854/ft2_4FGL_J0331.3-6156_daily_bin1629.fits
.....................!
real 14.81
user 14.47
sys 0.30

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/403854/ft1_filtered_4FGL_J0331.3-6156_daily_bin1629.fits evtable="EVENTS" scfile=/scratch/kocevski/403854/ft2_4FGL_J0331.3-6156_daily_bin1629.fits sctable="SC_DATA" expcube=/scratch/kocevski/403854/ltcube_661564801_661824001_4FGL_J0331.3-6156_daily_bin1629.fits outfile=/scratch/kocevski/403854/expmap_661564801_661824001_4FGL_J0331.3-6156_daily_bin1629.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/403854/ltcube_661564801_661824001_4FGL_J0331.3-6156_daily_bin1629.fits
.....................!
real 155.52
user 151.05
sys 4.17

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 LMC-FarWest in ROI, make sure /nfs/farm/g/glast/g/LCRepository/Likelihood/ExtendedSources/Extended_archive_v18/Templates/LMC-FarWest.fits is the correct path to the extended template.
Extended source LMC-Galaxy in ROI, make sure /nfs/farm/g/glast/g/LCRepository/Likelihood/ExtendedSources/Extended_archive_v18/Templates/LMC-Galaxy.fits is the correct path to the extended template.
Extended source LMC-30DorWest in ROI, make sure /nfs/farm/g/glast/g/LCRepository/Likelihood/ExtendedSources/Extended_archive_v18/Templates/LMC-30DorWest.fits is the correct path to the extended template.
Extended source LMC-North in ROI, make sure /nfs/farm/g/glast/g/LCRepository/Likelihood/ExtendedSources/Extended_archive_v18/Templates/LMC-North.fits is the correct path to the extended template.
Extended source SMC-Galaxy in ROI, make sure /nfs/farm/g/glast/g/LCRepository/Likelihood/ExtendedSources/Extended_archive_v18/Templates/SMC-Galaxy.fits is the correct path to the extended template.
Added 192 point sources and 5 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 J0331.3-6156 @ 52.8438 -61.9365

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/403854/ft1_filtered_4FGL_J0331.3-6156_daily_bin1629.fits scfile=/scratch/kocevski/403854/ft2_4FGL_J0331.3-6156_daily_bin1629.fits outfile=/scratch/kocevski/403854/cmap_661564801_661824001_4FGL_J0331.3-6156_daily_bin1629.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=52.8438 yref=-61.9365 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.49
user 0.34
sys 0.13

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/403854/ft1_filtered_4FGL_J0331.3-6156_daily_bin1629.fits scfile=/scratch/kocevski/403854/ft2_4FGL_J0331.3-6156_daily_bin1629.fits outfile=/scratch/kocevski/403854/cmap_HighResolution_661564801_661824001_4FGL_J0331.3-6156_daily_bin1629.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=52.8438 yref=-61.9365 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.50
user 0.32
sys 0.17

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/403854/ft1_filtered_4FGL_J0331.3-6156_daily_bin1629.fits evtable="EVENTS" scfile=/scratch/kocevski/403854/ft2_4FGL_J0331.3-6156_daily_bin1629.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/403854/Model_4FGL_J0331.3-6156_daily_bin1629.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 GAL_V02
adding source LMC-30DorWest
adding source LMC-FarWest
adding source LMC-Galaxy
adding source LMC-North
adding source SMC-Galaxy
Working on...
/scratch/kocevski/403854/ft1_filtered_4FGL_J0331.3-6156_daily_bin1629.fits.....................!
real 5273.84
user 5263.78
sys 1.11

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/403854/ft1_filtered_4FGL_J0331.3-6156_daily_bin1629.fits', '/scratch/kocevski/403854/ft2_4FGL_J0331.3-6156_daily_bin1629.fits', expMap='/scratch/kocevski/403854/expmap_661564801_661824001_4FGL_J0331.3-6156_daily_bin1629.fits', expCube='/scratch/kocevski/403854/ltcube_661564801_661824001_4FGL_J0331.3-6156_daily_bin1629.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/403854/Model_4FGL_J0331.3-6156_daily_bin1629.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J0331.3-6156'

4FGL J0331.3-6156
   Spectrum: PowerLaw
287    Prefactor:  1.850e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-13)
288        Index:  2.005e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
289        Scale:  1.971e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/403854/ft1_filtered_4FGL_J0331.3-6156_daily_bin1629.fits
Spacecraft file(s): /scratch/kocevski/403854/ft2_4FGL_J0331.3-6156_daily_bin1629.fits
Exposure map: /scratch/kocevski/403854/expmap_661564801_661824001_4FGL_J0331.3-6156_daily_bin1629.fits
Exposure cube: /scratch/kocevski/403854/ltcube_661564801_661824001_4FGL_J0331.3-6156_daily_bin1629.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/403854/Model_4FGL_J0331.3-6156_daily_bin1629.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) = 7582.65701381

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .47944       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .42492       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10032E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    .10018E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    .32785       1.0000         .10000E-03   10000.    
     6 'Prefactor '    1.1423       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    3.1841       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    470.83       1.0000         .10000E-03   10000.    
    12 'Prefactor '    1.3744       1.0000         .10000E-03   10000.    
    13 'norm      '    .10128E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    9.8798       1.0000         .10000E-03   10000.    
    15 'Prefactor '    31.047       1.0000         .10000E-03   10000.    
    16 'Prefactor '    4.5888       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10019E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    9.8824       1.0000         .10000E-03   10000.    
    19 'Prefactor '    17.616       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10051E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    7.7321       1.0000         .10000E-03   10000.    
    22 'norm      '    4.5192       1.0000         .10000E-03   10000.    
    23 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    7.5780       1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    18.325       1.0000         .10000E-03   10000.    
    27 'Prefactor '    .10013E-03   1.0000         .10000E-03   10000.    
    28 'Normalizat'    .93806       1.0000         .10000E-01   10.000    
    29 'Prefactor '    .78462       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6380E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   7582.630     FROM MIGRAD    STATUS=CONVERGED    714 CALLS     3781 TOTAL
                     EDM=   .19E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .47969        4.7113       -.30911E-05   -.54445E-03
   2  Prefactor     .35627        6.6105        .35645E-05   -.10588E-02
   3  Prefactor     .10000E-03    17.961       -.59341E-05** at limit **
   4  norm          .10000E-03    4.6835       -.19608E-05** at limit **
   5  norm          .32717        1.1573       -.27871E-06   -.31704E-03
   6  Prefactor     1.1416        1.7818       -.13463E-06   -.16851E-03
   7  Prefactor     .10000E-03    3.8566        .42679E-06** at limit **
   8  Prefactor     .10000E-03    14.867       -.90014E-05** at limit **
   9  Prefactor     3.1837        3.2044       -.41426E-06   -.58944E-04
  10  Prefactor     .10000E-03    5.3797        .28786E-05** at limit **
  11  Prefactor     470.82        77.172       -.29084E-05   -.12728E-03
  12  Prefactor     1.3745        2.1073        .10984E-05   -.22171E-02
  13  norm          .10000E-03    9.1136        .40652E-05** at limit **
  14  norm          9.8795        1.7031       -.94920E-07   -.10928E-02
  15  Prefactor     31.052        28.729        .26419E-05    .68603E-05
  16  Prefactor     4.5865        5.2475       -.61473E-06   -.62522E-03
  17  Prefactor     .10000E-03    19.460        .16324E-05** at limit **
  18  Prefactor     9.8805        8.0600       -.88579E-07   -.24809E-03
  19  Prefactor     17.612        13.867       -.22033E-06   -.19995E-04
  20  Prefactor     .10000E-03    20.071        .59602E-05** at limit **
  21  Prefactor     7.7286        15.378       -.20916E-05   -.27684E-05
  22  norm          4.5193        3.7492       -.75097E-06   -.24669E-04
  23  norm          .10000E-03    1.3989        .17282E-07** at limit **
  24  Prefactor     7.5304        17.919       -.15089E-04   -.40718E-04
  25  Prefactor     .10000E-03    10.002        .63397E-05** at limit **
  26  Prefactor     18.324        13.806        .16872E-06    .15121E-04
  27  Prefactor     .10000E-03    7.9710       -.72119E-05** at limit **
  28  Normalizat    .93798        .16520        .16087E-05   -.14954E-03
  29  Prefactor     .78487        .13545        .11486E-05   -.13751E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.479689
  Prefactor  = 0.356274
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.327171
  Prefactor  = 1.14157
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 3.18372
  Prefactor  = 0.0001
  Prefactor  = 470.823
  Prefactor  = 1.3745
  norm       = 0.0001
  norm       = 9.87946
  Prefactor  = 31.052
  Prefactor  = 4.58654
  Prefactor  = 0.0001
  Prefactor  = 9.88046
  Prefactor  = 17.6124
  Prefactor  = 0.0001
  Prefactor  = 7.72864
  norm       = 4.51926
  norm       = 0.0001
  Prefactor  = 7.5304
  Prefactor  = 0.0001
  Prefactor  = 18.3245
  Prefactor  = 0.0001
  Normalizat = 0.937984
  Prefactor  = 0.784866
 **********
 **   18 **HESSE 
 **********

 FCN=   7582.630     FROM HESSE     STATUS=OK           559 CALLS     4340 TOTAL
                     EDM=   .26E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .47969        4.7061        .35205E-03   -1.5569    
   2  Prefactor     .35627        38.449        .41057E-02   -1.5589    
   3  Prefactor     .10000E-03    17.996        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          .10000E-03    4.6824        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .32717        1.1673        .16866E-03   -1.5594    
   6  Prefactor     1.1416        1.7341        .13966E-03   -1.5494    
   7  Prefactor     .10000E-03    3.8570        .16701E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    14.882        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     3.1837        3.2075        .14964E-03   -1.5351    
  10  Prefactor     .10000E-03    5.3840        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     470.82        77.169        .94421E-04   -1.1333    
  12  Prefactor     1.3745        5.7742        .18582E-02   -1.5473    
  13  norm          .10000E-03    9.4055        .36285E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          9.8795        1.7050        .43514E-04   -1.5079    
  15  Prefactor     31.052        28.949        .71908E-04   -1.4593    
  16  Prefactor     4.5865        5.2700        .93953E-03   -1.5280    
  17  Prefactor     .10000E-03    19.545        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     9.8805        8.0713        .63734E-03   -1.5079    
  19  Prefactor     17.612        13.876        .95426E-04   -1.4868    
  20  Prefactor     .10000E-03    20.242        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     7.7286        15.406        .14421E-03   -1.5152    
  22  norm          4.5193        3.7373        .14294E-03   -1.5283    
  23  norm          .10000E-03    1.4024        .10057E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     7.5304        17.982        .14568E-03   -1.5159    
  25  Prefactor     .10000E-03    10.006        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     18.324        13.810        .93562E-04   -1.4852    
  27  Prefactor     .10000E-03    7.9667        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Normalizat    .93798        .18698        .26494E-03   -.95138    
  29  Prefactor     .78487        .15325        .24440E-03   -1.0029    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.59966e-08
Minuit parameter uncertainties:
  1  3.00496
  2  7.40611
  3  4.19041e-05
  4  1.91327e-06
  5  1.16734
  6  1.73415
  7  2.01229e-07
  8  4.10725e-05
  9  3.20766
  10  3.21709e-06
  11  77.1859
  12  5.63513
  13  5.38568e-05
  14  1.70498
  15  28.9616
  16  5.27051
  17  1.97959e-05
  18  8.07214
  19  13.8781
  20  3.7919e-05
  21  15.4138
  22  3.73745
  23  5.56579e-07
  24  17.9948
  25  1.88319e-05
  26  13.8123
  27  8.38502e-06
  28  0.187107
  29  0.153332
Done.

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

Extracting fit parameters...

4FGL J0331.3-6156
   Spectrum: PowerLaw
287    Prefactor:  9.880e+00  8.072e+00  1.000e-04  1.000e+04 ( 1.000e-13)
288        Index:  2.005e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
289        Scale:  1.971e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
617    Prefactor:  7.849e-01  1.533e-01  0.000e+00  1.000e+01 ( 1.000e+00)
618        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
619        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
616   Normalization:  9.380e-01  1.871e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 2.48
Ra Dec: 52.844 -61.937
Photon Index (Fixed Index): 2.00 +/- 0.00
Photon Flux (Fixed Index): 3.87e-08 +/- 3.16e-08
Energy Flux (Fixed Index): 2.64e-05 +/- 2.16e-05

TS (Fixed Index): 2.48
Ra Dec: 52.844 -61.937
Photon Flux Upper Limit: 1.06e-07 ph cm-2 s-1
Energy Flux Upper Limit: 7.97e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/403854/likelihoodResults_661564801_661824001_4FGL_J0331.3-6156_daily_bin1629.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) = 7578.26705676
delta logL = 4.36284432236

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 7578.26187386
delta logL = 4.36802722569

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .64574       1.0000         .10000E-03   10000.    
     2 'Index     '    3.7987       1.0000          .0000       10.000    
     3 'Normalizat'    .80301       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .84841       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6380E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   7578.262     FROM MIGRAD    STATUS=CONVERGED     53 CALLS      281 TOTAL
                     EDM=   .33E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .64554        2.5531        .53059E-02    .14672E-02
   2  Index         3.7991        1.4223        .52812E-01    .34901E-03
   3  Normalizat    .80281        .58723E-01    .63699E-01    .20593E-04
   4  Prefactor     .84853        .49008E-01    .44344E-01    .82641E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.645538
  Index      = 3.79911
  Normalizat = 0.802812
  Prefactor  = 0.848531
 **********
 **   18 **HESSE 
 **********

 FCN=   7578.262     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      314 TOTAL
                     EDM=   .38E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .64554        3.9280        .23672E-04   -1.5547    
   2  Index         3.7991        1.8924        .22116E-02   -.24255    
   3  Normalizat    .80281        .17721        .28177E-03   -.99964    
   4  Prefactor     .84853        .14933        .23508E-03   -.97963    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 3.81081e-10
Minuit parameter uncertainties:
  1  3.18481
  2  1.94397
  3  0.177341
  4  0.149399
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/403854': 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) = 7578.26187201
delta logL = 4.36802907622

Extracting fit parameters...

4FGL J0331.3-6156
   Spectrum: PowerLaw
287    Prefactor:  6.455e-01  3.185e+00  1.000e-04  1.000e+04 ( 1.000e-13)
288        Index:  3.799e+00  1.944e+00  0.000e+00  1.000e+01 (-1.000e+00)
289        Scale:  1.971e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
617    Prefactor:  8.485e-01  1.494e-01  0.000e+00  1.000e+01 ( 1.000e+00)
618        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
619        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
616   Normalization:  8.028e-01  1.773e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 11.66
Ra Dec: 52.844 -61.937
Photon Index (Free Index): 3.80 +/- 1.94
Photon Flux (Free Index): 1.92e-07 +/- 7.60e-08
Energy Flux (Free Index): 2.98e-05 +/- 1.22e-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/403854/cmap_HighResolution_661564801_661824001_4FGL_J0331.3-6156_daily_bin1629.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='7.97e-03', comment='SUCCESS', photon_flux='3.87e-08', energy_flux2='2.98e-05', photon_flux_error='3.16e-08', dlogl='4.37e+00', energy_flux='2.64e-05', photon_flux2='1.92e-07', job_status='DONE', time_completed='2021-12-22 03:38:28.560841', photon_index_error2='1.94', photon_index2='3.80', ts='2.48', fit_tolerance='1e-08', GAL='0.78', photon_index_error='0.00', photon_flux_upper_limit='1.06e-07', energy_flux_error2='1.22e-05', EG='0.94', time_epoch_completed='1640173108.56', return_code='0', job_id='403854', GAL2='0.85', EG2='0.80', return_code2='102', energy_flux_error='2.16e-05', photon_flux_error2='7.60e-08', ts2='11.66', photon_index='2.00' WHERE bin_id='1629' AND source_name='4FGL J0331.3-6156' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Dec 22 03:38:28 PST 2021



------------------------------------------------------------
Sender: LSF System <lsf@bullet0095>
Subject: Job 403031: <4FGL_J0331.3-6156_daily_bin1629> in cluster <slac> Done

Job <4FGL_J0331.3-6156_daily_bin1629> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Wed Dec 22 00:05:54 2021
Job was executed on host(s) <bullet0095>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Dec 22 01:16:56 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Wed Dec 22 01:16:56 2021
Terminated at Wed Dec 22 02:58:08 2021
Results reported at Wed Dec 22 02:58:08 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0331.3-6156_daily_bin1629 52.8438 -61.9365 661564801 661824001 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J0331.3-6156 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   5987.00 sec.
    Max Memory :                                 672 MB
    Average Memory :                             567.92 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   6071 sec.
    Turnaround time :                            10334 sec.

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


------------------------------------------------------------
Sender: LSF System <lsf@bullet0095>
Subject: Job 403854: <4FGL_J0331.3-6156_daily_bin1629> in cluster <slac> Done

Job <4FGL_J0331.3-6156_daily_bin1629> was submitted from host <rhel6-64q> by user <kocevski> in cluster <slac> at Wed Dec 22 00:06:47 2021
Job was executed on host(s) <bullet0095>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Dec 22 01:56:29 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Wed Dec 22 01:56:29 2021
Terminated at Wed Dec 22 03:38:29 2021
Results reported at Wed Dec 22 03:38:29 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0331.3-6156_daily_bin1629 52.8438 -61.9365 661564801 661824001 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J0331.3-6156 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   6106.00 sec.
    Max Memory :                                 1258 MB
    Average Memory :                             588.22 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   6120 sec.
    Turnaround time :                            12702 sec.

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

