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


Performing analysis on: 4FGL_J0145.0-2732_daily_bin1157
RA = 26.2585, Dec = -27.5363
tmin = 539222401, tmax = 539481601
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='833977', job_status='RUN', time_executed='2021-08-14 16:03:53.280168', time_epoch_executed='1628982233.28' WHERE source_name='4FGL J0145.0-2732' and cadence='daily' and bin_id='1157'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/833977

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/833977/ft1_4FGL_J0145.0-2732_daily_bin1157.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/833977/ft2_4FGL_J0145.0-2732_daily_bin1157.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/833977/ft1_4FGL_J0145.0-2732_daily_bin1157.fits outfile=/scratch/kocevski/833977/ft1_filteredMKT_4FGL_J0145.0-2732_daily_bin1157.fits ra=26.2585 dec=-27.5363 rad=12.0 tmin=539222401.0 tmax=539481601.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 6.39
user 5.35
sys 1.01

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/833977/ft2_4FGL_J0145.0-2732_daily_bin1157.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/833977/ft1_filteredMKT_4FGL_J0145.0-2732_daily_bin1157.fits evtable="EVENTS" outfile="/scratch/kocevski/833977/ft1_filtered_4FGL_J0145.0-2732_daily_bin1157.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 1.28
user 0.33
sys 0.93

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/833977/ft1_filtered_4FGL_J0145.0-2732_daily_bin1157.fits" evtable="EVENTS" scfile=/scratch/kocevski/833977/ft2_4FGL_J0145.0-2732_daily_bin1157.fits sctable="SC_DATA" outfile=/scratch/kocevski/833977/ltcube_539222401_539481601_4FGL_J0145.0-2732_daily_bin1157.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/833977/ft2_4FGL_J0145.0-2732_daily_bin1157.fits
.....................!
real 14.32
user 13.02
sys 1.20

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/833977/ft1_filtered_4FGL_J0145.0-2732_daily_bin1157.fits evtable="EVENTS" scfile=/scratch/kocevski/833977/ft2_4FGL_J0145.0-2732_daily_bin1157.fits sctable="SC_DATA" expcube=/scratch/kocevski/833977/ltcube_539222401_539481601_4FGL_J0145.0-2732_daily_bin1157.fits outfile=/scratch/kocevski/833977/expmap_539222401_539481601_4FGL_J0145.0-2732_daily_bin1157.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/833977/ltcube_539222401_539481601_4FGL_J0145.0-2732_daily_bin1157.fits
.....................!
real 194.13
user 185.77
sys 7.01

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/833977/ft1_filtered_4FGL_J0145.0-2732_daily_bin1157.fits scfile=/scratch/kocevski/833977/ft2_4FGL_J0145.0-2732_daily_bin1157.fits outfile=/scratch/kocevski/833977/cmap_539222401_539481601_4FGL_J0145.0-2732_daily_bin1157.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 1.38
user 0.40
sys 0.88

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/833977/ft1_filtered_4FGL_J0145.0-2732_daily_bin1157.fits scfile=/scratch/kocevski/833977/ft2_4FGL_J0145.0-2732_daily_bin1157.fits outfile=/scratch/kocevski/833977/cmap_HighResolution_539222401_539481601_4FGL_J0145.0-2732_daily_bin1157.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 1.36
user 0.38
sys 0.90

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/833977/ft1_filtered_4FGL_J0145.0-2732_daily_bin1157.fits evtable="EVENTS" scfile=/scratch/kocevski/833977/ft2_4FGL_J0145.0-2732_daily_bin1157.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/833977/Model_4FGL_J0145.0-2732_daily_bin1157.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/833977/ft1_filtered_4FGL_J0145.0-2732_daily_bin1157.fits.....................!
real 45.22
user 42.66
sys 2.23

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    3.6127       1.0000         .10000E-03   10000.    
     2 'Prefactor '    3.0029       1.0000         .10000E-03   10000.    
     3 'Prefactor '    3.8021       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10033E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    2.4918       1.0000         .10000E-03   10000.    
     7 'norm      '    1.4629       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10019E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    4.8364       1.0000         .10000E-03   10000.    
    11 'Prefactor '    9.5914       1.0000         .10000E-03   10000.    
    12 'norm      '    .10007E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10091E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    .10083E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    70.472       1.0000         .10000E-03   10000.    
    16 'norm      '    4.0459       1.0000         .10000E-03   10000.    
    17 'Prefactor '    2.7311       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    3.3779       1.0000         .10000E-03   10000.    
    20 'Prefactor '    50.425       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .22658E-02   1.0000         .10000E-03   10000.    
    22 'Normalizat'    .92735       1.0000         .10000E-01   10.000    
    23 'Prefactor '    .95382       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=   5009.694     FROM MIGRAD    STATUS=CONVERGED    922 CALLS     2961 TOTAL
                     EDM=   .22E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          3.6127        2.4351        .88358E-04    .17627E-04
   2  Prefactor     3.0033        5.3081        .20218E-03   -.11145E-03
   3  Prefactor     3.8055        10.065        .20701E-03   -.37839E-04
   4  Prefactor     .10000E-03    3.9939        .20167E-02** at limit **
   5  Prefactor     .10000E-03    15.391        .36285E-03** at limit **
   6  norm          2.4938        1.9759        .85490E-04   -.36091E-03
   7  norm          1.4638        1.7087        .98068E-04   -.73613E-04
   8  Prefactor     .10000E-03    40.621        .36285E-03** at limit **
   9  Prefactor     .10000E-03    1.1127        .72741E-03** at limit **
  10  norm          4.8366        1.7286        .53705E-04   -.28154E-04
  11  Prefactor     9.5851        20.043        .12940E-03   -.21350E-04
  12  norm          .10000E-03    3.8277        .14627E-02** at limit **
  13  Prefactor     .10000E-03    3.9866        .27084E-03** at limit **
  14  norm          .10000E-03    3.2343        .17553E-02** at limit **
  15  Prefactor     70.478        47.772        .47819E-04    .16690E-04
  16  norm          4.0459        2.6876        .91331E-04   -.37841E-04
  17  Prefactor     2.7322        11.058        .24640E-03   -.60351E-04
  18  Prefactor     .10000E-03    1.5284        .85379E-03** at limit **
  19  Prefactor     3.3639        9.0546        .22016E-03   -.50347E-04
  20  Prefactor     50.420        53.923        .56475E-04    .53547E-05
  21  Prefactor     .10000E-03    97.901        .15468    ** at limit **
  22  Normalizat    .92739        .19853        .21639E-03   -.89734E-04
  23  Prefactor     .95372        .22838        .25506E-03    .45552E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 3.6127
  Prefactor  = 3.00327
  Prefactor  = 3.80551
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 2.49379
  norm       = 1.46376
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 4.83657
  Prefactor  = 9.58513
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 70.4783
  norm       = 4.04591
  Prefactor  = 2.73225
  Prefactor  = 0.0001
  Prefactor  = 3.3639
  Prefactor  = 50.4202
  Prefactor  = 0.000100001
  Normalizat = 0.927394
  Prefactor  = 0.953719
 **********
 **   18 **HESSE 
 **********

 FCN=   5009.694     FROM HESSE     STATUS=OK           356 CALLS     3317 TOTAL
                     EDM=   .22E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          3.6127        2.4350        .35343E-05   -1.5328    
   2  Prefactor     3.0033        5.3066        .80870E-05   -1.5361    
   3  Prefactor     3.8055        10.061        .82804E-05   -1.5318    
   4  Prefactor     .10000E-03    4.0054        .40334E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    15.391        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          2.4938        1.9758        .34196E-05   -1.5392    
   7  norm          1.4638        1.7086        .39227E-05   -1.5466    
   8  Prefactor     .10000E-03    40.623        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    1.1127        .14548E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          4.8366        1.7286        .21482E-05   -1.5268    
  11  Prefactor     9.5851        20.041        .51758E-05   -1.5089    
  12  norm          .10000E-03    3.8423        .29255E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    3.9867        .54167E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .10000E-03    3.2462        .35106E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     70.478        47.768        .95637E-05   -1.4027    
  16  norm          4.0459        2.6875        .36532E-05   -1.5306    
  17  Prefactor     2.7322        11.054        .98558E-05   -1.5377    
  18  Prefactor     .10000E-03    1.5284        .17076E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     3.3639        9.0631        .88064E-05   -1.5341    
  20  Prefactor     50.420        53.920        .11295E-04   -1.4287    
  21  Prefactor     .10000E-03    103.49        .14964       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Normalizat    .92739        .19868        .86557E-05   -.95504    
  23  Prefactor     .95372        .22860        .10203E-04   -.94288    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.21987e-10
