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


Performing analysis on: 4FGL_J0343.2-2529_daily_bin1580
RA = 55.8136, Dec = -25.4943
tmin = 648864001, tmax = 649123201
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='788882', job_status='RUN', time_executed='2021-08-19 01:09:48.129075', time_epoch_executed='1629360588.13' WHERE source_name='4FGL J0343.2-2529' and cadence='daily' and bin_id='1580'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/788882

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/788882/ft1_4FGL_J0343.2-2529_daily_bin1580.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/788882/ft2_4FGL_J0343.2-2529_daily_bin1580.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/788882/ft1_4FGL_J0343.2-2529_daily_bin1580.fits outfile=/scratch/kocevski/788882/ft1_filteredMKT_4FGL_J0343.2-2529_daily_bin1580.fits ra=55.8136 dec=-25.4943 rad=12.0 tmin=648864001.0 tmax=649123201.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 3.86
user 2.77
sys 1.07

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/788882/ft2_4FGL_J0343.2-2529_daily_bin1580.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/788882/ft1_filteredMKT_4FGL_J0343.2-2529_daily_bin1580.fits evtable="EVENTS" outfile="/scratch/kocevski/788882/ft1_filtered_4FGL_J0343.2-2529_daily_bin1580.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.43
user 0.35
sys 1.01

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/788882/ft1_filtered_4FGL_J0343.2-2529_daily_bin1580.fits" evtable="EVENTS" scfile=/scratch/kocevski/788882/ft2_4FGL_J0343.2-2529_daily_bin1580.fits sctable="SC_DATA" outfile=/scratch/kocevski/788882/ltcube_648864001_649123201_4FGL_J0343.2-2529_daily_bin1580.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/788882/ft2_4FGL_J0343.2-2529_daily_bin1580.fits
.....................!
real 14.06
user 12.71
sys 1.29

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/788882/ft1_filtered_4FGL_J0343.2-2529_daily_bin1580.fits evtable="EVENTS" scfile=/scratch/kocevski/788882/ft2_4FGL_J0343.2-2529_daily_bin1580.fits sctable="SC_DATA" expcube=/scratch/kocevski/788882/ltcube_648864001_649123201_4FGL_J0343.2-2529_daily_bin1580.fits outfile=/scratch/kocevski/788882/expmap_648864001_649123201_4FGL_J0343.2-2529_daily_bin1580.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/788882/ltcube_648864001_649123201_4FGL_J0343.2-2529_daily_bin1580.fits
.....................!
real 191.74
user 186.05
sys 5.28

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/788882/ft1_filtered_4FGL_J0343.2-2529_daily_bin1580.fits scfile=/scratch/kocevski/788882/ft2_4FGL_J0343.2-2529_daily_bin1580.fits outfile=/scratch/kocevski/788882/cmap_648864001_649123201_4FGL_J0343.2-2529_daily_bin1580.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 1.40
user 0.39
sys 0.99

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/788882/ft1_filtered_4FGL_J0343.2-2529_daily_bin1580.fits scfile=/scratch/kocevski/788882/ft2_4FGL_J0343.2-2529_daily_bin1580.fits outfile=/scratch/kocevski/788882/cmap_HighResolution_648864001_649123201_4FGL_J0343.2-2529_daily_bin1580.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 1.40
user 0.39
sys 1.01

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/788882/ft1_filtered_4FGL_J0343.2-2529_daily_bin1580.fits evtable="EVENTS" scfile=/scratch/kocevski/788882/ft2_4FGL_J0343.2-2529_daily_bin1580.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/788882/Model_4FGL_J0343.2-2529_daily_bin1580.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/788882/ft1_filtered_4FGL_J0343.2-2529_daily_bin1580.fits.....................!
real 172.64
user 169.90
sys 2.38

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/788882/ft1_filtered_4FGL_J0343.2-2529_daily_bin1580.fits', '/scratch/kocevski/788882/ft2_4FGL_J0343.2-2529_daily_bin1580.fits', expMap='/scratch/kocevski/788882/expmap_648864001_649123201_4FGL_J0343.2-2529_daily_bin1580.fits', expCube='/scratch/kocevski/788882/ltcube_648864001_649123201_4FGL_J0343.2-2529_daily_bin1580.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/788882/Model_4FGL_J0343.2-2529_daily_bin1580.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/788882/ft1_filtered_4FGL_J0343.2-2529_daily_bin1580.fits
Spacecraft file(s): /scratch/kocevski/788882/ft2_4FGL_J0343.2-2529_daily_bin1580.fits
Exposure map: /scratch/kocevski/788882/expmap_648864001_649123201_4FGL_J0343.2-2529_daily_bin1580.fits
Exposure cube: /scratch/kocevski/788882/ltcube_648864001_649123201_4FGL_J0343.2-2529_daily_bin1580.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/788882/Model_4FGL_J0343.2-2529_daily_bin1580.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) = 7839.25240268

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    69.259       1.0000         .10000E-03   10000.    
     2 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .20948E-01   1.0000         .10000E-03   10000.    
     4 'norm      '    1.6270       1.0000         .10000E-03   10000.    
     5 'Prefactor '    168.32       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10296E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    8.8051       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10022E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    8.4802       1.0000         .10000E-03   10000.    
    11 'Prefactor '    3.1336       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10242E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10020E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .20372E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    2.3557       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10037E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .15084E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    .10011E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    19.896       1.0000         .10000E-03   10000.    
    23 'norm      '    .58286       1.0000         .10000E-03   10000.    
    24 'Prefactor '    5.1746       1.0000         .10000E-03   10000.    
    25 'Normalizat'    .95529       1.0000         .10000E-01   10.000    
    26 'Prefactor '    .98128       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.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   7839.246     FROM MIGRAD    STATUS=CONVERGED    662 CALLS     3218 TOTAL
                     EDM=   .19E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     69.284        49.583        .20748E-04    .14497E-03
   2  norm          .10000E-03    1.1249       -.96742E-07** at limit **
   3  Prefactor     .10036E-03    12.000       -.92074E-05** at limit **
   4  norm          1.6271        2.4104       -.75182E-06   -.12866E-03
   5  Prefactor     168.34        172.37        .16808E-04   -.19349E-03
   6  Prefactor     .10000E-03    1.7100        .11842E-07** at limit **
   7  Prefactor     .10000E-03    9.6056        .52873E-07** at limit **
   8  Prefactor     8.8006        20.557        .16835E-05   -.59867E-04
   9  Prefactor     .10000E-03    9.8344       -.10385E-06** at limit **
  10  Prefactor     8.4813        17.269       -.13285E-05   -.41748E-03
  11  Prefactor     3.1338        1.9445       -.14319E-07   -.36544E-03
  12  Prefactor     .10000E-03    1.6589        .12869E-06** at limit **
  13  Prefactor     .10000E-03    1.8207        .14766E-06** at limit **
  14  Prefactor     .10000E-03    6.0948        .41340E-06** at limit **
  15  norm          2.3557        .77418        .41759E-07   -.15925E-03
  16  Prefactor     .10000E-03    15.941       -.13374E-06** at limit **
  17  norm          .10000E-03    .30910        .45924E-07** at limit **
  18  Prefactor     .10000E-03    59.319       -.73581E-06** at limit **
  19  Prefactor     .10000E-03    3.7718        .17699E-07** at limit **
  20  Prefactor     .10000E-03    1.2371        .61061E-07** at limit **
  21  norm          .10000E-03    14.536        .23506E-06** at limit **
  22  Prefactor     19.892        15.921        .34369E-06   -.39722E-04
  23  norm          .58283        .25389        .23288E-07   -.37955E-03
  24  Prefactor     5.1743        3.7104        .12297E-06   -.35745E-03
  25  Normalizat    .95526        .14858       -.26161E-05    .11318E-02
  26  Prefactor     .98135        .14603        .57544E-06    .52236E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 69.2836
  norm       = 0.0001
  Prefactor  = 0.000100361
  norm       = 1.62706
  Prefactor  = 168.339
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 8.80064
  Prefactor  = 0.0001
  Prefactor  = 8.48128
  Prefactor  = 3.13376
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 2.35567
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 19.8925
  norm       = 0.58283
  Prefactor  = 5.17429
  Normalizat = 0.955258
  Prefactor  = 0.981354
 **********
 **   18 **HESSE 
 **********

 FCN=   7839.246     FROM HESSE     STATUS=OK           464 CALLS     3682 TOTAL
                     EDM=   .41E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     69.284        54.809        .48233E-04   -1.4041    
   2  norm          .10000E-03    1.1526        .18328E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10036E-03    16.018        .79033E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          1.6271        2.3903        .16050E-03   -1.5453    
   5  Prefactor     168.34        170.24        .15547E-03   -1.3106    
   6  Prefactor     .10000E-03    1.7544        .22606E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    9.7271        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     8.8006        20.542        .13508E-03   -1.5115    
   9  Prefactor     .10000E-03    9.8376        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     8.4813        17.391        .68829E-03   -1.5125    
  11  Prefactor     3.1338        1.9132        .91484E-04   -1.5354    
  12  Prefactor     .10000E-03    3.3947        .21487E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    3.6563        .22350E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    28.841        .42170E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          2.3557        .77178        .42684E-04   -1.5401    
  16  Prefactor     .10000E-03    16.137        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .10000E-03    .56129        .94794E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    59.460        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    3.7747        .16794E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    1.2885        .19202E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          .10000E-03    14.952        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     19.892        15.901        .89793E-04   -1.4816    
  23  norm          .58283        .25168        .28412E-04   -1.5555    
  24  Prefactor     5.1743        3.7049        .13785E-03   -1.5253    
  25  Normalizat    .95526        .16997        .23621E-03   -.94545    
  26  Prefactor     .98135        .16962        .24085E-03   -.93354    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.13047e-09
