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


Performing analysis on: 4FGL_J0145.0-2732_daily_bin1493
RA = 26.2585, Dec = -27.5363
tmin = 626313601, tmax = 626572801
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='835462', job_status='RUN', time_executed='2021-08-14 16:09:02.365359', time_epoch_executed='1628982542.37' WHERE source_name='4FGL J0145.0-2732' and cadence='daily' and bin_id='1493'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/835462

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/835462/ft1_4FGL_J0145.0-2732_daily_bin1493.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/835462/ft2_4FGL_J0145.0-2732_daily_bin1493.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/835462/ft1_4FGL_J0145.0-2732_daily_bin1493.fits outfile=/scratch/kocevski/835462/ft1_filteredMKT_4FGL_J0145.0-2732_daily_bin1493.fits ra=26.2585 dec=-27.5363 rad=12.0 tmin=626313601.0 tmax=626572801.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 12.93
user 4.28
sys 7.93

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/835462/ft1_filtered_4FGL_J0145.0-2732_daily_bin1493.fits" evtable="EVENTS" scfile=/scratch/kocevski/835462/ft2_4FGL_J0145.0-2732_daily_bin1493.fits sctable="SC_DATA" outfile=/scratch/kocevski/835462/ltcube_626313601_626572801_4FGL_J0145.0-2732_daily_bin1493.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/835462/ft2_4FGL_J0145.0-2732_daily_bin1493.fits
.....................!
real 22.80
user 13.73
sys 8.97

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/835462/ft1_filtered_4FGL_J0145.0-2732_daily_bin1493.fits evtable="EVENTS" scfile=/scratch/kocevski/835462/ft2_4FGL_J0145.0-2732_daily_bin1493.fits sctable="SC_DATA" expcube=/scratch/kocevski/835462/ltcube_626313601_626572801_4FGL_J0145.0-2732_daily_bin1493.fits outfile=/scratch/kocevski/835462/expmap_626313601_626572801_4FGL_J0145.0-2732_daily_bin1493.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/835462/ltcube_626313601_626572801_4FGL_J0145.0-2732_daily_bin1493.fits
.....................!
real 201.75
user 186.17
sys 14.85

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/835462/ft1_filtered_4FGL_J0145.0-2732_daily_bin1493.fits scfile=/scratch/kocevski/835462/ft2_4FGL_J0145.0-2732_daily_bin1493.fits outfile=/scratch/kocevski/835462/cmap_626313601_626572801_4FGL_J0145.0-2732_daily_bin1493.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 8.34
user 0.38
sys 7.69

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/835462/ft1_filtered_4FGL_J0145.0-2732_daily_bin1493.fits scfile=/scratch/kocevski/835462/ft2_4FGL_J0145.0-2732_daily_bin1493.fits outfile=/scratch/kocevski/835462/cmap_HighResolution_626313601_626572801_4FGL_J0145.0-2732_daily_bin1493.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 8.10
user 0.40
sys 7.66

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/835462/ft1_filtered_4FGL_J0145.0-2732_daily_bin1493.fits evtable="EVENTS" scfile=/scratch/kocevski/835462/ft2_4FGL_J0145.0-2732_daily_bin1493.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/835462/Model_4FGL_J0145.0-2732_daily_bin1493.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/835462/ft1_filtered_4FGL_J0145.0-2732_daily_bin1493.fits.....................!
real 61.07
user 48.83
sys 11.14

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

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 '    12.250       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10057E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    20.737       1.0000         .10000E-03   10000.    
     6 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    1.2673       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10031E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10179E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    2.4723       1.0000         .10000E-03   10000.    
    13 'Prefactor '    3.7216       1.0000         .10000E-03   10000.    
    14 'norm      '    2.0249       1.0000         .10000E-03   10000.    
    15 'Prefactor '    88.862       1.0000         .10000E-03   10000.    
    16 'norm      '    2.1021       1.0000         .10000E-03   10000.    
    17 'Prefactor '    18.352       1.0000         .10000E-03   10000.    
    18 'Prefactor '    9.1667       1.0000         .10000E-03   10000.    
    19 'Prefactor '    4.1739       1.0000         .10000E-03   10000.    
    20 'Prefactor '    28.648       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10024E-03   1.0000         .10000E-03   10000.    
    22 'Normalizat'    1.2038       1.0000         .10000E-01   10.000    
    23 'Prefactor '    .69227       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=   5867.004     FROM MIGRAD    STATUS=CONVERGED    502 CALLS     2524 TOTAL
                     EDM=   .22E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    .89484       -.69564E-07** at limit **
   2  Prefactor     12.249        6.3506       -.77760E-06   -.43925E-04
   3  Prefactor     .10000E-03    2.4996        .54646E-07** at limit **
   4  Prefactor     .10000E-03    2.6671       -.18033E-06** at limit **
   5  Prefactor     20.735        10.158       -.16184E-06    .34710E-04
   6  norm          .10000E-03    .72316       -.11212E-07** at limit **
   7  norm          1.2674        1.3254       -.56594E-07   -.54748E-04
   8  Prefactor     .10000E-03    2.9751       -.14830E-06** at limit **
   9  Prefactor     .10000E-03    1.8895        .22065E-07** at limit **
  10  norm          .10000E-03    .83606       -.21249E-06** at limit **
  11  Prefactor     .10000E-03    32.946       -.18769E-05** at limit **
  12  norm          2.4711        2.3272        .48483E-06   -.21953E-03
  13  Prefactor     3.7224        3.3575       -.23482E-07   -.14246E-03
  14  norm          2.0237        3.0033       -.11881E-05   -.59711E-03
  15  Prefactor     88.834        56.259       -.26285E-04    .82210E-05
  16  norm          2.1018        2.0122       -.59802E-08   -.10512E-03
  17  Prefactor     18.351        13.457        .25923E-05    .27873E-04
  18  Prefactor     9.1661        6.1547       -.24282E-05   -.72948E-04
  19  Prefactor     4.1745        7.5866       -.13642E-05   -.22556E-03
  20  Prefactor     28.643        34.288       -.67178E-05    .69011E-05
  21  Prefactor     .10000E-03    23.850       -.98369E-07** at limit **
  22  Normalizat    1.2039        .17360        .24760E-05    .50670E-04
  23  Prefactor     .69220        .18785        .93274E-06    .12982E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  Prefactor  = 12.2493
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 20.7348
  norm       = 0.0001
  norm       = 1.26737
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 2.4711
  Prefactor  = 3.72235
  norm       = 2.0237
  Prefactor  = 88.834
  norm       = 2.10183
  Prefactor  = 18.3505
  Prefactor  = 9.16609
  Prefactor  = 4.17454
  Prefactor  = 28.6431
  Prefactor  = 0.0001
  Normalizat = 1.2039
  Prefactor  = 0.692203
 **********
 **   18 **HESSE 
 **********

 FCN=   5867.004     FROM HESSE     STATUS=OK           374 CALLS     2898 TOTAL
                     EDM=   .47E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    .90201        .70755E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     12.249        6.3543        .11445E-03   -1.5008    
   3  Prefactor     .10000E-03    2.5014        .11826E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    2.7716        .24401E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     20.735        10.084        .87956E-04   -1.4797    
   6  norm          .10000E-03    .72562        .63354E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          1.2674        1.3169        .87699E-04   -1.5483    
   8  Prefactor     .10000E-03    2.9763        .12903E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    3.4125        .20293E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          .10000E-03    1.3834        .13533E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    33.239        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          2.4711        2.3051        .10490E-03   -1.5394    
  13  Prefactor     3.7224        3.3576        .12684E-03   -1.5322    
  14  norm          2.0237        2.9835        .14984E-03   -1.5423    
  15  Prefactor     88.834        56.015        .21312E-03   -1.3820    
  16  norm          2.1018        2.0023        .10331E-03   -1.5418    
  17  Prefactor     18.351        13.453        .93494E-04   -1.4851    
  18  Prefactor     9.1661        6.1507        .13237E-03   -1.5102    
  19  Prefactor     4.1745        7.5785        .19727E-03   -1.5299    
  20  Prefactor     28.643        34.282        .74852E-04   -1.4637    
  21  Prefactor     .10000E-03    23.876        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Normalizat    1.2039        .20036        .20963E-03   -.86482    
  23  Prefactor     .69220        .21642        .30484E-03   -1.0383    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.74362e-10
