Sender: LSF System <lsf@bullet0085>
Subject: Job 264334: <4FGL_J0059.4-5654_daily_bin222> in cluster <slac> Done

Job <4FGL_J0059.4-5654_daily_bin222> was submitted from host <rhel6-64q> by user <kocevski> in cluster <slac> at Fri Aug 13 07:50:35 2021
Job was executed on host(s) <bullet0085>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Aug 13 07:51:44 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Fri Aug 13 07:51:44 2021
Terminated at Fri Aug 13 08:26:50 2021
Results reported at Fri Aug 13 08:26:50 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0059.4-5654_daily_bin222 14.8643 -56.9089 296870401 297129601 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J0059.4-5654 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   2025.32 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             499.89 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   2105 sec.
    Turnaround time :                            2175 sec.

The output (if any) follows:

/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 56 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 = 7483
number of fields = 27
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J0059.4-5654_daily_bin222
RA = 14.8643, Dec = -56.9089
tmin = 296870401, tmax = 297129601
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='264334', job_status='RUN', time_executed='2021-08-13 07:52:52.296627', time_epoch_executed='1628866372.3' WHERE source_name='4FGL J0059.4-5654' and cadence='daily' and bin_id='222'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/264334

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/264334/ft1_4FGL_J0059.4-5654_daily_bin222.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/264334/ft2_4FGL_J0059.4-5654_daily_bin222.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/264334/ft1_4FGL_J0059.4-5654_daily_bin222.fits outfile=/scratch/kocevski/264334/ft1_filteredMKT_4FGL_J0059.4-5654_daily_bin222.fits ra=14.8643 dec=-56.9089 rad=12.0 tmin=296870401.0 tmax=297129601.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.70
user 3.42
sys 0.22

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/264334/ft2_4FGL_J0059.4-5654_daily_bin222.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/264334/ft2_4FGL_J0059.4-5654_daily_bin222.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/264334/ft1_filteredMKT_4FGL_J0059.4-5654_daily_bin222.fits evtable="EVENTS" outfile="/scratch/kocevski/264334/ft1_filtered_4FGL_J0059.4-5654_daily_bin222.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.70
user 0.33
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/264334/ft1_filtered_4FGL_J0059.4-5654_daily_bin222.fits" evtable="EVENTS" scfile=/scratch/kocevski/264334/ft2_4FGL_J0059.4-5654_daily_bin222.fits sctable="SC_DATA" outfile=/scratch/kocevski/264334/ltcube_296870401_297129601_4FGL_J0059.4-5654_daily_bin222.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/264334/ft2_4FGL_J0059.4-5654_daily_bin222.fits
.....................!
real 14.15
user 13.69
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/264334/ft1_filtered_4FGL_J0059.4-5654_daily_bin222.fits evtable="EVENTS" scfile=/scratch/kocevski/264334/ft2_4FGL_J0059.4-5654_daily_bin222.fits sctable="SC_DATA" expcube=/scratch/kocevski/264334/ltcube_296870401_297129601_4FGL_J0059.4-5654_daily_bin222.fits outfile=/scratch/kocevski/264334/expmap_296870401_297129601_4FGL_J0059.4-5654_daily_bin222.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/264334/ltcube_296870401_297129601_4FGL_J0059.4-5654_daily_bin222.fits
.....................!
real 192.71
user 185.48
sys 5.09

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 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 196 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 J0059.4-5654 @ 14.8643 -56.9089

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/264334/ft1_filtered_4FGL_J0059.4-5654_daily_bin222.fits scfile=/scratch/kocevski/264334/ft2_4FGL_J0059.4-5654_daily_bin222.fits outfile=/scratch/kocevski/264334/cmap_296870401_297129601_4FGL_J0059.4-5654_daily_bin222.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=14.8643 yref=-56.9089 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.61
user 0.38
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/264334/ft1_filtered_4FGL_J0059.4-5654_daily_bin222.fits scfile=/scratch/kocevski/264334/ft2_4FGL_J0059.4-5654_daily_bin222.fits outfile=/scratch/kocevski/264334/cmap_HighResolution_296870401_297129601_4FGL_J0059.4-5654_daily_bin222.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=14.8643 yref=-56.9089 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.55
user 0.38
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/264334/ft1_filtered_4FGL_J0059.4-5654_daily_bin222.fits evtable="EVENTS" scfile=/scratch/kocevski/264334/ft2_4FGL_J0059.4-5654_daily_bin222.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/264334/Model_4FGL_J0059.4-5654_daily_bin222.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 SMC-Galaxy
Working on...
/scratch/kocevski/264334/ft1_filtered_4FGL_J0059.4-5654_daily_bin222.fits.....................!
real 1393.78
user 1386.55
sys 1.52

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/264334/ft1_filtered_4FGL_J0059.4-5654_daily_bin222.fits', '/scratch/kocevski/264334/ft2_4FGL_J0059.4-5654_daily_bin222.fits', expMap='/scratch/kocevski/264334/expmap_296870401_297129601_4FGL_J0059.4-5654_daily_bin222.fits', expCube='/scratch/kocevski/264334/ltcube_296870401_297129601_4FGL_J0059.4-5654_daily_bin222.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/264334/Model_4FGL_J0059.4-5654_daily_bin222.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J0059.4-5654'

