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


Performing analysis on: 4FGL_J0145.0-2732_daily_bin1471
RA = 26.2585, Dec = -27.5363
tmin = 620611201, tmax = 620870401
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='834421', job_status='RUN', time_executed='2021-08-14 16:07:37.021955', time_epoch_executed='1628982457.02' WHERE source_name='4FGL J0145.0-2732' and cadence='daily' and bin_id='1471'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/834421

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/834421/ft1_4FGL_J0145.0-2732_daily_bin1471.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/834421/ft2_4FGL_J0145.0-2732_daily_bin1471.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/834421/ft1_4FGL_J0145.0-2732_daily_bin1471.fits outfile=/scratch/kocevski/834421/ft1_filteredMKT_4FGL_J0145.0-2732_daily_bin1471.fits ra=26.2585 dec=-27.5363 rad=12.0 tmin=620611201.0 tmax=620870401.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 5.79
user 3.48
sys 2.27

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/834421/ft2_4FGL_J0145.0-2732_daily_bin1471.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/834421/ft1_filteredMKT_4FGL_J0145.0-2732_daily_bin1471.fits evtable="EVENTS" outfile="/scratch/kocevski/834421/ft1_filtered_4FGL_J0145.0-2732_daily_bin1471.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 2.53
user 0.32
sys 2.18

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/834421/ft1_filtered_4FGL_J0145.0-2732_daily_bin1471.fits" evtable="EVENTS" scfile=/scratch/kocevski/834421/ft2_4FGL_J0145.0-2732_daily_bin1471.fits sctable="SC_DATA" outfile=/scratch/kocevski/834421/ltcube_620611201_620870401_4FGL_J0145.0-2732_daily_bin1471.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/834421/ft2_4FGL_J0145.0-2732_daily_bin1471.fits
.....................!
real 16.15
user 13.57
sys 2.45

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/834421/ft1_filtered_4FGL_J0145.0-2732_daily_bin1471.fits evtable="EVENTS" scfile=/scratch/kocevski/834421/ft2_4FGL_J0145.0-2732_daily_bin1471.fits sctable="SC_DATA" expcube=/scratch/kocevski/834421/ltcube_620611201_620870401_4FGL_J0145.0-2732_daily_bin1471.fits outfile=/scratch/kocevski/834421/expmap_620611201_620870401_4FGL_J0145.0-2732_daily_bin1471.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/834421/ltcube_620611201_620870401_4FGL_J0145.0-2732_daily_bin1471.fits
.....................!
real 193.95
user 186.33
sys 7.14

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/834421/ft1_filtered_4FGL_J0145.0-2732_daily_bin1471.fits scfile=/scratch/kocevski/834421/ft2_4FGL_J0145.0-2732_daily_bin1471.fits outfile=/scratch/kocevski/834421/cmap_620611201_620870401_4FGL_J0145.0-2732_daily_bin1471.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 2.54
user 0.37
sys 2.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/834421/ft1_filtered_4FGL_J0145.0-2732_daily_bin1471.fits scfile=/scratch/kocevski/834421/ft2_4FGL_J0145.0-2732_daily_bin1471.fits outfile=/scratch/kocevski/834421/cmap_HighResolution_620611201_620870401_4FGL_J0145.0-2732_daily_bin1471.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 2.56
user 0.37
sys 2.17

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/834421/ft1_filtered_4FGL_J0145.0-2732_daily_bin1471.fits evtable="EVENTS" scfile=/scratch/kocevski/834421/ft2_4FGL_J0145.0-2732_daily_bin1471.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/834421/Model_4FGL_J0145.0-2732_daily_bin1471.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/834421/ft1_filtered_4FGL_J0145.0-2732_daily_bin1471.fits......................!
real 33.98
user 30.10
sys 3.58

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    1.2265       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .19477       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10031E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    .10004E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10079E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    5.1187       1.0000         .10000E-03   10000.    
    10 'norm      '    1.9872       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    .10049E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10111E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    5.1154       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .14268E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    2.1126       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    14.765       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10567E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .14650E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    10.645       1.0000         .10000E-03   10000.    
    22 'Normalizat'    1.0636       1.0000         .10000E-01   10.000    
    23 'Prefactor '    .63250       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=   2922.207     FROM MIGRAD    STATUS=CONVERGED    555 CALLS     2215 TOTAL
                     EDM=   .21E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          1.2274        3.6105        .78332E-06    .35720E-03
   2  Prefactor     .14199        8.7428       -.40495E-08   -.24307E-04
   3  Prefactor     .10000E-03    9.7455        .23559E-07** at limit **
   4  Prefactor     .10000E-03    2.8578       -.42354E-07** at limit **
   5  Prefactor     .10000E-03    3.4647        .47883E-07** at limit **
   6  norm          .10000E-03    .86169        .56837E-07** at limit **
   7  norm          .10000E-03    1.2776       -.23825E-07** at limit **
   8  Prefactor     .10000E-03    11.415       -.19262E-06** at limit **
   9  Prefactor     5.1245        6.5340        .72772E-08    .24581E-03
  10  norm          1.9879        1.6971        .44016E-08    .93591E-04
  11  Prefactor     .10000E-03    15.492        .15668E-05** at limit **
  12  norm          .10000E-03    2.7079       -.28607E-06** at limit **
  13  Prefactor     .10000E-03    4.1671       -.20857E-06** at limit **
  14  norm          5.1170        4.4793        .19557E-06    .13356E-03
  15  Prefactor     .10000E-03    35.292        .17495E-06** at limit **
  16  norm          2.1140        3.1490        .17518E-06    .23973E-03
  17  Prefactor     .10000E-03    3.9356       -.81146E-07** at limit **
  18  Prefactor     14.748        7.8700        .49259E-06    .12274E-03
  19  Prefactor     .10000E-03    16.153        .64522E-05** at limit **
  20  Prefactor     .10000E-03    47.728       -.31245E-06** at limit **
  21  Prefactor     10.756        52.229        .43791E-05    .48983E-04
  22  Normalizat    1.0629        .21968       -.10435E-06    .16213E-03
  23  Prefactor     .63295        .23665        .99525E-06    .10778E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 1.22743
  Prefactor  = 0.14199
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 5.12448
  norm       = 1.98786
  Prefactor  = 0.000100001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 5.11696
  Prefactor  = 0.0001
  norm       = 2.11402
  Prefactor  = 0.0001
  Prefactor  = 14.7478
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 10.7555
  Normalizat = 1.06293
  Prefactor  = 0.632947
 **********
 **   18 **HESSE 
 **********

 FCN=   2922.207     FROM HESSE     STATUS=OK           372 CALLS     2587 TOTAL
                     EDM=   .24E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          1.2274        3.5927        .17400E-03   -1.5486    
   2  Prefactor     .14199        59.605        .30883E-02   -1.5633    
   3  Prefactor     .10000E-03    9.7805        .16477E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    2.8845        .89241E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    3.4655        .98270E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          .10000E-03    .86244        .48993E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .10000E-03    1.2819        .59668E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    11.423        .17835E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     5.1245        6.4680        .14468E-03   -1.5255    
  10  norm          1.9879        1.6923        .62906E-04   -1.5426    
  11  Prefactor     .10000E-03    15.338        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          .10000E-03    4.2374        .16658E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    7.6429        .21281E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          5.1170        4.4439        .10001E-03   -1.5256    
  15  Prefactor     .10000E-03    35.341        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          2.1140        3.1348        .11116E-03   -1.5417    
  17  Prefactor     .10000E-03    3.9409        .10475E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     14.748        7.8471        .10424E-03   -1.4940    
  19  Prefactor     .10000E-03    15.782        .28559E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    47.785        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     10.756        50.065        .12280E-03   -1.5052    
  22  Normalizat    1.0629        .26202        .19544E-03   -.90951    
  23  Prefactor     .63295        .28089        .28161E-03   -1.0622    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.39533e-08