Minuit parameter uncertainties:
  1  2.43511
  2  5.30741
  3  10.0658
  4  4.76598e-05
  5  9.51882e-06
  6  1.97588
  7  1.70864
  8  4.10471e-05
  9  1.41141e-07
  10  1.72863
  11  20.0548
  12  3.93092e-05
  13  2.54982e-05
  14  2.85619e-05
  15  47.7939
  16  2.68762
  17  10.9948
  18  1.55726e-07
  19  9.06678
  20  53.9725
  21  0.00055763
  22  0.198833
  23  0.228829
Done.

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

Extracting fit parameters...

4FGL J0145.0-2732
   Spectrum: LogParabola
290         norm:  1.000e-04  2.856e-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.537e-01  2.288e-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:  9.274e-01  1.988e-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: 6.87e-08 ph cm-2 s-1
Energy Flux Upper Limit: 1.80e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/833977/likelihoodResults_539222401_539481601_4FGL_J0145.0-2732_daily_bin1157.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) = 5009.69512348
delta logL = -0.00147475363246

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5009.6936488
delta logL = -7.66385710449e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10262E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    2.4481       1.0000          .0000       5.0000    
     3 'Normalizat'    .92750       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .95368       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=   5009.694     FROM MIGRAD    STATUS=CONVERGED    109 CALLS      263 TOTAL
                     EDM=   .10E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    476.03        .17860E-02** at limit **
   2  alpha         1.9993        3.4889        .50000        .11003E-06
   3  Normalizat    .92740        .44851E-01    .21639E-03    .40561E-02
   4  Prefactor     .95372        .53869E-01    .25507E-03    .34457E-02
                               ERR DEF=  .500    