4FGL J0059.4-5654
   Spectrum: LogParabola
156         norm:  2.069e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-12)
157        alpha:  2.454e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
158         beta:  2.009e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
159           Eb:  7.467e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/264334/ft1_filtered_4FGL_J0059.4-5654_daily_bin222.fits
Spacecraft file(s): /scratch/kocevski/264334/ft2_4FGL_J0059.4-5654_daily_bin222.fits
Exposure map: /scratch/kocevski/264334/expmap_296870401_297129601_4FGL_J0059.4-5654_daily_bin222.fits
Exposure cube: /scratch/kocevski/264334/ltcube_296870401_297129601_4FGL_J0059.4-5654_daily_bin222.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/264334/Model_4FGL_J0059.4-5654_daily_bin222.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) = 5214.93569848

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10067E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    4.6683       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .37888E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10026E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    64.587       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .44847E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10019E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    2.6244       1.0000         .10000E-03   10000.    
    10 'Prefactor '    8.3144       1.0000         .10000E-03   10000.    
    11 'Prefactor '    42.101       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    2.6231       1.0000         .10000E-03   10000.    
    14 'Prefactor '    3.9484       1.0000         .10000E-03   10000.    
    15 'norm      '    .10071E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10069E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    5.7847       1.0000         .10000E-03   10000.    
    18 'Prefactor '    45.902       1.0000         .10000E-03   10000.    
    19 'Prefactor '    23.517       1.0000         .10000E-03   10000.    
    20 'Prefactor '    3.1910       1.0000         .10000E-03   10000.    
    21 'norm      '    .10005E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .85929E-03   1.0000         .10000E-03   10000.    
    23 'Normalizat'    1.2200       1.0000         .10000E-01   10.000    
    24 'Prefactor '    .69643       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6310E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   5214.918     FROM MIGRAD    STATUS=CONVERGED    544 CALLS     2743 TOTAL
                     EDM=   .72E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    40.727       -.10383E-06** at limit **
   2  Prefactor     4.6701        9.4916        .80522E-06    .42516E-04
   3  Prefactor     .10001E-03    5.5380       -.73972E-06** at limit **
   4  Prefactor     .10000E-03    6.1030       -.17601E-06** at limit **
   5  norm          64.576        44.657        .69400E-06    .27606E-04
   6  Prefactor     .10000E-03    2.0634        .36929E-07** at limit **
   7  norm          .10000E-03    4.2847       -.28891E-07** at limit **
   8  Prefactor     .10000E-03    23.157       -.11381E-05** at limit **
   9  norm          2.6266        3.8863        .14548E-06    .11472E-04
  10  Prefactor     8.3133        8.5040        .94320E-07    .10228E-04
  11  Prefactor     42.230        84.494       -.13940E-04   -.56850E-05
  12  Prefactor     .10000E-03    18.733        .82733E-06** at limit **
  13  norm          2.6218        7.0840        .28756E-05    .19212E-04
  14  Prefactor     3.9471        3.6615        .16286E-06    .28274E-04
  15  norm          .10000E-03    20.581        .21125E-06** at limit **
  16  Prefactor     .10000E-03    6.6882       -.90319E-07** at limit **
  17  norm          5.7842        3.1907       -.32487E-07    .18485E-04
  18  Prefactor     45.899        53.612        .55442E-06    .19740E-05
  19  Prefactor     23.509        18.821        .19122E-06    .75805E-04
  20  Prefactor     3.1926        4.2467       -.78714E-07    .13611E-03
  21  norm          .10000E-03    14.242       -.33008E-06** at limit **
  22  Prefactor     .10001E-03    3.2812       -.51290E-06** at limit **
  23  Normalizat    1.2202        .18993        .57708E-06    .12382E-03
  24  Prefactor     .69642        .18532       -.26024E-06    .98284E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 4.67013
  Prefactor  = 0.00010001
  Prefactor  = 0.0001
  norm       = 64.5761
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 2.62656
  Prefactor  = 8.31327
  Prefactor  = 42.2303
  Prefactor  = 0.0001
  norm       = 2.62179
  Prefactor  = 3.94706
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 5.78422
  Prefactor  = 45.8989
  Prefactor  = 23.5094
  Prefactor  = 3.19265
  norm       = 0.0001
  Prefactor  = 0.000100006
  Normalizat = 1.22018
  Prefactor  = 0.696423
 **********
 **   18 **HESSE 
 **********

 FCN=   5214.918     FROM HESSE     STATUS=OK           401 CALLS     3144 TOTAL
                     EDM=   .74E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    40.971        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     4.6701        9.4678        .93130E-03   -1.5276    
   3  Prefactor     .10001E-03    25.554        .32633E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    6.1583        .17421E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          64.576        44.547        .49935E-04   -1.4099    
   6  Prefactor     .10000E-03    25.955        .19172E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .10000E-03    4.3465        .14598E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    23.169        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          2.6266        3.7661        .16206E-03   -1.5384    
  10  Prefactor     8.3133        8.5082        .13903E-03   -1.5131    
  11  Prefactor     42.230        84.572        .30891E-03   -1.4407    
  12  Prefactor     .10000E-03    18.782        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          2.6218        7.0844        .12591E-02   -1.5384    
  14  Prefactor     3.9471        3.6579        .12947E-03   -1.5311    
  15  norm          .10000E-03    20.581        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    6.8646        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          5.7842        3.1812        .91649E-04   -1.5227    
  18  Prefactor     45.899        53.623        .59179E-04   -1.4352    
  19  Prefactor     23.509        18.743        .82600E-04   -1.4738    
  20  Prefactor     3.1926        4.1734        .16379E-03   -1.5351    
  21  norm          .10000E-03    14.269        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10001E-03    19.651        .24228E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Normalizat    1.2202        .21818        .21423E-03   -.85982    
  24  Prefactor     .69642        .21416        .27660E-03   -1.0367    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.39187e-10
