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


Performing analysis on: 4FGL_J0145.0-2732_daily_bin1410
RA = 26.2585, Dec = -27.5363
tmin = 604800001, tmax = 605059201
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='834328', job_status='RUN', time_executed='2021-08-14 16:06:54.998406', time_epoch_executed='1628982415.0' WHERE source_name='4FGL J0145.0-2732' and cadence='daily' and bin_id='1410'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/834328

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/834328/ft1_4FGL_J0145.0-2732_daily_bin1410.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/834328/ft2_4FGL_J0145.0-2732_daily_bin1410.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/834328/ft1_4FGL_J0145.0-2732_daily_bin1410.fits outfile=/scratch/kocevski/834328/ft1_filteredMKT_4FGL_J0145.0-2732_daily_bin1410.fits ra=26.2585 dec=-27.5363 rad=12.0 tmin=604800001.0 tmax=605059201.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 9.87
user 4.81
sys 4.94

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/834328/ft1_filtered_4FGL_J0145.0-2732_daily_bin1410.fits" evtable="EVENTS" scfile=/scratch/kocevski/834328/ft2_4FGL_J0145.0-2732_daily_bin1410.fits sctable="SC_DATA" outfile=/scratch/kocevski/834328/ltcube_604800001_605059201_4FGL_J0145.0-2732_daily_bin1410.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/834328/ft2_4FGL_J0145.0-2732_daily_bin1410.fits
.....................!
real 17.70
user 12.00
sys 5.54

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/834328/ft1_filtered_4FGL_J0145.0-2732_daily_bin1410.fits evtable="EVENTS" scfile=/scratch/kocevski/834328/ft2_4FGL_J0145.0-2732_daily_bin1410.fits sctable="SC_DATA" expcube=/scratch/kocevski/834328/ltcube_604800001_605059201_4FGL_J0145.0-2732_daily_bin1410.fits outfile=/scratch/kocevski/834328/expmap_604800001_605059201_4FGL_J0145.0-2732_daily_bin1410.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/834328/ltcube_604800001_605059201_4FGL_J0145.0-2732_daily_bin1410.fits
.....................!
real 197.67
user 185.31
sys 10.99

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/834328/ft1_filtered_4FGL_J0145.0-2732_daily_bin1410.fits scfile=/scratch/kocevski/834328/ft2_4FGL_J0145.0-2732_daily_bin1410.fits outfile=/scratch/kocevski/834328/cmap_604800001_605059201_4FGL_J0145.0-2732_daily_bin1410.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 5.25
user 0.36
sys 4.72

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/834328/ft1_filtered_4FGL_J0145.0-2732_daily_bin1410.fits scfile=/scratch/kocevski/834328/ft2_4FGL_J0145.0-2732_daily_bin1410.fits outfile=/scratch/kocevski/834328/cmap_HighResolution_604800001_605059201_4FGL_J0145.0-2732_daily_bin1410.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.73
user 0.39
sys 4.29

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/834328/ft1_filtered_4FGL_J0145.0-2732_daily_bin1410.fits evtable="EVENTS" scfile=/scratch/kocevski/834328/ft2_4FGL_J0145.0-2732_daily_bin1410.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/834328/Model_4FGL_J0145.0-2732_daily_bin1410.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/834328/ft1_filtered_4FGL_J0145.0-2732_daily_bin1410.fits.....................!
real 37.31
user 29.61
sys 7.32

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10015E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10055E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10014E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    1.4583       1.0000         .10000E-03   10000.    
     6 'norm      '    .10135E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    43.586       1.0000         .10000E-03   10000.    
     9 'Prefactor '    9.1071       1.0000         .10000E-03   10000.    
    10 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    5.6595       1.0000         .10000E-03   10000.    
    12 'norm      '    3.2805       1.0000         .10000E-03   10000.    
    13 'Prefactor '    10.656       1.0000         .10000E-03   10000.    
    14 'norm      '    .13241E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10048E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    2.1755       1.0000         .10000E-03   10000.    
    17 'Prefactor '    5.6692       1.0000         .10000E-03   10000.    
    18 'Prefactor '    3.9845       1.0000         .10000E-03   10000.    
    19 'Prefactor '    28.962       1.0000         .10000E-03   10000.    
    20 'Prefactor '    122.46       1.0000         .10000E-03   10000.    
    21 'Prefactor '    53.246       1.0000         .10000E-03   10000.    
    22 'Normalizat'    .82969       1.0000         .10000E-01   10.000    
    23 'Prefactor '    .88358       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=   2807.461     FROM MIGRAD    STATUS=CONVERGED    525 CALLS     2563 TOTAL
                     EDM=   .11E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    1.7175       -.75265E-08** at limit **
   2  Prefactor     .10000E-03    4.0933        .22570E-06** at limit **
   3  Prefactor     .10001E-03    51.990        .24564E-06** at limit **
   4  Prefactor     .10000E-03    3.7987       -.52949E-07** at limit **
   5  Prefactor     1.4629        30.214        .11490E-04   -.22309E-03
   6  norm          .10001E-03    3.6845        .23102E-06** at limit **
   7  norm          .10000E-03    3.3011        .25845E-06** at limit **
   8  Prefactor     43.589        34.899       -.30594E-05   -.13566E-03
   9  Prefactor     9.1126        9.7676       -.49972E-05   -.52124E-03
  10  norm          .10000E-03    .81169        .72921E-07** at limit **
  11  Prefactor     5.5329        68.869        .28223E-04   -.21518E-04
  12  norm          3.2854        4.7480        .33978E-05   -.32197E-03
  13  Prefactor     10.658        6.6468        .42620E-05   -.17948E-03
  14  norm          .10000E-03    4.2709        .47113E-06** at limit **
  15  Prefactor     .10000E-03    21.756       -.10869E-05** at limit **
  16  norm          2.1761        2.8631        .57979E-06   -.12342E-03
  17  Prefactor     5.6625        18.935        .86666E-05   -.39886E-04
  18  Prefactor     3.9868        9.4401       -.32720E-05   -.24604E-03
  19  Prefactor     28.954        16.032       -.16110E-05   -.67119E-04
  20  Prefactor     122.61        83.592        .94163E-04   -.10176E-04
  21  Prefactor     53.224        79.802       -.25689E-04   -.96700E-05
  22  Normalizat    .82950        .25297       -.85492E-05   -.16999E-03
  23  Prefactor     .88392        .26228       -.34147E-05   -.26664E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100007
  Prefactor  = 0.0001
  Prefactor  = 1.46295
  norm       = 0.000100011
  norm       = 0.0001
  Prefactor  = 43.5887
  Prefactor  = 9.11259
  norm       = 0.0001
  Prefactor  = 5.53286
  norm       = 3.28536
  Prefactor  = 10.6585
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 2.17615
  Prefactor  = 5.66254
  Prefactor  = 3.98682
  Prefactor  = 28.9539
  Prefactor  = 122.613
  Prefactor  = 53.2237
  Normalizat = 0.829498
  Prefactor  = 0.883924
 **********
 **   18 **HESSE 
 **********

 FCN=   2807.461     FROM HESSE     STATUS=OK           372 CALLS     2935 TOTAL
                     EDM=   .23E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    1.7195        .67815E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    4.0981        .10469E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10001E-03    52.747        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    3.8524        .10080E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     1.4629        22.082        .35640E-03   -1.5466    
   6  norm          .10001E-03    12.156        .16034E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .10000E-03    3.3556        .93701E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     43.589        34.738        .60724E-04   -1.4387    
   9  Prefactor     9.1126        9.4951        .13281E-03   -1.5104    
  10  norm          .10000E-03    .82379        .46589E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     5.5329        68.463        .16885E-03   -1.5237    
  12  norm          3.2854        4.6302        .12044E-03   -1.5345    
  13  Prefactor     10.658        6.6535        .10092E-03   -1.5055    
  14  norm          .10000E-03    7.2967        .20600E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    21.758        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          2.1761        2.8526        .99235E-04   -1.5413    
  17  Prefactor     5.6625        18.830        .16871E-03   -1.5232    
  18  Prefactor     3.9868        9.3675        .20205E-03   -1.5309    
  19  Prefactor     28.954        16.006        .74446E-04   -1.4631    
  20  Prefactor     122.61        83.524        .18185E-03   -1.3489    
  21  Prefactor     53.224        79.819        .54966E-04   -1.4248    
  22  Normalizat    .82950        .29528        .24189E-03   -.98984    
  23  Prefactor     .88392        .30632        .26125E-03   -.96705    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.25173e-09
