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


Performing analysis on: 4FGL_J0145.0-2732_daily_bin1576
RA = 26.2585, Dec = -27.5363
tmin = 647827201, tmax = 648086401
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='835586', job_status='RUN', time_executed='2021-08-14 16:08:20.702970', time_epoch_executed='1628982500.7' WHERE source_name='4FGL J0145.0-2732' and cadence='daily' and bin_id='1576'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/835586

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/835586/ft1_4FGL_J0145.0-2732_daily_bin1576.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/835586/ft2_4FGL_J0145.0-2732_daily_bin1576.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/835586/ft1_4FGL_J0145.0-2732_daily_bin1576.fits outfile=/scratch/kocevski/835586/ft1_filteredMKT_4FGL_J0145.0-2732_daily_bin1576.fits ra=26.2585 dec=-27.5363 rad=12.0 tmin=647827201.0 tmax=648086401.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.19
user 3.82
sys 4.30

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/835586/ft2_4FGL_J0145.0-2732_daily_bin1576.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/835586/ft1_filteredMKT_4FGL_J0145.0-2732_daily_bin1576.fits evtable="EVENTS" outfile="/scratch/kocevski/835586/ft1_filtered_4FGL_J0145.0-2732_daily_bin1576.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.68
user 0.35
sys 4.18

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/835586/ft1_filtered_4FGL_J0145.0-2732_daily_bin1576.fits" evtable="EVENTS" scfile=/scratch/kocevski/835586/ft2_4FGL_J0145.0-2732_daily_bin1576.fits sctable="SC_DATA" outfile=/scratch/kocevski/835586/ltcube_647827201_648086401_4FGL_J0145.0-2732_daily_bin1576.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/835586/ft2_4FGL_J0145.0-2732_daily_bin1576.fits
.....................!
real 19.35
user 14.15
sys 4.83

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/835586/ft1_filtered_4FGL_J0145.0-2732_daily_bin1576.fits evtable="EVENTS" scfile=/scratch/kocevski/835586/ft2_4FGL_J0145.0-2732_daily_bin1576.fits sctable="SC_DATA" expcube=/scratch/kocevski/835586/ltcube_647827201_648086401_4FGL_J0145.0-2732_daily_bin1576.fits outfile=/scratch/kocevski/835586/expmap_647827201_648086401_4FGL_J0145.0-2732_daily_bin1576.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/835586/ltcube_647827201_648086401_4FGL_J0145.0-2732_daily_bin1576.fits
.....................!
real 197.91
user 186.00
sys 10.61

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/835586/ft1_filtered_4FGL_J0145.0-2732_daily_bin1576.fits scfile=/scratch/kocevski/835586/ft2_4FGL_J0145.0-2732_daily_bin1576.fits outfile=/scratch/kocevski/835586/cmap_647827201_648086401_4FGL_J0145.0-2732_daily_bin1576.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.59
user 0.38
sys 4.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/835586/ft1_filtered_4FGL_J0145.0-2732_daily_bin1576.fits scfile=/scratch/kocevski/835586/ft2_4FGL_J0145.0-2732_daily_bin1576.fits outfile=/scratch/kocevski/835586/cmap_HighResolution_647827201_648086401_4FGL_J0145.0-2732_daily_bin1576.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 4.54
user 0.40
sys 4.12

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/835586/ft1_filtered_4FGL_J0145.0-2732_daily_bin1576.fits evtable="EVENTS" scfile=/scratch/kocevski/835586/ft2_4FGL_J0145.0-2732_daily_bin1576.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/835586/Model_4FGL_J0145.0-2732_daily_bin1576.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/835586/ft1_filtered_4FGL_J0145.0-2732_daily_bin1576.fits.....................!
real 59.09
user 52.29
sys 6.47

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/835586/ft1_filtered_4FGL_J0145.0-2732_daily_bin1576.fits', '/scratch/kocevski/835586/ft2_4FGL_J0145.0-2732_daily_bin1576.fits', expMap='/scratch/kocevski/835586/expmap_647827201_648086401_4FGL_J0145.0-2732_daily_bin1576.fits', expCube='/scratch/kocevski/835586/ltcube_647827201_648086401_4FGL_J0145.0-2732_daily_bin1576.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/835586/Model_4FGL_J0145.0-2732_daily_bin1576.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/835586/ft1_filtered_4FGL_J0145.0-2732_daily_bin1576.fits
Spacecraft file(s): /scratch/kocevski/835586/ft2_4FGL_J0145.0-2732_daily_bin1576.fits
Exposure map: /scratch/kocevski/835586/expmap_647827201_648086401_4FGL_J0145.0-2732_daily_bin1576.fits
Exposure cube: /scratch/kocevski/835586/ltcube_647827201_648086401_4FGL_J0145.0-2732_daily_bin1576.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/835586/Model_4FGL_J0145.0-2732_daily_bin1576.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) = 6841.94625448

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10467E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    9.2493       1.0000         .10000E-03   10000.    
     3 'Prefactor '    23.993       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10589E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    13.827       1.0000         .10000E-03   10000.    
     6 'norm      '    1.8418       1.0000         .10000E-03   10000.    
     7 'norm      '    1.1904       1.0000         .10000E-03   10000.    
     8 'Prefactor '    37.620       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    2.4986       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10216E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    .53386       1.0000         .10000E-03   10000.    
    13 'Prefactor '    16.599       1.0000         .10000E-03   10000.    
    14 'norm      '    .10257E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    22.908       1.0000         .10000E-03   10000.    
    16 'norm      '    12.851       1.0000         .10000E-03   10000.    
    17 'Prefactor '    10.048       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .25583E-02   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10303E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    21.506       1.0000         .10000E-03   10000.    
    22 'Normalizat'    .68441       1.0000         .10000E-01   10.000    
    23 'Prefactor '    .90967       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=   6841.943     FROM MIGRAD    STATUS=CONVERGED    512 CALLS     2582 TOTAL
                     EDM=   .17E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    1.5838       -.54690E-06** at limit **
   2  Prefactor     9.2500        7.5709        .15943E-06   -.95739E-04
   3  Prefactor     23.992        14.682       -.91278E-06    .58883E-04
   4  Prefactor     .10000E-03    1.1602       -.16195E-06** at limit **
   5  Prefactor     13.828        9.3256       -.27989E-06    .19625E-04
   6  norm          1.8416        1.9048       -.76239E-07   -.29455E-03
   7  norm          1.1907        1.2468        .11233E-06    .36839E-03
   8  Prefactor     37.616        14.998       -.23067E-05    .16730E-03
   9  Prefactor     .10000E-03    1.5820        .11050E-07** at limit **
  10  norm          2.4986        .99815       -.69328E-07    .16302E-03
  11  Prefactor     .10000E-03    17.234        .38140E-05** at limit **
  12  norm          .53396        1.1473       -.70515E-06   -.26935E-02
  13  Prefactor     16.599        4.5944       -.41076E-06    .46246E-06
  14  norm          .10000E-03    1.1920       -.48959E-06** at limit **
  15  Prefactor     22.930        21.590        .28092E-04    .40868E-04
  16  norm          12.850        2.9706       -.62986E-07    .10297E-03
  17  Prefactor     10.033        9.9480       -.27714E-05   -.47719E-04
  18  Prefactor     .10009E-03    2.1130       -.33707E-08** at limit **
  19  Prefactor     .10000E-03    3.5305        .15192E-05** at limit **
  20  Prefactor     .10000E-03    17.655        .49564E-06** at limit **
  21  Prefactor     21.481        32.293       -.43139E-04   -.17994E-04
  22  Normalizat    .68435        .14407        .35833E-05    .14991E-03
  23  Prefactor     .90974        .16035        .36922E-06    .29500E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  Prefactor  = 9.24996
  Prefactor  = 23.992
  Prefactor  = 0.0001
  Prefactor  = 13.8285
  norm       = 1.84161
  norm       = 1.19072
  Prefactor  = 37.6156
  Prefactor  = 0.0001
  norm       = 2.49862
  Prefactor  = 0.0001
  norm       = 0.533959
  Prefactor  = 16.599
  norm       = 0.0001
  Prefactor  = 22.9303
  norm       = 12.8501
  Prefactor  = 10.0335
  Prefactor  = 0.000100085
  Prefactor  = 0.000100002
  Prefactor  = 0.0001
  Prefactor  = 21.4809
  Normalizat = 0.68435
  Prefactor  = 0.909735
 **********
 **   18 **HESSE 
 **********

 FCN=   6841.943     FROM HESSE     STATUS=OK           380 CALLS     2962 TOTAL
                     EDM=   .77E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    3.4145        .20214E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     9.2500        7.5527        .13178E-03   -1.5100    
   3  Prefactor     23.992        14.641        .81777E-04   -1.4728    
   4  Prefactor     .10000E-03    2.1257        .17309E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     13.828        9.3091        .10771E-03   -1.4964    
   6  norm          1.8416        1.8895        .97796E-04   -1.5437    
   7  norm          1.1907        1.2546        .90907E-04   -1.5490    
   8  Prefactor     37.616        14.900        .65345E-04   -1.4481    
   9  Prefactor     .10000E-03    1.6353        .20293E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          2.4986        .99832        .50671E-04   -1.5392    
  11  Prefactor     .10000E-03    17.315        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          .53396        .97308        .12223E-02   -1.5562    
  13  Prefactor     16.599        4.5984        .88321E-04   -1.4893    
  14  norm          .10000E-03    2.0332        .17241E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     22.930        21.577        .83689E-04   -1.4750    
  16  norm          12.850        2.9711        .65858E-04   -1.4991    
  17  Prefactor     10.033        9.7696        .12641E-03   -1.5074    
  18  Prefactor     .10009E-03    15.412        .22440E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    3.6304        .30343E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    17.686        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     21.481        32.332        .86371E-04   -1.4781    
  22  Normalizat    .68435        .16519        .23620E-03   -1.0451    
  23  Prefactor     .90974        .18682        .24664E-03   -.95802    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.65323e-09