Minuit parameter uncertainties:
  1  54.8488
  2  1.05241e-05
  3  0.00481188
  4  2.39047
  5  170.739
  6  1.66231e-06
  7  1.49318e-05
  8  20.5584
  9  1.03774e-05
  10  17.4017
  11  1.91326
  12  2.44585e-05
  13  2.94483e-05
  14  7.64893e-05
  15  0.771787
  16  4.48579e-05
  17  3.54432e-06
  18  0.00019252
  19  3.27538e-06
  20  6.63671e-06
  21  5.1272e-06
  22  15.9044
  23  0.251681
  24  3.70511
  25  0.170067
  26  0.169712
Done.

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

Extracting fit parameters...

4FGL J0343.2-2529
   Spectrum: PowerLaw
248    Prefactor:  1.000e-04  2.446e-05  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:  9.814e-01  1.697e-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:  9.553e-01  1.701e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/788882/likelihoodResults_648864001_649123201_4FGL_J0343.2-2529_daily_bin1580.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) = 7839.24713871
delta logL = -0.00140297998314

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 7839.24573762
delta logL = -1.88413014257e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .11221E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.5490       1.0000          .0000       10.000    
     3 'Normalizat'    .95530       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .98136       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.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   7839.246     FROM MIGRAD    STATUS=FAILED        97 CALLS      261 TOTAL
                     EDM=   .56E-06    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10128E-03    43.935        .21420E-02** at limit **
   2  Index         2.6427        6.3213        .50000       -.19326E-04
   3  Normalizat    .95525        .12722E-01    .23621E-03    .37686E-04
   4  Prefactor     .98136        .13199E-01    .24085E-03    .18881E-04
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   7839.246     FROM SIMPLEX   STATUS=PROGRESS     126 CALLS      387 TOTAL
                     EDM=   .66E-05    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10058E-03    43.935        .27069E-03** at limit **
   2  Index         2.6415        6.3213        .36087E-03   -.19326E-04
   3  Normalizat    .95525        .12722E-01    .21543E-05    .37686E-04
   4  Prefactor     .98135        .13199E-01    .25984E-05    .18881E-04
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   7839.246     FROM MIGRAD    STATUS=CONVERGED     51 CALLS      438 TOTAL
                     EDM=   .16E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    205.51        .42841E-03** at limit **
   2  Index         2.7623        6.1990        .50000        .35625E-06
   3  Normalizat    .95525        .28754E-01    .94483E-05    .72676E-04
   4  Prefactor     .98136        .29817E-01    .96338E-05    .31626E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 2.76233
  Normalizat = 0.955252
  Prefactor  = 0.981358
 **********
 **   18 **HESSE 
 **********

 FCN=   7839.246     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      467 TOTAL
                     EDM=   .54E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    700.45        .85681E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.7623        6.0229        .50000       -.46401    
   3  Normalizat    .95525        .78865E-01    .18897E-05   -.94545    
   4  Prefactor     .98136        .80685E-01    .19268E-05   -.93354    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 5.37508e-09