Minuit parameter uncertainties:
  1  6.91155e-06
  2  2.87339e-05
  3  0.00125882
  4  2.29562e-05
  5  11.372
  6  0.000738545
  7  8.05763e-05
  8  34.7546
  9  9.49672
  10  1.33902e-05
  11  38.9804
  12  4.63069
  13  6.65397
  14  3.50442e-05
  15  5.35624e-06
  16  2.85274
  17  18.8496
  18  9.37092
  19  16.0081
  20  83.6049
  21  79.9805
  22  0.295857
  23  0.306915
Done.

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

Extracting fit parameters...

4FGL J0145.0-2732
   Spectrum: LogParabola
290         norm:  1.000e-04  3.504e-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:  8.839e-01  3.069e-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:  8.295e-01  2.959e-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: 1.34e-07 ph cm-2 s-1
Energy Flux Upper Limit: 3.52e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/834328/likelihoodResults_604800001_605059201_4FGL_J0145.0-2732_daily_bin1410.txt

Performing a free index iterative likelihood fit...

Freezing all point sources, except source of interest...

Done.

Freeing candidate source...
Done.

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 2807.46199525
delta logL = -0.000652999560771

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 2807.45655823
delta logL = 0.00478402590716

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .12078       1.0000         .10000E-03   10000.    
     2 'alpha     '    5.0000       1.0000          .0000       5.0000    
     3 'Normalizat'    .81770       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .89245       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=   2807.457     FROM MIGRAD    STATUS=CONVERGED     92 CALLS      322 TOTAL
                     EDM=   .89E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .12088        3.3465        .11311E-02    .23123E-02
   2  alpha         5.0000        2.6250        .18507    ** at limit **
   3  Normalizat    .81769        .30022        .24349E-03   -.70035E-06
   4  Prefactor     .89246        .31675        .26015E-03    .17524E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.120883
  alpha      = 5
  Normalizat = 0.817685
  Prefactor  = 0.892455
 **********
 **   18 **HESSE 
 **********

 FCN=   2807.457     FROM HESSE     STATUS=OK            25 CALLS      347 TOTAL
                     EDM=   .82E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .12088        3.2406        .45246E-04   -1.5638    
   2  alpha         5.0000        2.5813        .37014E-01    1.5705    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Normalizat    .81769        .29619        .97397E-05   -.99416    
   4  Prefactor     .89246        .31499        .10406E-04   -.96405    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.24987e-09