Minuit parameter uncertainties:
  1  1.66241e-05
  2  9.47087
  3  0.00101177
  4  7.27272e-06
  5  44.5696
  6  0.000224165
  7  4.1451e-07
  8  9.14833e-06
  9  3.76644
  10  8.50948
  11  84.8137
  12  2.24587e-05
  13  7.08671
  14  3.65808
  15  1.31707e-06
  16  7.09825e-06
  17  3.18129
  18  53.6797
  19  18.7482
  20  4.1738
  21  5.45573e-06
  22  0.000710001
  23  0.218339
  24  0.214414
Done.

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

Extracting fit parameters...

4FGL J0059.4-5654
   Spectrum: LogParabola
156         norm:  2.627e+00  3.766e+00  1.000e-04  1.000e+04 ( 1.000e-12)
157        alpha:  2.454e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
158         beta:  2.009e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
159           Eb:  7.467e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
623    Prefactor:  6.964e-01  2.144e-01  0.000e+00  1.000e+01 ( 1.000e+00)
624        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
625        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
622   Normalization:  1.220e+00  2.183e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.70
Ra Dec: 14.864 -56.909
Photon Flux Upper Limit: 7.80e-08 ph cm-2 s-1
Energy Flux Upper Limit: 2.50e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/264334/likelihoodResults_296870401_297129601_4FGL_J0059.4-5654_daily_bin222.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) = 5214.82805265
delta logL = 0.0901394793955

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5214.82674752
delta logL = 0.0914446091156

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    1.9500       1.0000         .10000E-03   10000.    
     2 'alpha     '    3.0222       1.0000          .0000       5.0000    
     3 'Normalizat'    1.2083       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .70347       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6310E+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=   5214.827     FROM MIGRAD    STATUS=CONVERGED     83 CALLS      293 TOTAL
                     EDM=   .67E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          1.9502        3.8418        .12219E-03   -.76575E-04
   2  alpha         3.0224        1.4345        .22533E-01    .12820E-03
   3  Normalizat    1.2083        .21257        .21511E-03    .10576E-03
   4  Prefactor     .70344        .21152        .27530E-03    .10072E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 1.95022
  alpha      = 3.02237
  Normalizat = 1.20834
  Prefactor  = 0.703444
 **********
 **   18 **HESSE 
 **********

 FCN=   5214.827     FROM HESSE     STATUS=OK            25 CALLS      318 TOTAL
                     EDM=   .24E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          1.9502        3.4618        .48874E-05   -1.5429    
   2  alpha         3.0224        1.3081        .45066E-02    .21050    
   3  Normalizat    1.2083        .21247        .43023E-04   -.86345    
   4  Prefactor     .70344        .21148        .11012E-04   -1.0339    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.44515e-11
