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


Performing analysis on: 4FGL_J0343.2-2529_daily_bin1083
RA = 55.8136, Dec = -25.4943
tmin = 520041601, tmax = 520300801
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='783695', job_status='RUN', time_executed='2021-08-19 00:55:56.813661', time_epoch_executed='1629359756.81' WHERE source_name='4FGL J0343.2-2529' and cadence='daily' and bin_id='1083'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/783695

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/783695/ft1_4FGL_J0343.2-2529_daily_bin1083.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/783695/ft2_4FGL_J0343.2-2529_daily_bin1083.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/783695/ft1_4FGL_J0343.2-2529_daily_bin1083.fits outfile=/scratch/kocevski/783695/ft1_filteredMKT_4FGL_J0343.2-2529_daily_bin1083.fits ra=55.8136 dec=-25.4943 rad=12.0 tmin=520041601.0 tmax=520300801.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.84
user 4.02
sys 2.75

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/783695/ft2_4FGL_J0343.2-2529_daily_bin1083.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/783695/ft2_4FGL_J0343.2-2529_daily_bin1083.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/783695/ft1_filteredMKT_4FGL_J0343.2-2529_daily_bin1083.fits evtable="EVENTS" outfile="/scratch/kocevski/783695/ft1_filtered_4FGL_J0343.2-2529_daily_bin1083.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.96
user 0.30
sys 2.49

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/783695/ft1_filtered_4FGL_J0343.2-2529_daily_bin1083.fits" evtable="EVENTS" scfile=/scratch/kocevski/783695/ft2_4FGL_J0343.2-2529_daily_bin1083.fits sctable="SC_DATA" outfile=/scratch/kocevski/783695/ltcube_520041601_520300801_4FGL_J0343.2-2529_daily_bin1083.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/783695/ft2_4FGL_J0343.2-2529_daily_bin1083.fits
.....................!
real 14.57
user 11.48
sys 3.02

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/783695/ft1_filtered_4FGL_J0343.2-2529_daily_bin1083.fits evtable="EVENTS" scfile=/scratch/kocevski/783695/ft2_4FGL_J0343.2-2529_daily_bin1083.fits sctable="SC_DATA" expcube=/scratch/kocevski/783695/ltcube_520041601_520300801_4FGL_J0343.2-2529_daily_bin1083.fits outfile=/scratch/kocevski/783695/expmap_520041601_520300801_4FGL_J0343.2-2529_daily_bin1083.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/783695/ltcube_520041601_520300801_4FGL_J0343.2-2529_daily_bin1083.fits
.....................!
real 194.38
user 185.81
sys 8.10

Generating the xml model:
radLim = 0.001
maxRad = 12
normsOnly = True
freeVariableSources = True
Fixing all sources to their catalog values, except variable sources
Creating file and adding sources from 4FGL
Extended source Fornax A in ROI, make sure /nfs/farm/g/glast/g/LCRepository/Likelihood/ExtendedSources/Extended_archive_v18/Templates/FornaxA.fits is the correct path to the extended template.
Added 154 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 J0343.2-2529 @ 55.8136 -25.4943

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/783695/ft1_filtered_4FGL_J0343.2-2529_daily_bin1083.fits scfile=/scratch/kocevski/783695/ft2_4FGL_J0343.2-2529_daily_bin1083.fits outfile=/scratch/kocevski/783695/cmap_520041601_520300801_4FGL_J0343.2-2529_daily_bin1083.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=55.8136 yref=-25.4943 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.92
user 0.37
sys 2.48

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/783695/ft1_filtered_4FGL_J0343.2-2529_daily_bin1083.fits scfile=/scratch/kocevski/783695/ft2_4FGL_J0343.2-2529_daily_bin1083.fits outfile=/scratch/kocevski/783695/cmap_HighResolution_520041601_520300801_4FGL_J0343.2-2529_daily_bin1083.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=55.8136 yref=-25.4943 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.92
user 0.37
sys 2.51

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/783695/ft1_filtered_4FGL_J0343.2-2529_daily_bin1083.fits evtable="EVENTS" scfile=/scratch/kocevski/783695/ft2_4FGL_J0343.2-2529_daily_bin1083.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/783695/Model_4FGL_J0343.2-2529_daily_bin1083.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/783695/ft1_filtered_4FGL_J0343.2-2529_daily_bin1083.fits.....................!
real 146.00
user 141.20
sys 4.49

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/783695/ft1_filtered_4FGL_J0343.2-2529_daily_bin1083.fits', '/scratch/kocevski/783695/ft2_4FGL_J0343.2-2529_daily_bin1083.fits', expMap='/scratch/kocevski/783695/expmap_520041601_520300801_4FGL_J0343.2-2529_daily_bin1083.fits', expCube='/scratch/kocevski/783695/ltcube_520041601_520300801_4FGL_J0343.2-2529_daily_bin1083.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/783695/Model_4FGL_J0343.2-2529_daily_bin1083.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J0343.2-2529'

