/nfs/farm/g/glast/g/LCRepository/bin/miniconda2/envs/fermitools_v1.0.5/lib/python2.7/site-packages/matplotlib/font_manager.py:281: UserWarning: Matplotlib is building the font cache using fc-list. This may take a moment.
  'Matplotlib is building the font cache using fc-list. '
/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 29 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 = 7441
number of fields = 30
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J0145.0-2732_daily_bin1089
RA = 26.2585, Dec = -27.5363
tmin = 521596801, tmax = 521856001
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='832740', job_status='RUN', time_executed='2021-08-14 16:00:48.319571', time_epoch_executed='1628982048.32' WHERE source_name='4FGL J0145.0-2732' and cadence='daily' and bin_id='1089'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/832740

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/832740/ft1_4FGL_J0145.0-2732_daily_bin1089.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/832740/ft2_4FGL_J0145.0-2732_daily_bin1089.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/832740/ft1_4FGL_J0145.0-2732_daily_bin1089.fits outfile=/scratch/kocevski/832740/ft1_filteredMKT_4FGL_J0145.0-2732_daily_bin1089.fits ra=26.2585 dec=-27.5363 rad=12.0 tmin=521596801.0 tmax=521856001.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 8.35
user 4.10
sys 4.18

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/832740/ft2_4FGL_J0145.0-2732_daily_bin1089.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/832740/ft2_4FGL_J0145.0-2732_daily_bin1089.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/832740/ft1_filteredMKT_4FGL_J0145.0-2732_daily_bin1089.fits evtable="EVENTS" outfile="/scratch/kocevski/832740/ft1_filtered_4FGL_J0145.0-2732_daily_bin1089.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 4.52
user 0.36
sys 4.11

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/832740/ft1_filtered_4FGL_J0145.0-2732_daily_bin1089.fits" evtable="EVENTS" scfile=/scratch/kocevski/832740/ft2_4FGL_J0145.0-2732_daily_bin1089.fits sctable="SC_DATA" outfile=/scratch/kocevski/832740/ltcube_521596801_521856001_4FGL_J0145.0-2732_daily_bin1089.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/832740/ft2_4FGL_J0145.0-2732_daily_bin1089.fits
.....................!
real 17.23
user 12.27
sys 4.86

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/832740/ft1_filtered_4FGL_J0145.0-2732_daily_bin1089.fits evtable="EVENTS" scfile=/scratch/kocevski/832740/ft2_4FGL_J0145.0-2732_daily_bin1089.fits sctable="SC_DATA" expcube=/scratch/kocevski/832740/ltcube_521596801_521856001_4FGL_J0145.0-2732_daily_bin1089.fits outfile=/scratch/kocevski/832740/expmap_521596801_521856001_4FGL_J0145.0-2732_daily_bin1089.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/832740/ltcube_521596801_521856001_4FGL_J0145.0-2732_daily_bin1089.fits
.....................!
real 196.08
user 185.74
sys 9.50

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
Added 175 point sources and 0 extended sources

Setting source of interest to:
4FGL J0145.0-2732 @ 26.2585 -27.5363

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/832740/ft1_filtered_4FGL_J0145.0-2732_daily_bin1089.fits scfile=/scratch/kocevski/832740/ft2_4FGL_J0145.0-2732_daily_bin1089.fits outfile=/scratch/kocevski/832740/cmap_521596801_521856001_4FGL_J0145.0-2732_daily_bin1089.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=26.2585 yref=-27.5363 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 4.46
user 0.40
sys 4.02

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/832740/ft1_filtered_4FGL_J0145.0-2732_daily_bin1089.fits scfile=/scratch/kocevski/832740/ft2_4FGL_J0145.0-2732_daily_bin1089.fits outfile=/scratch/kocevski/832740/cmap_HighResolution_521596801_521856001_4FGL_J0145.0-2732_daily_bin1089.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=26.2585 yref=-27.5363 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 5.03
user 0.38
sys 4.05

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/832740/ft1_filtered_4FGL_J0145.0-2732_daily_bin1089.fits evtable="EVENTS" scfile=/scratch/kocevski/832740/ft2_4FGL_J0145.0-2732_daily_bin1089.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/832740/Model_4FGL_J0145.0-2732_daily_bin1089.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
Working on...
/scratch/kocevski/832740/ft1_filtered_4FGL_J0145.0-2732_daily_bin1089.fits.....................!
real 47.90
user 40.77
sys 6.34

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/832740/ft1_filtered_4FGL_J0145.0-2732_daily_bin1089.fits', '/scratch/kocevski/832740/ft2_4FGL_J0145.0-2732_daily_bin1089.fits', expMap='/scratch/kocevski/832740/expmap_521596801_521856001_4FGL_J0145.0-2732_daily_bin1089.fits', expCube='/scratch/kocevski/832740/ltcube_521596801_521856001_4FGL_J0145.0-2732_daily_bin1089.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/832740/Model_4FGL_J0145.0-2732_daily_bin1089.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J0145.0-2732'