Minuit parameter uncertainties:
  1  2.5515e-06
  2  6.35462
  3  1.0458e-06
  4  2.65095e-05
  5  10.0852
  6  8.53673e-07
  7  1.31696
  8  1.27633e-06
  9  5.5609e-05
  10  1.89883e-05
  11  0.000122185
  12  2.30515
  13  3.35779
  14  2.9837
  15  56.0485
  16  2.00236
  17  13.4554
  18  6.15115
  19  7.58021
  20  34.3052
  21  2.54263e-05
  22  0.200485
  23  0.216682
Done.

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

Extracting fit parameters...

4FGL J0145.0-2732
   Spectrum: LogParabola
290         norm:  2.024e+00  2.984e+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.922e-01  2.167e-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.204e+00  2.005e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/835462/likelihoodResults_626313601_626572801_4FGL_J0145.0-2732_daily_bin1493.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) = 5866.78240444
delta logL = 0.221324045696

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5866.76919883
delta logL = 0.234529652868

Fit tolerance = 1e-08

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

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

 FCN=   5866.769     FROM MIGRAD    STATUS=CONVERGED     80 CALLS      240 TOTAL
                     EDM=   .22E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          2.3714        2.9371        .11657E-03   -.24604E-02
   2  alpha         3.2953        1.2682        .32517E-01   -.77588E-04
   3  Normalizat    1.1740        .19882        .21184E-03    .95235E-04
   4  Prefactor     .71367        .21953        .30060E-03    .30975E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 2.37143
  alpha      = 3.29528
  Normalizat = 1.17402
  Prefactor  = 0.713671
 **********
 **   18 **HESSE 
 **********

 FCN=   5866.769     FROM HESSE     STATUS=OK            23 CALLS      263 TOTAL
                     EDM=   .23E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          2.3714        2.8165        .46630E-05   -1.5400    
   2  alpha         3.2953        1.2201        .13007E-02    .32374    
   3  Normalizat    1.1740        .19921        .42368E-04   -.87410    
   4  Prefactor     .71367        .21973        .12024E-04   -1.0299    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.31381e-09