4FGL J0343.2-2529
   Spectrum: PowerLaw
248    Prefactor:  1.449e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-12)
249        Index:  2.537e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
250        Scale:  7.195e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/783695/ft1_filtered_4FGL_J0343.2-2529_daily_bin1083.fits
Spacecraft file(s): /scratch/kocevski/783695/ft2_4FGL_J0343.2-2529_daily_bin1083.fits
Exposure map: /scratch/kocevski/783695/expmap_520041601_520300801_4FGL_J0343.2-2529_daily_bin1083.fits
Exposure cube: /scratch/kocevski/783695/ltcube_520041601_520300801_4FGL_J0343.2-2529_daily_bin1083.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/783695/Model_4FGL_J0343.2-2529_daily_bin1083.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) = 6615.57111842

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    6.6245       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    2.0670       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    1.3358       1.0000         .10000E-03   10000.    
    12 'Prefactor '    1.7978       1.0000         .10000E-03   10000.    
    13 'Prefactor '    1.2969       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    4.0664       1.0000         .10000E-03   10000.    
    16 'Prefactor '    10.654       1.0000         .10000E-03   10000.    
    17 'norm      '    1.4192       1.0000         .10000E-03   10000.    
    18 'Prefactor '    39.674       1.0000         .10000E-03   10000.    
    19 'Prefactor '    32.419       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    .10006E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    27.052       1.0000         .10000E-03   10000.    
    23 'norm      '    .23134       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10419E-03   1.0000         .10000E-03   10000.    
    25 'Normalizat'    .69039       1.0000         .10000E-01   10.000    
    26 'Prefactor '    1.1032       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .4920E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   6615.552     FROM MIGRAD    STATUS=CONVERGED    614 CALLS     3129 TOTAL
                     EDM=   .30E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    11.424        .90712E-02** at limit **
   2  norm          6.6243        2.8559        .38978E-02    .80425E-04
   3  Prefactor     .10000E-03    4.5056        .90712E-02** at limit **
   4  norm          2.0668        1.9168        .71843E-02    .81295E-04
   5  Prefactor     .10000E-03    114.73        .90712E-02** at limit **
   6  Prefactor     .10000E-03    1.0666        .90712E-02** at limit **
   7  Prefactor     .10000E-03    7.0973        .90712E-02** at limit **
   8  Prefactor     .10000E-03    9.9710        .90712E-02** at limit **
   9  Prefactor     .10000E-03    37.678        .90712E-02** at limit **
  10  Prefactor     .10000E-03    16.965        .90712E-02** at limit **
  11  Prefactor     1.3357        2.2164        .94896E-02    .95999E-03
  12  Prefactor     1.7973        3.5049        .77955E-02    .81443E-03
  13  Prefactor     1.2974        3.0470        .97076E-02    .10138E-02
  14  Prefactor     .10000E-03    4.9288        .90712E-02** at limit **
  15  norm          4.0664        1.0475        .49986E-03    .21545E-03
  16  Prefactor     10.653        18.970        .30687E-02   -.23225E-04
  17  norm          1.4193        1.1020        .90801E-02    .51726E-03
  18  Prefactor     39.673        51.282        .15909E-02    .24510E-03
  19  Prefactor     32.419        23.017        .17594E-02   -.44283E-04
  20  Prefactor     .10000E-03    .69036        .90712E-02** at limit **
  21  norm          .10000E-03    4.4032        .90712E-02** at limit **
  22  Prefactor     27.053        20.592        .19256E-02    .11746E-03
  23  norm          .23131        .23324        .80642E-02    .10421E-02
  24  Prefactor     .10000E-03    4.3892        .90712E-02** at limit **
  25  Normalizat    .69046        .14759        .42162E-01    .52613E-04
  26  Prefactor     1.1031        .15118        .37467E-01    .24404E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 6.62433
  Prefactor  = 0.000100004
  norm       = 2.06675
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 1.33571
  Prefactor  = 1.79727
  Prefactor  = 1.29738
  Prefactor  = 0.0001
  norm       = 4.06636
  Prefactor  = 10.6531
  norm       = 1.41928
  Prefactor  = 39.6733
  Prefactor  = 32.4193
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 27.0534
  norm       = 0.231313
  Prefactor  = 0.000100003
  Normalizat = 0.690462
  Prefactor  = 1.10312
 **********
 **   18 **HESSE 
 **********

 FCN=   6615.552     FROM HESSE     STATUS=OK           458 CALLS     3587 TOTAL
                     EDM=   .21E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    11.432        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          6.6243        2.8557        .86867E-04   -1.5193    
   3  Prefactor     .10000E-03    4.5252        .16860E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          2.0668        1.9089        .10517E-03   -1.5420    
   5  Prefactor     .10000E-03    114.78        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    1.0707        .82027E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    7.1332        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    9.9821        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    37.824        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    16.977        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     1.3357        2.1492        .13944E-03   -1.5477    
  12  Prefactor     1.7973        3.3886        .18389E-03   -1.5440    
  13  Prefactor     1.2974        2.9167        .18891E-03   -1.5480    
  14  Prefactor     .10000E-03    4.9545        .17634E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          4.0664        1.0444        .19994E-04   -1.5305    
  16  Prefactor     10.653        18.945        .12275E-03   -1.5055    
  17  norm          1.4193        1.0775        .69480E-04   -1.5470    
  18  Prefactor     39.673        51.281        .63637E-04   -1.4447    
  19  Prefactor     32.419        22.981        .70375E-04   -1.4569    
  20  Prefactor     .10000E-03    .69878        .65954E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          .10000E-03    4.4102        .16665E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     27.053        20.586        .77023E-04   -1.4667    
  23  norm          .23131        .21808        .37954E-03   -1.5612    
  24  Prefactor     .10000E-03    4.5702        .33219E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Normalizat    .69046        .16397        .25705E-03   -1.0427    
  26  Prefactor     1.1031        .16926        .22005E-03   -.89367    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.10695e-09