Minuit parameter uncertainties:
  1  9.41982e-06
  2  7.55353
  3  14.6435
  4  3.53852e-05
  5  9.31009
  6  1.88959
  7  1.25465
  8  14.9015
  9  2.153e-06
  10  0.998327
  11  3.41952e-05
  12  0.973106
  13  4.59852
  14  6.31478e-05
  15  21.5844
  16  2.97109
  17  9.77116
  18  0.00229374
  19  0.000176016
  20  6.31638e-05
  21  32.3584
  22  0.165308
  23  0.186948
Done.

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

Extracting fit parameters...

4FGL J0145.0-2732
   Spectrum: LogParabola
290         norm:  1.000e-04  6.315e-05  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:  9.097e-01  1.869e-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:  6.844e-01  1.653e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/835586/likelihoodResults_647827201_648086401_4FGL_J0145.0-2732_daily_bin1576.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) = 6841.94579543
delta logL = -0.00234507898585

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6841.94345141
delta logL = -1.06309744297e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10114E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    2.4866       1.0000          .0000       5.0000    
     3 'Normalizat'    .68427       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .90993       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.

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

 FCN=   6841.943     FROM MIGRAD    STATUS=FAILED        97 CALLS      257 TOTAL
                     EDM=   .70E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    311.74        .17253E-02** at limit **
   2  alpha         2.7589        3.8793        .50000       -.93178E-07
   3  Normalizat    .68435        .51805E-01    .23620E-03   -.25460E-02
   4  Prefactor     .90973        .61934E-01    .24664E-03   -.24686E-02
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   6841.943     FROM SIMPLEX   STATUS=UNCHANGED    173 CALLS      430 TOTAL
                     EDM=   .87E-05    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    311.74        .21792E-03** at limit **
   2  alpha         2.7589        3.8793        .19919E-05   -.93178E-07
   3  Normalizat    .68435        .51805E-01    .13071E-06   -.25460E-02
   4  Prefactor     .90973        .61934E-01    .57523E-07   -.24686E-02
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   6841.943     FROM MIGRAD    STATUS=CONVERGED     34 CALLS      464 TOTAL
                     EDM=   .62E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    2.6658        .34506E-03** at limit **
   2  alpha         2.7562        3.4654        .50000       -.21566E-06
   3  Normalizat    .68435        .15527        .47240E-04   -.25450E-02
   4  Prefactor     .90973        .18604        .49329E-04   -.24667E-02
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  alpha      = 2.75625
  Normalizat = 0.684349
  Prefactor  = 0.90973
 **********
 **   18 **HESSE 
 **********

 FCN=   6841.943     FROM HESSE     STATUS=OK            29 CALLS      493 TOTAL
                     EDM=   .63E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    2.1274        .69013E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         2.7562        3.0867        .50000        .10268    
   3  Normalizat    .68435        .15530        .94480E-05   -1.0451    
   4  Prefactor     .90973        .18608        .98658E-05   -.95802    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.30825e-09
