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


Performing analysis on: 4FGL_J0343.2-2529_daily_bin1581
RA = 55.8136, Dec = -25.4943
tmin = 649123201, tmax = 649382401
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='788884', job_status='RUN', time_executed='2021-08-19 01:09:40.190348', time_epoch_executed='1629360580.19' WHERE source_name='4FGL J0343.2-2529' and cadence='daily' and bin_id='1581'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/788884

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/788884/ft1_4FGL_J0343.2-2529_daily_bin1581.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/788884/ft2_4FGL_J0343.2-2529_daily_bin1581.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/788884/ft1_4FGL_J0343.2-2529_daily_bin1581.fits outfile=/scratch/kocevski/788884/ft1_filteredMKT_4FGL_J0343.2-2529_daily_bin1581.fits ra=55.8136 dec=-25.4943 rad=12.0 tmin=649123201.0 tmax=649382401.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.88
user 2.80
sys 1.05

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/788884/ft1_filtered_4FGL_J0343.2-2529_daily_bin1581.fits" evtable="EVENTS" scfile=/scratch/kocevski/788884/ft2_4FGL_J0343.2-2529_daily_bin1581.fits sctable="SC_DATA" outfile=/scratch/kocevski/788884/ltcube_649123201_649382401_4FGL_J0343.2-2529_daily_bin1581.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/788884/ft2_4FGL_J0343.2-2529_daily_bin1581.fits
.....................!
real 13.24
user 11.90
sys 1.30

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/788884/ft1_filtered_4FGL_J0343.2-2529_daily_bin1581.fits evtable="EVENTS" scfile=/scratch/kocevski/788884/ft2_4FGL_J0343.2-2529_daily_bin1581.fits sctable="SC_DATA" expcube=/scratch/kocevski/788884/ltcube_649123201_649382401_4FGL_J0343.2-2529_daily_bin1581.fits outfile=/scratch/kocevski/788884/expmap_649123201_649382401_4FGL_J0343.2-2529_daily_bin1581.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/788884/ltcube_649123201_649382401_4FGL_J0343.2-2529_daily_bin1581.fits
.....................!
real 191.14
user 185.11
sys 5.65

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/788884/ft1_filtered_4FGL_J0343.2-2529_daily_bin1581.fits scfile=/scratch/kocevski/788884/ft2_4FGL_J0343.2-2529_daily_bin1581.fits outfile=/scratch/kocevski/788884/cmap_649123201_649382401_4FGL_J0343.2-2529_daily_bin1581.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.42
user 0.36
sys 1.01

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/788884/ft1_filtered_4FGL_J0343.2-2529_daily_bin1581.fits scfile=/scratch/kocevski/788884/ft2_4FGL_J0343.2-2529_daily_bin1581.fits outfile=/scratch/kocevski/788884/cmap_HighResolution_649123201_649382401_4FGL_J0343.2-2529_daily_bin1581.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.43
user 0.38
sys 1.03

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/788884/ft1_filtered_4FGL_J0343.2-2529_daily_bin1581.fits evtable="EVENTS" scfile=/scratch/kocevski/788884/ft2_4FGL_J0343.2-2529_daily_bin1581.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/788884/Model_4FGL_J0343.2-2529_daily_bin1581.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/788884/ft1_filtered_4FGL_J0343.2-2529_daily_bin1581.fits.....................!
real 141.39
user 138.43
sys 2.45

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    .43387       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .30909E-01   1.0000         .10000E-03   10000.    
     4 'norm      '    11.847       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10015E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10516E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    6.7563       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    52.791       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    2.9456       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    2.9864       1.0000         .10000E-03   10000.    
    14 'Prefactor '    6.8245       1.0000         .10000E-03   10000.    
    15 'norm      '    4.1901       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .10304E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10065E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    3.4980       1.0000         .10000E-03   10000.    
    21 'norm      '    17.414       1.0000         .10000E-03   10000.    
    22 'Prefactor '    26.156       1.0000         .10000E-03   10000.    
    23 'norm      '    .54269       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    25 'Normalizat'    .85602       1.0000         .10000E-01   10.000    
    26 'Prefactor '    1.1355       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.

 FCN=   6487.736     FROM MIGRAD    STATUS=CONVERGED   1124 CALLS     3721 TOTAL
                     EDM=   .99E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    20.875        .18142E-02** at limit **
   2  norm          .43428        2.6141        .24468E-03    .23929E-04
   3  Prefactor     .10003E-03    15.887        .78447E-01** at limit **
   4  norm          11.848        4.5757        .10154E-03   -.15250E-03
   5  Prefactor     .10001E-03    129.87        .18142E-02** at limit **
   6  Prefactor     .10039E-03    2.4643        .42759E-01** at limit **
   7  Prefactor     6.7511        14.295        .15437E-03    .81895E-04
   8  Prefactor     .10000E-03    10.221        .18142E-02** at limit **
   9  Prefactor     52.793        38.845        .27601E-03   -.10635E-04
  10  Prefactor     .10000E-03    15.179        .18142E-02** at limit **
  11  Prefactor     2.9456        1.9053        .85921E-04   -.96326E-04
  12  Prefactor     .10000E-03    2.9121        .26419E-03** at limit **
  13  Prefactor     2.9866        2.6890        .11988E-03   -.76855E-04
  14  Prefactor     6.8245        10.651        .76793E-03   -.15604E-04
  15  norm          4.1901        1.1359        .42303E-04   -.14136E-03
  16  Prefactor     .10000E-03    36.033        .18142E-02** at limit **
  17  norm          .10000E-03    1.4264        .13216E-02** at limit **
  18  Prefactor     .10000E-03    31.491        .18142E-02** at limit **
  19  Prefactor     .10000E-03    39.570        .18142E-02** at limit **
  20  Prefactor     3.4971        2.8376        .11583E-03   -.18806E-03
  21  norm          17.415        15.309        .95977E-04   -.62780E-05
  22  Prefactor     26.150        30.020        .78329E-04   -.10305E-04
  23  norm          .54267        .30061        .31895E-04    .14044E-03
  24  Prefactor     .10000E-03    2.3756        .12006E-02** at limit **
  25  Normalizat    .85622        .20610        .26596E-03   -.20586E-03
  26  Prefactor     1.1352        .20219        .24123E-03   -.18674E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 0.434281
  Prefactor  = 0.00010003
  norm       = 11.8477
  Prefactor  = 0.000100005
  Prefactor  = 0.000100393
  Prefactor  = 6.75108
  Prefactor  = 0.0001
  Prefactor  = 52.7928
  Prefactor  = 0.0001
  Prefactor  = 2.94558
  Prefactor  = 0.0001
  Prefactor  = 2.98658
  Prefactor  = 6.82455
  norm       = 4.19014
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 3.49712
  norm       = 17.4153
  Prefactor  = 26.1503
  norm       = 0.542665
  Prefactor  = 0.0001
  Normalizat = 0.856216
  Prefactor  = 1.13524
 **********
 **   18 **HESSE 
 **********

 FCN=   6487.736     FROM HESSE     STATUS=OK           452 CALLS     4173 TOTAL
                     EDM=   .99E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    20.877        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .43428        2.6128        .97871E-05   -1.5576    
   3  Prefactor     .10003E-03    14.611        .82761E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          11.848        4.5750        .40615E-05   -1.5019    
   5  Prefactor     .10001E-03    129.88        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10039E-03    2.4843        .42417E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     6.7511        14.294        .61747E-05   -1.5188    
   8  Prefactor     .10000E-03    10.221        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     52.793        38.845        .55201E-04   -1.4254    
  10  Prefactor     .10000E-03    15.180        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     2.9456        1.9051        .34368E-05   -1.5365    
  12  Prefactor     .10000E-03    2.9122        .52837E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     2.9866        2.6889        .23976E-04   -1.5362    
  14  Prefactor     6.8245        10.650        .30717E-04   -1.5185    
  15  norm          4.1901        1.1359        .84605E-05   -1.5299    
  16  Prefactor     .10000E-03    36.050        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .10000E-03    1.4310        .26431E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    31.491        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    39.607        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     3.4971        2.8373        .46331E-05   -1.5334    
  21  norm          17.415        15.307        .38391E-05   -1.4873    
  22  Prefactor     26.150        30.017        .31332E-05   -1.4685    
  23  norm          .54267        .30061        .12758E-05   -1.5561    
  24  Prefactor     .10000E-03    2.3764        .24012E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Normalizat    .85622        .20629        .10638E-04   -.98016    
  26  Prefactor     1.1352        .20238        .48246E-04   -.88348    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.91555e-10