Minuit parameter uncertainties:
  1  7.63102e-05
  2  2.85578
  3  0.000275627
  4  1.90896
  5  0.000122996
  6  1.94989e-07
  7  2.12392e-05
  8  3.7709e-05
  9  6.56021e-05
  10  2.79638e-05
  11  2.1493
  12  3.38898
  13  2.91706
  14  3.37341e-05
  15  1.04439
  16  18.9557
  17  1.07753
  18  51.3385
  19  22.9876
  20  4.52012e-07
  21  5.89488e-05
  22  20.5912
  23  0.218082
  24  0.000240696
  25  0.164087
  26  0.169342
Done.

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

Extracting fit parameters...

4FGL J0343.2-2529
   Spectrum: PowerLaw
248    Prefactor:  1.797e+00  3.389e+00  1.000e-04  1.000e+04 ( 1.000e-12)
249        Index:  2.537e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
250        Scale:  7.195e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
489    Prefactor:  1.103e+00  1.693e-01  0.000e+00  1.000e+01 ( 1.000e+00)
490        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
491        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
485   Normalization:  6.905e-01  1.641e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.40
Ra Dec: 55.814 -25.494
Photon Flux Upper Limit: 9.03e-08 ph cm-2 s-1
Energy Flux Upper Limit: 7.04e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/783695/likelihoodResults_520041601_520300801_4FGL_J0343.2-2529_daily_bin1083.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) = 6615.2840462
delta logL = 0.2678649897

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6615.26779011
delta logL = 0.284121078782