4FGL J0145.0-2732
   Spectrum: LogParabola
290         norm:  1.960e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-11)
291        alpha:  2.480e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
292         beta:  9.678e-02  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
293           Eb:  3.266e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/832740/ft1_filtered_4FGL_J0145.0-2732_daily_bin1089.fits
Spacecraft file(s): /scratch/kocevski/832740/ft2_4FGL_J0145.0-2732_daily_bin1089.fits
Exposure map: /scratch/kocevski/832740/expmap_521596801_521856001_4FGL_J0145.0-2732_daily_bin1089.fits
Exposure cube: /scratch/kocevski/832740/ltcube_521596801_521856001_4FGL_J0145.0-2732_daily_bin1089.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/832740/Model_4FGL_J0145.0-2732_daily_bin1089.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) = 4541.58533546

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    6.6565       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10028E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    6.2901       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .13207E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    4.1142       1.0000         .10000E-03   10000.    
     7 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    6.1876       1.0000         .10000E-03   10000.    
     9 'Prefactor '    10.388       1.0000         .10000E-03   10000.    
    10 'norm      '    5.3898       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .11422E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    .10008E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    .68108       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10200E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .10015E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    4.1443       1.0000         .10000E-03   10000.    
    18 'Prefactor '    9.6115       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10158E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    8.2374       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .96763E-02   1.0000         .10000E-03   10000.    
    22 'Normalizat'    1.0664       1.0000         .10000E-01   10.000    
    23 'Prefactor '    .76883       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5540E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   4541.490     FROM MIGRAD    STATUS=CONVERGED    513 CALLS     2169 TOTAL
                     EDM=   .90E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    .93319       -.91791E-07** at limit **
   2  Prefactor     6.6660        7.0903       -.17158E-05   -.35004E-04
   3  Prefactor     .10000E-03    3.9392       -.10256E-06** at limit **
   4  Prefactor     6.2909        4.7410        .12257E-05   -.38080E-03
   5  Prefactor     .10000E-03    9.5439       -.23865E-06** at limit **
   6  norm          4.1145        2.7260       -.22911E-06    .25310E-04
   7  norm          .10000E-03    .53976        .27671E-07** at limit **
   8  Prefactor     6.1839        7.0741        .23907E-05   -.11058E-03
   9  Prefactor     10.395        6.6499        .12633E-05   -.24984E-03
  10  norm          5.3909        2.0281       -.39460E-07   -.43524E-05
  11  Prefactor     .10000E-03    14.701        .46313E-06** at limit **
  12  norm          .10000E-03    1.2925       -.93509E-07** at limit **
  13  Prefactor     .10000E-03    1.5019       -.32595E-07** at limit **
  14  norm          .68037        2.9988       -.16070E-05   -.10370E-02
  15  Prefactor     .10000E-03    20.198       -.14853E-05** at limit **
  16  norm          .10000E-03    .85103       -.37805E-08** at limit **
  17  Prefactor     4.1293        10.342        .71693E-05   -.20011E-03
  18  Prefactor     9.6238        8.5702       -.31516E-05    .49267E-04
  19  Prefactor     .10000E-03    3.5505        .24888E-06** at limit **
  20  Prefactor     8.2355        53.668        .59356E-06   -.33025E-05
  21  Prefactor     .10001E-03    374.76       -.14568E-04** at limit **
  22  Normalizat    1.0663        .19033        .31192E-06    .90400E-04
  23  Prefactor     .76906        .20520       -.51765E-06    .72904E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  Prefactor  = 6.66596
  Prefactor  = 0.0001
  Prefactor  = 6.29089
  Prefactor  = 0.0001
  norm       = 4.11448
  norm       = 0.0001
  Prefactor  = 6.18389
  Prefactor  = 10.3945
  norm       = 5.39088
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.680372
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 4.12931
  Prefactor  = 9.62379
  Prefactor  = 0.0001
  Prefactor  = 8.23551
  Prefactor  = 0.000100014
  Normalizat = 1.06627
  Prefactor  = 0.769056
 **********
 **   18 **HESSE 
 **********

 FCN=   4541.490     FROM HESSE     STATUS=OK           368 CALLS     2537 TOTAL
                     EDM=   .14E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    .93458        .63577E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     6.6660        7.1403        .15553E-03   -1.5192    
   3  Prefactor     .10000E-03    3.9430        .13061E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     6.2909        4.6968        .11948E-03   -1.5206    
   5  Prefactor     .10000E-03    9.5864        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          4.1145        2.7185        .83951E-04   -1.5302    
   7  norm          .10000E-03    .54026        .48350E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     6.1839        7.0691        .16139E-03   -1.5211    
   9  Prefactor     10.395        6.6178        .12432E-03   -1.5063    
  10  norm          5.3909        2.0282        .56746E-04   -1.5244    
  11  Prefactor     .10000E-03    14.716        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          .10000E-03    1.3227        .14929E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    1.5170        .80627E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .68037        3.3999        .22738E-02   -1.5543    
  15  Prefactor     .10000E-03    20.206        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10000E-03    .85689        .60704E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     4.1293        10.113        .19800E-03   -1.5302    
  18  Prefactor     9.6238        8.6547        .12926E-03   -1.5087    
  19  Prefactor     .10000E-03    3.5711        .12399E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     8.2355        53.669        .13969E-03   -1.5134    
  21  Prefactor     .10001E-03    387.58        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Normalizat    1.0663        .22617        .21477E-03   -.90842    
  23  Prefactor     .76906        .24193        .28363E-03   -1.0088    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.37954e-09
