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


Performing analysis on: 4FGL_J0345.2-2353_daily_bin1422
RA = 56.3187, Dec = -23.885
tmin = 607910401, tmax = 608169601
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='943827', job_status='RUN', time_executed='2021-08-19 11:04:26.436672', time_epoch_executed='1629396266.44' WHERE source_name='4FGL J0345.2-2353' and cadence='daily' and bin_id='1422'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/943827

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/943827/ft1_4FGL_J0345.2-2353_daily_bin1422.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/943827/ft2_4FGL_J0345.2-2353_daily_bin1422.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/943827/ft1_4FGL_J0345.2-2353_daily_bin1422.fits outfile=/scratch/kocevski/943827/ft1_filteredMKT_4FGL_J0345.2-2353_daily_bin1422.fits ra=56.3187 dec=-23.885 rad=12.0 tmin=607910401.0 tmax=608169601.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.87
user 3.33
sys 3.52

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/943827/ft2_4FGL_J0345.2-2353_daily_bin1422.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/943827/ft2_4FGL_J0345.2-2353_daily_bin1422.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/943827/ft1_filteredMKT_4FGL_J0345.2-2353_daily_bin1422.fits evtable="EVENTS" outfile="/scratch/kocevski/943827/ft1_filtered_4FGL_J0345.2-2353_daily_bin1422.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 3.75
user 0.32
sys 3.41

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/943827/ft1_filtered_4FGL_J0345.2-2353_daily_bin1422.fits" evtable="EVENTS" scfile=/scratch/kocevski/943827/ft2_4FGL_J0345.2-2353_daily_bin1422.fits sctable="SC_DATA" outfile=/scratch/kocevski/943827/ltcube_607910401_608169601_4FGL_J0345.2-2353_daily_bin1422.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/943827/ft2_4FGL_J0345.2-2353_daily_bin1422.fits
.....................!
real 16.14
user 11.73
sys 4.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/943827/ft1_filtered_4FGL_J0345.2-2353_daily_bin1422.fits evtable="EVENTS" scfile=/scratch/kocevski/943827/ft2_4FGL_J0345.2-2353_daily_bin1422.fits sctable="SC_DATA" expcube=/scratch/kocevski/943827/ltcube_607910401_608169601_4FGL_J0345.2-2353_daily_bin1422.fits outfile=/scratch/kocevski/943827/expmap_607910401_608169601_4FGL_J0345.2-2353_daily_bin1422.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/943827/ltcube_607910401_608169601_4FGL_J0345.2-2353_daily_bin1422.fits
.....................!
real 194.42
user 185.17
sys 8.73

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 155 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 J0345.2-2353 @ 56.3187 -23.885

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/943827/ft1_filtered_4FGL_J0345.2-2353_daily_bin1422.fits scfile=/scratch/kocevski/943827/ft2_4FGL_J0345.2-2353_daily_bin1422.fits outfile=/scratch/kocevski/943827/cmap_607910401_608169601_4FGL_J0345.2-2353_daily_bin1422.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=56.3187 yref=-23.885 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 3.82
user 0.36
sys 3.44

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/943827/ft1_filtered_4FGL_J0345.2-2353_daily_bin1422.fits scfile=/scratch/kocevski/943827/ft2_4FGL_J0345.2-2353_daily_bin1422.fits outfile=/scratch/kocevski/943827/cmap_HighResolution_607910401_608169601_4FGL_J0345.2-2353_daily_bin1422.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=56.3187 yref=-23.885 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 3.54
user 0.38
sys 3.13

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/943827/ft1_filtered_4FGL_J0345.2-2353_daily_bin1422.fits evtable="EVENTS" scfile=/scratch/kocevski/943827/ft2_4FGL_J0345.2-2353_daily_bin1422.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/943827/Model_4FGL_J0345.2-2353_daily_bin1422.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/943827/ft1_filtered_4FGL_J0345.2-2353_daily_bin1422.fits.....................!
real 127.06
user 121.18
sys 5.57

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/943827/ft1_filtered_4FGL_J0345.2-2353_daily_bin1422.fits', '/scratch/kocevski/943827/ft2_4FGL_J0345.2-2353_daily_bin1422.fits', expMap='/scratch/kocevski/943827/expmap_607910401_608169601_4FGL_J0345.2-2353_daily_bin1422.fits', expCube='/scratch/kocevski/943827/ltcube_607910401_608169601_4FGL_J0345.2-2353_daily_bin1422.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/943827/Model_4FGL_J0345.2-2353_daily_bin1422.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J0345.2-2353'