Minuit parameter uncertainties:
  1  4.43414e-05
  2  2.13032
  3  0.00133142
  4  4.57514
  5  0.00167144
  6  0.00197581
  7  14.3012
  8  3.988e-06
  9  38.8632
  10  3.44294e-06
  11  1.90517
  12  9.95084e-06
  13  2.68901
  14  10.6532
  15  1.13587
  16  0.000116643
  17  2.31177e-05
  18  0.000285345
  19  0.000262921
  20  2.83737
  21  15.3109
  22  30.0346
  23  0.300608
  24  4.91196e-06
  25  0.206482
  26  0.202519
Done.

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

Extracting fit parameters...

4FGL J0343.2-2529
   Spectrum: PowerLaw
248    Prefactor:  1.000e-04  9.951e-06  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.135e+00  2.025e-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:  8.562e-01  2.065e-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: 7.38e-08 ph cm-2 s-1
Energy Flux Upper Limit: 5.75e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/788884/likelihoodResults_649123201_649382401_4FGL_J0343.2-2529_daily_bin1581.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) = 6487.73746636
delta logL = -0.00163876393526

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6487.735828
delta logL = -4.0017766878e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10146E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.5278       1.0000          .0000       10.000    
     3 'Normalizat'    .85616       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1353       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=   6487.736     FROM MIGRAD    STATUS=FAILED        89 CALLS      244 TOTAL
                     EDM=   .37E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10041E-03    294.35        .26503E-03** at limit **
   2  Index         2.4873        8.6985        .50000        .18578E-04
   3  Normalizat    .85622        .48299E-01    .26596E-03    .58392E-04
   4  Prefactor     1.1352        .49941E-01    .24123E-03    .63952E-04
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   6487.736     FROM SIMPLEX   STATUS=UNCHANGED    159 CALLS      403 TOTAL
                     EDM=   .11E-04    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10041E-03    294.35        .28387E-03** at limit **
   2  Index         2.4873        8.6985        .70852E-04    .18578E-04
   3  Normalizat    .85622        .48299E-01    .24278E-05    .58392E-04
   4  Prefactor     1.1352        .49941E-01    .11734E-05    .63952E-04
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   6487.736     FROM MIGRAD    STATUS=CONVERGED     38 CALLS      441 TOTAL
                     EDM=   .11E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    4.6437        .53006E-04** at limit **
   2  Index         2.3747        5.1451        .50000        .23999E-06
   3  Normalizat    .85622        .19318        .10638E-04   -.27165E-03
   4  Prefactor     1.1352        .19985        .96493E-05   -.29761E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 2.37467
  Normalizat = 0.856216
  Prefactor  = 1.13524
 **********
 **   18 **HESSE 
 **********

 FCN=   6487.736     FROM HESSE     STATUS=OK            29 CALLS      470 TOTAL
                     EDM=   .12E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    3.0435        .10601E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.3747        5.8382        .50000       -.55279    
   3  Normalizat    .85622        .19349        .21276E-05   -.98016    
   4  Prefactor     1.1352        .20017        .19299E-05   -.88348    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.19654e-10