Minuit parameter uncertainties:
  1  3.46216
  2  1.38029
  3  0.212621
  4  0.211717
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/264334': 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) = 5214.82674746
delta logL = 0.0914446769193

Extracting fit parameters...

4FGL J0059.4-5654
   Spectrum: LogParabola
156         norm:  1.950e+00  3.462e+00  1.000e-04  1.000e+04 ( 1.000e-12)
157        alpha:  3.022e+00  1.380e+00  0.000e+00  5.000e+00 ( 1.000e+00)
158         beta:  2.009e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
159           Eb:  7.467e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
623    Prefactor:  7.034e-01  2.117e-01  0.000e+00  1.000e+01 ( 1.000e+00)
624        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
625        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
622   Normalization:  1.208e+00  2.126e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.70
Ra Dec: 14.864 -56.909

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/264334/cmap_HighResolution_296870401_297129601_4FGL_J0059.4-5654_daily_bin222.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.50e-05', job_status='DONE', photon_flux_upper_limit='7.80e-08', time_completed='2021-08-13 08:26:49.106442', job_id='264334', GAL2='0.70', fit_tolerance='1e-08', EG2='1.21', EG='1.22', time_epoch_completed='1628868409.11', return_code2='0', ts='0.70', comment='SUCCESS', return_code='0', GAL='0.70', dlogl='9.14e-02', ts2='0.90', photon_index_error='0.00', photon_index='2.45' WHERE bin_id='222' AND source_name='4FGL J0059.4-5654' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Aug 13 08:26:49 PDT 2021