4FGL J0345.2-2353
   Spectrum: PowerLaw
254    Prefactor:  2.229e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-12)
255        Index:  2.446e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
256        Scale:  7.564e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/943827/ft1_filtered_4FGL_J0345.2-2353_daily_bin1422.fits
Spacecraft file(s): /scratch/kocevski/943827/ft2_4FGL_J0345.2-2353_daily_bin1422.fits
Exposure map: /scratch/kocevski/943827/expmap_607910401_608169601_4FGL_J0345.2-2353_daily_bin1422.fits
Exposure cube: /scratch/kocevski/943827/ltcube_607910401_608169601_4FGL_J0345.2-2353_daily_bin1422.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/943827/Model_4FGL_J0345.2-2353_daily_bin1422.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) = 5630.24471111

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .13461E-01   1.0000         .10000E-03   10000.    
     2 'norm      '    2.4255       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    4.5468       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    66.226       1.0000         .10000E-03   10000.    
     9 'Prefactor '    3.4256       1.0000         .10000E-03   10000.    
    10 'Prefactor '    4.0668       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    14.759       1.0000         .10000E-03   10000.    
    13 'Prefactor '    43.115       1.0000         .10000E-03   10000.    
    14 'norm      '    1.4789       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    7.0802       1.0000         .10000E-03   10000.    
    18 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10018E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10524E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    13.160       1.0000         .10000E-03   10000.    
    23 'Normalizat'    .91655       1.0000         .10000E-01   10.000    
    24 'Prefactor '    1.1917       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .4950E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   5630.242     FROM MIGRAD    STATUS=CONVERGED    564 CALLS     2753 TOTAL
                     EDM=   .25E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  8.6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    180.62       -.45074E-04** at limit **
   2  norm          2.4250        2.6796       -.22203E-06    .32851E-05
   3  Prefactor     .10000E-03    101.13       -.86223E-05** at limit **
   4  Prefactor     .10000E-03    1.1877       -.87809E-08** at limit **
   5  Prefactor     4.5476        16.293       -.18016E-05    .28770E-04
   6  Prefactor     .10000E-03    16.775       -.46950E-07** at limit **
   7  Prefactor     .10000E-03    28.725       -.29695E-06** at limit **
   8  Prefactor     66.228        49.220        .50143E-06    .33815E-04
   9  Prefactor     3.4259        3.5936        .20372E-06    .59298E-03
  10  Prefactor     4.0669        5.6397       -.18274E-05    .87598E-04
  11  Prefactor     .10000E-03    2.1166        .81590E-07** at limit **
  12  norm          14.759        2.2790        .82402E-07    .66717E-03
  13  Prefactor     43.118        35.391        .59783E-06    .49272E-04
  14  norm          1.4790        2.2344       -.13283E-05    .27984E-04
  15  Prefactor     .10000E-03    73.594        .65707E-05** at limit **
  16  Prefactor     .10000E-03    11.629        .32191E-07** at limit **
  17  Prefactor     7.0794        4.2445        .86408E-07    .37836E-03
  18  norm          .10000E-03    4.6700       -.74557E-07** at limit **
  19  Prefactor     .10000E-03    89.709       -.85520E-05** at limit **
  20  Prefactor     .10000E-03    8.3450       -.10385E-06** at limit **
  21  Prefactor     .10000E-03    6.1008        .11933E-05** at limit **
  22  Prefactor     13.119        35.743        .16306E-05    .21182E-04
  23  Normalizat    .91666        .21317       -.22500E-06    .12362E-03
  24  Prefactor     1.1916        .19585        .14663E-06    .14119E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100001
  norm       = 2.42502
  Prefactor  = 0.000100002
  Prefactor  = 0.0001
  Prefactor  = 4.54757
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 66.2282
  Prefactor  = 3.42588
  Prefactor  = 4.06691
  Prefactor  = 0.0001
  norm       = 14.7591
  Prefactor  = 43.1184
  norm       = 1.47905
  Prefactor  = 0.000100002
  Prefactor  = 0.0001
  Prefactor  = 7.07937
  norm       = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 13.1186
  Normalizat = 0.916658
  Prefactor  = 1.19156
 **********
 **   18 **HESSE 
 **********

 FCN=   5630.242     FROM HESSE     STATUS=OK           399 CALLS     3152 TOTAL
                     EDM=   .41E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    14.655        .81546E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          2.4250        2.6720        .12525E-03   -1.5397    
   3  Prefactor     .10000E-03    102.11        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    1.1879        .79838E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     4.5476        16.273        .18879E-03   -1.5281    
   6  Prefactor     .10000E-03    16.781        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    28.740        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     66.228        49.249        .49317E-04   -1.4079    
   9  Prefactor     3.4259        3.5319        .12782E-03   -1.5338    
  10  Prefactor     4.0669        5.6245        .19363E-03   -1.5305    
  11  Prefactor     .10000E-03    2.1328        .10643E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          14.759        2.2839        .41250E-04   -1.4939    
  13  Prefactor     43.118        35.404        .61054E-04   -1.4394    
  14  norm          1.4790        2.1891        .11810E-03   -1.5465    
  15  Prefactor     .10000E-03    74.247        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    11.637        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     7.0794        4.2178        .11035E-03   -1.5176    
  18  norm          .10000E-03    4.6724        .15836E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    90.760        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    8.4023        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    6.2990        .36119E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     13.119        35.838        .11042E-03   -1.4983    
  23  Normalizat    .91666        .24930        .30542E-03   -.95877    
  24  Prefactor     1.1916        .22971        .26100E-03   -.86592    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.07939e-10