Minuit parameter uncertainties:
  1  0.000169541
  2  1215.42
  3  0.0788749
  4  0.0806952
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/788882': 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) = 7839.24573481
delta logL = 9.23663719732e-07

Extracting fit parameters...

4FGL J0343.2-2529
   Spectrum: PowerLaw
248    Prefactor:  1.000e-04  1.695e-04  1.000e-04  1.000e+04 ( 1.000e-12)
249        Index:  2.762e+00  1.215e+03  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:  9.814e-01  8.070e-02  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:  9.553e-01  7.887e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 55.814 -25.494

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/788882/cmap_HighResolution_648864001_649123201_4FGL_J0343.2-2529_daily_bin1580.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.51e-03', job_status='DONE', photon_flux_upper_limit='5.79e-08', time_completed='2021-08-19 01:25:06.175138', job_id='788882', GAL2='0.98', fit_tolerance='1e-08', EG2='0.96', EG='0.96', time_epoch_completed='1629361506.18', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.98', dlogl='9.24e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.54' WHERE bin_id='1580' AND source_name='4FGL J0343.2-2529' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Aug 19 01:25:06 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0030>
Subject: Job 788882: <4FGL_J0343.2-2529_daily_bin1580> in cluster <slac> Done

Job <4FGL_J0343.2-2529_daily_bin1580> was submitted from host <rhel6-64q> by user <kocevski> in cluster <slac> at Thu Aug 19 01:08:56 2021
Job was executed on host(s) <bullet0030>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Aug 19 01:08:57 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Thu Aug 19 01:08:57 2021
Terminated at Thu Aug 19 01:25:07 2021
Results reported at Thu Aug 19 01:25:07 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0343.2-2529_daily_bin1580 55.8136 -25.4943 648864001 649123201 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 :                                   924.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             392.30 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   969 sec.
    Turnaround time :                            971 sec.

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