Minuit parameter uncertainties:
  1  9.34575e-08
  2  7.14125
  3  5.97492e-06
  4  4.69706
  5  1.28909e-05
  6  2.71861
  7  2.60802e-07
  8  7.07009
  9  6.61827
  10  2.02826
  11  2.12466e-05
  12  3.54273e-06
  13  1.12705e-06
  14  3.0419
  15  2.97922e-05
  16  6.96546e-07
  17  10.117
  18  8.6558
  19  1.7703e-05
  20  42.1022
  21  0.00472952
  22  0.22637
  23  0.242263
Done.

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

Extracting fit parameters...

4FGL J0145.0-2732
   Spectrum: LogParabola
290         norm:  6.804e-01  3.042e+00  1.000e-04  1.000e+04 ( 1.000e-11)
291        alpha:  2.480e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
292         beta:  9.678e-02  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
293           Eb:  3.266e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
551    Prefactor:  7.691e-01  2.423e-01  0.000e+00  1.000e+01 ( 1.000e+00)
552        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
553        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
550   Normalization:  1.066e+00  2.264e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.06
Ra Dec: 26.259 -27.536
Photon Flux Upper Limit: 9.52e-08 ph cm-2 s-1
Energy Flux Upper Limit: 2.50e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/832740/likelihoodResults_521596801_521856001_4FGL_J0145.0-2732_daily_bin1089.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) = 4541.48972363
delta logL = 0.000500773316162

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4541.48972076
delta logL = 0.000503641043906

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .68045       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.5417       1.0000          .0000       5.0000    
     3 'Normalizat'    1.0659       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .76942       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5540E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.
 MACHINE ACCURACY LIMITS FURTHER IMPROVEMENT.

 MIGRAD MINIMIZATION HAS CONVERGED.

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

 FCN=   4541.490     FROM MIGRAD    STATUS=FAILED        97 CALLS      253 TOTAL
                     EDM=   .26E-07    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .68498        3.4456        .22571E-02    .42989E-02
   2  alpha         2.5431        1.8199        .46787E-01   -.91572E-05
   3  Normalizat    1.0658        .21211        .21481E-03   -.26091E-04
   4  Prefactor     .76943        .24029        .28357E-03    .77777E-05
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   4541.490     FROM SIMPLEX   STATUS=UNCHANGED     75 CALLS      328 TOTAL
                     EDM=   .13E-04    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .68498        3.4456        .16651E-03   -1.5542    
   2  alpha         2.5431        1.8199        .42388E-02    .17239E-01
   3  Normalizat    1.0658        .21211        .22156E-03   -.90857    
   4  Prefactor     .76943        .24029        .27469E-03   -1.0087    
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   4541.490     FROM MIGRAD    STATUS=CONVERGED     32 CALLS      360 TOTAL
                     EDM=   .46E-12    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .68499        3.3129        .45143E-03   -.13398E-04
   2  alpha         2.5431        1.7972        .18715E-02   -.62569E-06
   3  Normalizat    1.0658        .21231        .85926E-05   -.15877E-05
   4  Prefactor     .76942        .24050        .11343E-04   -.10023E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 0.684988
  alpha      = 2.5431
  Normalizat = 1.06581
  Prefactor  = 0.769425
 **********
 **   18 **HESSE 
 **********

 FCN=   4541.490     FROM HESSE     STATUS=OK            25 CALLS      385 TOTAL
                     EDM=   .74E-12    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .68499        3.3065        .18057E-04   -1.5542    
   2  alpha         2.5431        1.7967        .74860E-04    .17242E-01
   3  Normalizat    1.0658        .21206        .17185E-05   -.90857    
   4  Prefactor     .76942        .24024        .22686E-05   -1.0087    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.38632e-13