Minuit parameter uncertainties:
  1  0.000172878
  2  2.67215
  3  0.000983388
  4  4.04376e-06
  5  16.2893
  6  6.4642e-06
  7  1.08569e-05
  8  49.2794
  9  3.53215
  10  5.6252
  11  5.57644e-05
  12  2.28395
  13  35.4209
  14  2.18921
  15  0.000688402
  16  1.66867e-05
  17  4.21799
  18  4.94683e-06
  19  0.000594316
  20  2.81052e-07
  21  1.48885e-05
  22  35.8965
  23  0.249617
  24  0.229901
Done.

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

Extracting fit parameters...

4FGL J0345.2-2353
   Spectrum: PowerLaw
254    Prefactor:  1.000e-04  5.576e-05  1.000e-04  1.000e+04 ( 1.000e-12)
255        Index:  2.446e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
256        Scale:  7.564e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
492    Prefactor:  1.192e+00  2.299e-01  0.000e+00  1.000e+01 ( 1.000e+00)
493        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
494        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
488   Normalization:  9.167e-01  2.496e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 56.319 -23.885
Photon Flux Upper Limit: 8.29e-08 ph cm-2 s-1
Energy Flux Upper Limit: 6.43e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/943827/likelihoodResults_607910401_608169601_4FGL_J0345.2-2353_daily_bin1422.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) = 5630.24392605
delta logL = -0.00221500551834

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5630.24171109
delta logL = -4.43469616584e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.4469       1.0000          .0000       10.000    
     3 'Normalizat'    .91667       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1916       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .4950E+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=   5630.242     FROM MIGRAD    STATUS=FAILED        91 CALLS      246 TOTAL
                     EDM=   .21E-07    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10003E-03    2.3700        .10643E-02** at limit **
   2  Index         2.4656        5.1937        .50000       -.32903E-05
   3  Normalizat    .91666        .23398        .30542E-03    .81892E-05
   4  Prefactor     1.1916        .22600        .26100E-03    .73613E-05
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   5630.242     FROM SIMPLEX   STATUS=UNCHANGED    127 CALLS      373 TOTAL
                     EDM=   .86E-05    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10003E-03    2.3700        .21922E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.4656        5.1937        .70060E-03   -.53156    
   3  Normalizat    .91666        .23398        .12476E-03   -.95877    
   4  Prefactor     1.1916        .22600        .92426E-04   -.86592    
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   5630.242     FROM MIGRAD    STATUS=CONVERGED     36 CALLS      409 TOTAL
                     EDM=   .78E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    2.1402        .21285E-03** at limit **
   2  Index         2.5076        5.3077        .50000       -.68326E-07
   3  Normalizat    .91666        .23418        .12217E-04   -.19542E-04
   4  Prefactor     1.1916        .22619        .10440E-04   -.11107E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 2.5076
  Normalizat = 0.916657
  Prefactor  = 1.19156
 **********
 **   18 **HESSE 
 **********

 FCN=   5630.242     FROM HESSE     STATUS=OK            29 CALLS      438 TOTAL
                     EDM=   .78E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    2.1363        .42571E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.5076        5.2389        .50000       -.52185    
   3  Normalizat    .91666        .23421        .24433E-05   -.95877    
   4  Prefactor     1.1916        .22625        .20880E-05   -.86592    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.77911e-12