Minuit parameter uncertainties:
  1  1.25132
  2  0.00493085
  3  0.29678
  4  0.315635
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/834328': 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) = 2807.45655823
delta logL = 0.00478402182853

Extracting fit parameters...

4FGL J0145.0-2732
   Spectrum: LogParabola
290         norm:  1.209e-01  1.251e+00  1.000e-04  1.000e+04 ( 1.000e-11)
291        alpha:  5.000e+00  4.931e-03  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:  8.925e-01  3.156e-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:  8.177e-01  2.968e-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  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/834328/cmap_HighResolution_604800001_605059201_4FGL_J0145.0-2732_daily_bin1410.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.52e-05', job_status='DONE', photon_flux_upper_limit='1.34e-07', time_completed='2021-08-14 16:16:05.311233', job_id='834328', GAL2='0.89', fit_tolerance='1e-08', EG2='0.82', EG='0.83', time_epoch_completed='1628982965.31', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.88', dlogl='4.78e-03', ts2='0.01', photon_index_error='0.00', photon_index='2.48' WHERE bin_id='1410' AND source_name='4FGL J0145.0-2732' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Aug 14 16:16:05 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0241>
Subject: Job 834328: <4FGL_J0145.0-2732_daily_bin1410> in cluster <slac> Done

Job <4FGL_J0145.0-2732_daily_bin1410> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Sat Aug 14 16:01:06 2021
Job was executed on host(s) <bullet0241>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Aug 14 16:04:41 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:04:41 2021
Terminated at Sat Aug 14 16:16:06 2021
Results reported at Sat Aug 14 16:16:06 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0145.0-2732_daily_bin1410 26.2585 -27.5363 604800001 605059201 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 :                                   614.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             252.95 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              7
    Max Threads :                                21
    Run time :                                   685 sec.
    Turnaround time :                            900 sec.

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