Minuit parameter uncertainties:
  1  3.00998
  2  2.00488
  3  0.212227
  4  0.24057
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/832740': 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) = 4541.48971936
delta logL = 0.000505039885866

Extracting fit parameters...

4FGL J0145.0-2732
   Spectrum: LogParabola
290         norm:  6.850e-01  3.010e+00  1.000e-04  1.000e+04 ( 1.000e-11)
291        alpha:  2.543e+00  2.005e+00  0.000e+00  5.000e+00 ( 1.000e+00)
292         beta:  9.678e-02  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
293           Eb:  3.266e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
551    Prefactor:  7.694e-01  2.406e-01  0.000e+00  1.000e+01 ( 1.000e+00)
552        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
553        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
550   Normalization:  1.066e+00  2.122e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.06
Ra Dec: 26.259 -27.536

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/832740/cmap_HighResolution_521596801_521856001_4FGL_J0145.0-2732_daily_bin1089.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.50e-05', job_status='DONE', photon_flux_upper_limit='9.52e-08', time_completed='2021-08-14 16:10:56.987147', job_id='832740', GAL2='0.77', fit_tolerance='1e-08', EG2='1.07', EG='1.07', time_epoch_completed='1628982656.99', return_code2='0', ts='0.06', comment='SUCCESS', return_code='0', GAL='0.77', dlogl='5.05e-04', ts2='0.06', photon_index_error='0.00', photon_index='2.48' WHERE bin_id='1089' AND source_name='4FGL J0145.0-2732' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Aug 14 16:10:57 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0144>
Subject: Job 832740: <4FGL_J0145.0-2732_daily_bin1089> in cluster <slac> Done

Job <4FGL_J0145.0-2732_daily_bin1089> was submitted from host <rhel6-64l> by user <kocevski> in cluster <slac> at Sat Aug 14 15:55:53 2021
Job was executed on host(s) <bullet0144>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Aug 14 15:58:56 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sat Aug 14 15:58:56 2021
Terminated at Sat Aug 14 16:10:58 2021
Results reported at Sat Aug 14 16:10:58 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0145.0-2732_daily_bin1089 26.2585 -27.5363 521596801 521856001 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J0145.0-2732 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   666.30 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             308.08 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   721 sec.
    Turnaround time :                            905 sec.

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