Minuit parameter uncertainties:
  1  2.8167
  2  1.28161
  3  0.19934
  4  0.220002
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/835462': 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) = 5866.76919882
delta logL = 0.234529662014

Extracting fit parameters...

4FGL J0145.0-2732
   Spectrum: LogParabola
290         norm:  2.371e+00  2.817e+00  1.000e-04  1.000e+04 ( 1.000e-11)
291        alpha:  3.295e+00  1.282e+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.137e-01  2.200e-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.174e+00  1.993e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.09
Ra Dec: 26.259 -27.536
Photon Index (Free Index): 3.30 +/- 1.28
Photon Flux (Free Index): 4.76e-08 +/- 5.47e-08
Energy Flux (Free Index): 8.45e-06 +/- 9.04e-06

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/835462/cmap_HighResolution_626313601_626572801_4FGL_J0145.0-2732_daily_bin1493.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.69e-05', comment='SUCCESS', energy_flux2='8.45e-06', dlogl='2.35e-01', photon_flux2='4.76e-08', job_status='DONE', time_completed='2021-08-14 16:21:42.820177', photon_index_error2='1.28', photon_index2='3.30', ts='0.59', fit_tolerance='1e-08', GAL='0.69', photon_index_error='0.00', photon_flux_upper_limit='1.02e-07', energy_flux_error2='9.04e-06', EG='1.20', time_epoch_completed='1628983302.82', return_code='0', job_id='835462', GAL2='0.71', EG2='1.17', return_code2='0', photon_flux_error2='5.47e-08', ts2='1.09', photon_index='2.48' WHERE bin_id='1493' AND source_name='4FGL J0145.0-2732' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Aug 14 16:21:42 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0140>
Subject: Job 835462: <4FGL_J0145.0-2732_daily_bin1493> in cluster <slac> Done

Job <4FGL_J0145.0-2732_daily_bin1493> was submitted from host <rhel6-64o> by user <kocevski> in cluster <slac> at Sat Aug 14 16:05:23 2021
Job was executed on host(s) <bullet0140>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Aug 14 16:05:51 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:51 2021
Terminated at Sat Aug 14 16:21:46 2021
Results reported at Sat Aug 14 16:21:46 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0145.0-2732_daily_bin1493 26.2585 -27.5363 626313601 626572801 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 :                                   875.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             278.41 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              7
    Max Threads :                                21
    Run time :                                   954 sec.
    Turnaround time :                            983 sec.

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