Minuit parameter uncertainties:
  1  3.59335
  2  5.82214
  3  1.40453e-05
  4  3.98466e-06
  5  3.96631e-06
  6  2.40841e-06
  7  1.46889e-06
  8  1.93095e-05
  9  6.46884
  10  1.69239
  11  0.0001759
  12  4.00626e-05
  13  2.57298e-05
  14  4.44416
  15  0.000100077
  16  3.13501
  17  1.121e-05
  18  7.84765
  19  0.000252389
  20  3.07687e-05
  21  46.4737
  22  0.262336
  23  0.281514
Done.

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

Extracting fit parameters...

4FGL J0145.0-2732
   Spectrum: LogParabola
290         norm:  5.117e+00  4.444e+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:  6.329e-01  2.815e-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.063e+00  2.623e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 2.30
Ra Dec: 26.259 -27.536
Photon Index (Fixed Index): 2.48 +/- 0.00
Photon Flux (Fixed Index): 6.10e-08 +/- 5.29e-08
Energy Flux (Fixed Index): 1.60e-05 +/- 1.39e-05

TS (Fixed Index): 2.30
Ra Dec: 26.259 -27.536
Photon Flux Upper Limit: 1.79e-07 ph cm-2 s-1
Energy Flux Upper Limit: 4.70e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/834421/likelihoodResults_620611201_620870401_4FGL_J0145.0-2732_daily_bin1471.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) = 2921.27880566
delta logL = 0.928053458152

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 2921.12990206
delta logL = 1.07695706306