Minuit parameter uncertainties:
  1  1.88168e-05
  2  86.8185
  3  0.193643
  4  0.200307
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/788884': 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) = 6487.7358271
delta logL = 4.96573193232e-07

Extracting fit parameters...

4FGL J0343.2-2529
   Spectrum: PowerLaw
248    Prefactor:  1.000e-04  1.882e-05  1.000e-04  1.000e+04 ( 1.000e-12)
249        Index:  2.375e+00  8.682e+01  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.135e+00  2.003e-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:  8.562e-01  1.936e-01  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  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/788884/cmap_HighResolution_649123201_649382401_4FGL_J0343.2-2529_daily_bin1581.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.75e-03', job_status='DONE', photon_flux_upper_limit='7.38e-08', time_completed='2021-08-19 01:23:38.173299', job_id='788884', GAL2='1.14', fit_tolerance='1e-08', EG2='0.86', EG='0.86', time_epoch_completed='1629361418.17', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.14', dlogl='4.97e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.54' WHERE bin_id='1581' AND source_name='4FGL J0343.2-2529' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Aug 19 01:23:38 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0044>
Subject: Job 788884: <4FGL_J0343.2-2529_daily_bin1581> in cluster <slac> Done

Job <4FGL_J0343.2-2529_daily_bin1581> 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) <bullet0044>, 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:23:39 2021
Results reported at Thu Aug 19 01:23:39 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0343.2-2529_daily_bin1581 55.8136 -25.4943 649123201 649382401 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 :                                   848.00 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             355.76 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   881 sec.
    Turnaround time :                            883 sec.

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