Fit tolerance = 1e-08

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

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

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   6615.268     FROM MIGRAD    STATUS=CONVERGED     52 CALLS      250 TOTAL
                     EDM=   .28E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .51345        8.3964        .11335E-01    .20495E-02
   2  Index         3.9691        3.3821        .14708        .13485E-03
   3  Normalizat    .65765        .29839E-01    .41721E-01    .17089E-05
   4  Prefactor     1.1258        .31809E-01    .36677E-01   -.14601E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.513446
  Index      = 3.96907
  Normalizat = 0.657648
  Prefactor  = 1.12584
 **********
 **   18 **HESSE 
 **********

 FCN=   6615.268     FROM HESSE     STATUS=NOT POSDEF    31 CALLS      281 TOTAL
                     EDM=   .92E-10    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .51345        28.384        .60304E-04   -1.5565    
   2  Index         3.9691        6.6545        .79403E-02   -.20768    
   3  Normalizat    .65765        .14155        .26265E-03   -1.0559    
   4  Prefactor     1.1258        .14796        .21811E-03   -.88645    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 9.16354e-11
Minuit parameter uncertainties:
  1  7.63819
  2  9.21172
  3  0.141626
  4  0.148016
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/783695': 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) = 6615.26778929
delta logL = 0.284121895831

Extracting fit parameters...

4FGL J0343.2-2529
   Spectrum: PowerLaw
248    Prefactor:  5.134e-01  7.638e+00  1.000e-04  1.000e+04 ( 1.000e-12)
249        Index:  3.969e+00  9.212e+00  0.000e+00  1.000e+01 (-1.000e+00)
250        Scale:  7.195e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
489    Prefactor:  1.126e+00  1.480e-01  0.000e+00  1.000e+01 ( 1.000e+00)
490        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
491        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
485   Normalization:  6.576e-01  1.416e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.04
Ra Dec: 55.814 -25.494
Photon Index (Free Index): 3.97 +/- 9.21
Photon Flux (Free Index): 4.38e-08 +/- 4.72e-08
Energy Flux (Free Index): 6.58e-06 +/- 1.12e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to -2.500e-04 [aplpy.core]
INFO: Auto-setting vmax to  2.775e-03 [aplpy.core]
Saving /scratch/kocevski/783695/cmap_HighResolution_520041601_520300801_4FGL_J0343.2-2529_daily_bin1083.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='7.04e-03', comment='SUCCESS', energy_flux2='6.58e-06', dlogl='2.84e-01', photon_flux2='4.38e-08', job_status='DONE', time_completed='2021-08-19 01:09:45.889083', photon_index_error2='9.21', photon_index2='3.97', ts='0.40', fit_tolerance='1e-08', GAL='1.10', photon_index_error='0.00', photon_flux_upper_limit='9.03e-08', energy_flux_error2='1.12e-05', EG='0.69', time_epoch_completed='1629360585.89', return_code='0', job_id='783695', GAL2='1.13', EG2='0.66', return_code2='102', photon_flux_error2='4.72e-08', ts2='1.04', photon_index='2.54' WHERE bin_id='1083' AND source_name='4FGL J0343.2-2529' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Aug 19 01:09:45 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0207>
Subject: Job 783695: <4FGL_J0343.2-2529_daily_bin1083> in cluster <slac> Done

Job <4FGL_J0343.2-2529_daily_bin1083> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Thu Aug 19 00:54:07 2021
Job was executed on host(s) <bullet0207>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Aug 19 00:54:10 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Thu Aug 19 00:54:10 2021
Terminated at Thu Aug 19 01:09:47 2021
Results reported at Thu Aug 19 01:09:47 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0343.2-2529_daily_bin1083 55.8136 -25.4943 520041601 520300801 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J0343.2-2529 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   866.29 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             319.41 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   936 sec.
    Turnaround time :                            940 sec.

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