Minuit parameter uncertainties:
  1  1.58133e-06
  2  163.902
  3  0.234473
  4  0.226429
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/943827': 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) = 5630.24171101
delta logL = 3.41469785781e-08

Extracting fit parameters...

4FGL J0345.2-2353
   Spectrum: PowerLaw
254    Prefactor:  1.000e-04  1.581e-06  1.000e-04  1.000e+04 ( 1.000e-12)
255        Index:  2.508e+00  1.639e+02  0.000e+00  1.000e+01 (-1.000e+00)
256        Scale:  7.564e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
492    Prefactor:  1.192e+00  2.264e-01  0.000e+00  1.000e+01 ( 1.000e+00)
493        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
494        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
488   Normalization:  9.167e-01  2.345e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 56.319 -23.885

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/943827/cmap_HighResolution_607910401_608169601_4FGL_J0345.2-2353_daily_bin1422.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.43e-03', job_status='DONE', photon_flux_upper_limit='8.29e-08', time_completed='2021-08-19 11:17:00.092325', job_id='943827', GAL2='1.19', fit_tolerance='1e-08', EG2='0.92', EG='0.92', time_epoch_completed='1629397020.09', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.19', dlogl='3.41e-08', ts2='-0.00', photon_index_error='0.00', photon_index='2.45' WHERE bin_id='1422' AND source_name='4FGL J0345.2-2353' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Aug 19 11:17:00 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0212>
Subject: Job 943827: <4FGL_J0345.2-2353_daily_bin1422> in cluster <slac> Done

Job <4FGL_J0345.2-2353_daily_bin1422> was submitted from host <rhel6-64j> by user <kocevski> in cluster <slac> at Thu Aug 19 11:00:31 2021
Job was executed on host(s) <bullet0212>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Aug 19 11:00:32 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Thu Aug 19 11:00:32 2021
Terminated at Thu Aug 19 11:17:01 2021
Results reported at Thu Aug 19 11:17:01 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0345.2-2353_daily_bin1422 56.3187 -23.885 607910401 608169601 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J0345.2-2353 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   783.24 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             291.57 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   988 sec.
    Turnaround time :                            990 sec.

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