Minuit parameter uncertainties:
  1  5.5519e-05
  2  173.067
  3  0.155397
  4  0.186211
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/835586': 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) = 6841.94344951
delta logL = 8.32279511087e-07

Extracting fit parameters...

4FGL J0145.0-2732
   Spectrum: LogParabola
290         norm:  1.000e-04  5.552e-05  1.000e-04  1.000e+04 ( 1.000e-11)
291        alpha:  2.756e+00  1.731e+02  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:  9.097e-01  1.862e-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:  6.843e-01  1.554e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Creating a high resolution counts map...
INFO: Auto-setting vmin to -2.500e-04 [aplpy.core]
INFO: Auto-setting vmax to  2.775e-03 [aplpy.core]
Saving /scratch/kocevski/835586/cmap_HighResolution_647827201_648086401_4FGL_J0145.0-2732_daily_bin1576.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.41e-05', job_status='DONE', photon_flux_upper_limit='5.37e-08', time_completed='2021-08-14 16:21:21.651608', job_id='835586', GAL2='0.91', fit_tolerance='1e-08', EG2='0.68', EG='0.68', time_epoch_completed='1628983281.65', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.91', dlogl='8.32e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.48' WHERE bin_id='1576' AND source_name='4FGL J0145.0-2732' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Aug 14 16:21:21 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0083>
Subject: Job 835586: <4FGL_J0145.0-2732_daily_bin1576> in cluster <slac> Done

Job <4FGL_J0145.0-2732_daily_bin1576> was submitted from host <rhel6-64o> by user <kocevski> in cluster <slac> at Sat Aug 14 16:05:31 2021
Job was executed on host(s) <bullet0083>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Aug 14 16:06:55 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sat Aug 14 16:06:55 2021
Terminated at Sat Aug 14 16:21:23 2021
Results reported at Sat Aug 14 16:21:23 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0145.0-2732_daily_bin1576 26.2585 -27.5363 647827201 648086401 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 :                                   839.21 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             295.83 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   867 sec.
    Turnaround time :                            952 sec.

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