Final values: 
  norm       = 0.000100001
  alpha      = 1.99933
  Normalizat = 0.927402
  Prefactor  = 0.953724
 **********
 **   18 **HESSE 
 **********

 FCN=   5009.694     FROM HESSE     STATUS=OK            29 CALLS      292 TOTAL
                     EDM=   .17E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    18.846        .35719E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         1.9993        2.6063        .50000       -.20163    
   3  Normalizat    .92740        .18829        .43278E-04   -.95504    
   4  Prefactor     .95372        .22592        .51013E-04   -.94288    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.7388e-08
Minuit parameter uncertainties:
  1  0.0002243
  2  176.205
  3  0.188427
  4  0.226139
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/833977': 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) = 5009.69364312
delta logL = 5.60690932616e-06

Extracting fit parameters...

4FGL J0145.0-2732
   Spectrum: LogParabola
290         norm:  1.000e-04  2.243e-04  1.000e-04  1.000e+04 ( 1.000e-11)
291        alpha:  1.999e+00  1.762e+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.537e-01  2.261e-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:  9.274e-01  1.884e-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/833977/cmap_HighResolution_539222401_539481601_4FGL_J0145.0-2732_daily_bin1157.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.80e-05', job_status='DONE', photon_flux_upper_limit='6.87e-08', time_completed='2021-08-14 16:14:39.753114', job_id='833977', GAL2='0.95', fit_tolerance='1e-08', EG2='0.93', EG='0.93', time_epoch_completed='1628982879.75', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.95', dlogl='5.61e-06', ts2='-0.00', photon_index_error='0.00', photon_index='2.48' WHERE bin_id='1157' AND source_name='4FGL J0145.0-2732' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Aug 14 16:14:39 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0038>
Subject: Job 833977: <4FGL_J0145.0-2732_daily_bin1157> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0145.0-2732_daily_bin1157 26.2585 -27.5363 539222401 539481601 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 :                                   652.23 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             273.79 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   822 sec.
    Turnaround time :                            842 sec.

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