Fit tolerance = 1e-08

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

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

 FCN=   2921.130     FROM MIGRAD    STATUS=CONVERGED     48 CALLS      206 TOTAL
                     EDM=   .90E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          2.7395        2.5572        .61497E-02    .62788E-02
   2  alpha         1.4261        .43716        .22018       -.25831E-04
   3  Normalizat    1.1160        .20741        .37386E-01   -.19471E-05
   4  Prefactor     .58947        .23686        .65635E-01    .19931E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 2.73949
  alpha      = 1.42612
  Normalizat = 1.11603
  Prefactor  = 0.589467
 **********
 **   18 **HESSE 
 **********

 FCN=   2921.130     FROM HESSE     STATUS=OK            31 CALLS      237 TOTAL
                     EDM=   .18E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          2.7395        3.5278        .72784E-04   -1.5377    
   2  alpha         1.4261        .63173        .92467E-02   -.44400    
   3  Normalizat    1.1160        .24282        .19116E-03   -.89239    
   4  Prefactor     .58947        .27640        .29044E-03   -1.0803    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.75602e-08
Minuit parameter uncertainties:
  1  3.5281
  2  0.640274
  3  0.243068
  4  0.277043
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/834421': 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) = 2921.12990172
delta logL = 1.07695739665

Extracting fit parameters...

4FGL J0145.0-2732
   Spectrum: LogParabola
290         norm:  2.739e+00  3.528e+00  1.000e-04  1.000e+04 ( 1.000e-11)
291        alpha:  1.426e+00  6.403e-01  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:  5.895e-01  2.770e-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.116e+00  2.431e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 4.48
Ra Dec: 26.259 -27.536
Photon Index (Free Index): 1.43 +/- 0.64
Photon Flux (Free Index): 2.66e-08 +/- 3.06e-08
Energy Flux (Free Index): 3.33e-05 +/- 3.69e-05

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/834421/cmap_HighResolution_620611201_620870401_4FGL_J0145.0-2732_daily_bin1471.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.70e-05', comment='SUCCESS', photon_flux='6.10e-08', energy_flux2='3.33e-05', photon_flux_error='5.29e-08', dlogl='1.08e+00', energy_flux='1.60e-05', photon_flux2='2.66e-08', job_status='DONE', time_completed='2021-08-14 16:15:57.518433', photon_index_error2='0.64', photon_index2='1.43', ts='2.30', fit_tolerance='1e-08', GAL='0.63', photon_index_error='0.00', photon_flux_upper_limit='1.79e-07', energy_flux_error2='3.69e-05', EG='1.06', time_epoch_completed='1628982957.52', return_code='0', job_id='834421', GAL2='0.59', EG2='1.12', return_code2='0', energy_flux_error='1.39e-05', photon_flux_error2='3.06e-08', ts2='4.48', photon_index='2.48' WHERE bin_id='1471' AND source_name='4FGL J0145.0-2732' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Aug 14 16:15:57 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0254>
Subject: Job 834421: <4FGL_J0145.0-2732_daily_bin1471> in cluster <slac> Done

Job <4FGL_J0145.0-2732_daily_bin1471> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Sat Aug 14 16:01:13 2021
Job was executed on host(s) <bullet0254>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Aug 14 16:05:31 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:05:31 2021
Terminated at Sat Aug 14 16:15:58 2021
Results reported at Sat Aug 14 16:15:58 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0145.0-2732_daily_bin1471 26.2585 -27.5363 620611201 620870401 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 :                                   528.38 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             276.00 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   627 sec.
    Turnaround time :                            885 sec.

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

