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


Performing analysis on: 4FGL_J0145.0-2732_daily_bin1220
RA = 26.2585, Dec = -27.5363
tmin = 555552001, tmax = 555811201
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='834069', job_status='RUN', time_executed='2021-08-14 16:05:15.831545', time_epoch_executed='1628982315.83' WHERE source_name='4FGL J0145.0-2732' and cadence='daily' and bin_id='1220'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/834069

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/834069/ft1_4FGL_J0145.0-2732_daily_bin1220.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/834069/ft2_4FGL_J0145.0-2732_daily_bin1220.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/834069/ft1_4FGL_J0145.0-2732_daily_bin1220.fits outfile=/scratch/kocevski/834069/ft1_filteredMKT_4FGL_J0145.0-2732_daily_bin1220.fits ra=26.2585 dec=-27.5363 rad=12.0 tmin=555552001.0 tmax=555811201.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 10.29
user 3.46
sys 6.68

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/834069/ft2_4FGL_J0145.0-2732_daily_bin1220.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/834069/ft1_filteredMKT_4FGL_J0145.0-2732_daily_bin1220.fits evtable="EVENTS" outfile="/scratch/kocevski/834069/ft1_filtered_4FGL_J0145.0-2732_daily_bin1220.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 7.09
user 0.34
sys 6.66

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/834069/ft1_filtered_4FGL_J0145.0-2732_daily_bin1220.fits" evtable="EVENTS" scfile=/scratch/kocevski/834069/ft2_4FGL_J0145.0-2732_daily_bin1220.fits sctable="SC_DATA" outfile=/scratch/kocevski/834069/ltcube_555552001_555811201_4FGL_J0145.0-2732_daily_bin1220.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/834069/ft2_4FGL_J0145.0-2732_daily_bin1220.fits
.....................!
real 20.87
user 13.16
sys 7.61

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/834069/ft1_filtered_4FGL_J0145.0-2732_daily_bin1220.fits evtable="EVENTS" scfile=/scratch/kocevski/834069/ft2_4FGL_J0145.0-2732_daily_bin1220.fits sctable="SC_DATA" expcube=/scratch/kocevski/834069/ltcube_555552001_555811201_4FGL_J0145.0-2732_daily_bin1220.fits outfile=/scratch/kocevski/834069/expmap_555552001_555811201_4FGL_J0145.0-2732_daily_bin1220.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/834069/ltcube_555552001_555811201_4FGL_J0145.0-2732_daily_bin1220.fits
.....................!
real 199.91
user 185.81
sys 13.59

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/834069/ft1_filtered_4FGL_J0145.0-2732_daily_bin1220.fits scfile=/scratch/kocevski/834069/ft2_4FGL_J0145.0-2732_daily_bin1220.fits outfile=/scratch/kocevski/834069/cmap_555552001_555811201_4FGL_J0145.0-2732_daily_bin1220.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 7.13
user 0.38
sys 6.53

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/834069/ft1_filtered_4FGL_J0145.0-2732_daily_bin1220.fits scfile=/scratch/kocevski/834069/ft2_4FGL_J0145.0-2732_daily_bin1220.fits outfile=/scratch/kocevski/834069/cmap_HighResolution_555552001_555811201_4FGL_J0145.0-2732_daily_bin1220.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 6.95
user 0.39
sys 6.47

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/834069/ft1_filtered_4FGL_J0145.0-2732_daily_bin1220.fits evtable="EVENTS" scfile=/scratch/kocevski/834069/ft2_4FGL_J0145.0-2732_daily_bin1220.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/834069/Model_4FGL_J0145.0-2732_daily_bin1220.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/834069/ft1_filtered_4FGL_J0145.0-2732_daily_bin1220.fits....................!
real 25.33
user 14.29
sys 9.70

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/834069/ft1_filtered_4FGL_J0145.0-2732_daily_bin1220.fits', '/scratch/kocevski/834069/ft2_4FGL_J0145.0-2732_daily_bin1220.fits', expMap='/scratch/kocevski/834069/expmap_555552001_555811201_4FGL_J0145.0-2732_daily_bin1220.fits', expCube='/scratch/kocevski/834069/ltcube_555552001_555811201_4FGL_J0145.0-2732_daily_bin1220.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/834069/Model_4FGL_J0145.0-2732_daily_bin1220.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/834069/ft1_filtered_4FGL_J0145.0-2732_daily_bin1220.fits
Spacecraft file(s): /scratch/kocevski/834069/ft2_4FGL_J0145.0-2732_daily_bin1220.fits
Exposure map: /scratch/kocevski/834069/expmap_555552001_555811201_4FGL_J0145.0-2732_daily_bin1220.fits
Exposure cube: /scratch/kocevski/834069/ltcube_555552001_555811201_4FGL_J0145.0-2732_daily_bin1220.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/834069/Model_4FGL_J0145.0-2732_daily_bin1220.xml
Optimizer: MINUIT
Statistic: UNBINNED

Performing an iterative likelihood fit...

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Fixed Index): 101
logL (Fixed Index) = 268.145226905

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Fixed Index): 101
logL (Fixed Index) = 265.120183822

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .91928E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    44.735       1.0000         .10000E-03   10000.    
     3 'Prefactor '    8.0462       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .84697E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .14922       1.0000         .10000E-03   10000.    
     6 'norm      '    7.1031       1.0000         .10000E-03   10000.    
     7 'norm      '    .19556E-02   1.0000         .10000E-03   10000.    
     8 'Prefactor '    59.955       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .33509E-02   1.0000         .10000E-03   10000.    
    10 'norm      '    8.0332       1.0000         .10000E-03   10000.    
    11 'Prefactor '    3.2717       1.0000         .10000E-03   10000.    
    12 'norm      '    .39715E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    1.1071       1.0000         .10000E-03   10000.    
    14 'norm      '    .99956E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    2.5880       1.0000         .10000E-03   10000.    
    16 'norm      '    20.334       1.0000         .10000E-03   10000.    
    17 'Prefactor '    145.66       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .25174E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .85295E-01   1.0000         .10000E-03   10000.    
    20 'Prefactor '    4.1999       1.0000         .10000E-03   10000.    
    21 'Prefactor '    3.0014       1.0000         .10000E-03   10000.    
    22 'Normalizat'    .10000E-01   1.0000         .10000E-01   10.000    
    23 'Prefactor '    .73362E-01   1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5540E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   265.1138     FROM MIGRAD    STATUS=CONVERGED    183 CALLS      552 TOTAL
                     EDM=   .89E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    25.904       -.13891E-05** at limit **
   2  Prefactor     45.751        42.380       -.47253E-05   -.62175E-03
   3  Prefactor     5.8525        139.37        .25756E-04   -.44996E-02
   4  Prefactor     .10191E-03    254.17       -.58192E-06** at limit **
   5  Prefactor     .10000E-03    123.45        .17739E-05** at limit **
   6  norm          7.1496        6.7944       -.14380E-05   -.35695E-04
   7  norm          .10000E-03    13.641       -.12271E-05** at limit **
   8  Prefactor     59.637        38.191        .28240E-05    .25386E-01
   9  Prefactor     .10000E-03    28.725       -.72271E-05** at limit **
  10  norm          8.0391        4.7117       -.23566E-06    .32535E-04
  11  Prefactor     3.2717        1.0122         .0000         .0000    
  12  norm          .10000E-03    29.720        .10882E-05** at limit **
  13  Prefactor     1.1071        1.1830         .0000         .0000    
  14  norm          .10000E-03    19.234       -.17765E-05** at limit **
  15  Prefactor     .10033E-03    306.87       -.28909E-05** at limit **
  16  norm          20.357        13.955       -.11513E-05   -.10452E-03
  17  Prefactor     146.35        21.762       -.96707E-06    .77519E-02
  18  Prefactor     .10000E-03    39.511       -.10557E-05** at limit **
  19  Prefactor     .10000E-03    113.98       -.55287E-05** at limit **
  20  Prefactor     4.0439        5.3161        .75558E-06    .69411E-03
  21  Prefactor     .34360E-02    6223.0        .46724E-04    .99056E-03
  22  Normalizat    .10000E-01    .58394        .12007E-04** at limit **
  23  Prefactor     .72061E-01    .91708        .21085E-04    .52901E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  Prefactor  = 45.7513
  Prefactor  = 5.85246
  Prefactor  = 0.00010191
  Prefactor  = 0.0001
  norm       = 7.14964
  norm       = 0.0001
  Prefactor  = 59.6365
  Prefactor  = 0.0001
  norm       = 8.03911
  Prefactor  = 3.27171
  norm       = 0.0001
  Prefactor  = 1.10712
  norm       = 0.0001
  Prefactor  = 0.000100335
  norm       = 20.3572
  Prefactor  = 146.352
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 4.04395
  Prefactor  = 0.00343597
  Normalizat = 0.01
  Prefactor  = 0.0720609
 **********
 **   18 **HESSE 
 **********
  MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. 

 FCN=   265.1138     FROM HESSE     STATUS=FAILED        49 CALLS      601 TOTAL
                     EDM=   .89E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    25.961        .10408E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     45.751        32.564        .14986E-02   -1.4354    
   3  Prefactor     5.8525        130.26        .35337E-02   -1.5224    
   4  Prefactor     .10191E-03    254.15        .10434E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    120.61        .97433E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          7.1496        6.3032        .37628E-02   -1.5173    
   7  norm          .10000E-03    13.613        .10124E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     59.637        84.205        .12954E-02   -1.4162    
   9  Prefactor     .10000E-03    28.376        .98526E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          8.0391        3.9354        .35365E-02   -1.5141    
  11  Prefactor     550.85        547.50         .0000       -1.5346    
  12  norm          .10000E-03    .28267        .10882E-05   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     1.1071        1.1830         .0000       -1.5498    
  14  norm          .10000E-03    .26943       -.17765E-05   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10033E-03    .10053       -.28909E-05   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          20.357        1.0009       -.11513E-05   -1.4805    
  17  Prefactor     146.35        1.0023       -.96707E-06   -1.3283    
  18  Prefactor     .10000E-03    .28789       -.10557E-05   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    .22282       -.55287E-05   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     4.0439        .98839        .75558E-06   -1.5306    
  21  Prefactor     .34360E-02    .85772E-01    .46724E-04   -1.5696    
  22  Normalizat    .10000E-01    .25505        .12007E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .72061E-01    .27633        .21085E-04   -1.4008    
                               ERR DEF=  .500    
Minuit fit quality: 1   estimated distance: 8.90871e-10
Minuit parameter uncertainties:
  1  8.74913e-06
  2  32.5771
  3  55.3566
  4  0.044254
  5  0.000244927
  6  6.3038
  7  1.61054e-05
  8  84.3738
  9  6.70418e-05
  10  3.93554
  11  1.01218
  12  7.14138e-07
  13  1.18305
  14  1.92771e-06
  15  0.000366767
  16  1.00087
  17  1.00234
  18  1.68529e-06
  19  1.59847e-05
  20  0.988392
  21  0.0338309
  22  5.07515e-07
  23  0.281497
Done.

MINUIT Return Code (Fixed Index): 101
logL (Fixed Index) = 265.113775954

Extracting fit parameters...

4FGL J0145.0-2732
   Spectrum: LogParabola
290         norm:  1.000e-04  1.928e-06  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:  7.206e-02  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.000e-02  5.075e-07  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.21e-06 ph cm-2 s-1
Energy Flux Upper Limit: 3.17e-04 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/834069/likelihoodResults_555552001_555811201_4FGL_J0145.0-2732_daily_bin1220.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) = 265.114006744
delta logL = -0.000230790121975

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 265.113776602
delta logL = -6.48268326131e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10213E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    3.4233       1.0000          .0000       5.0000    
     3 'Normalizat'    .10000E-01   1.0000         .10000E-01   10.000    
     4 'Prefactor '    .71933E-01   1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5540E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

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

 FCN=   265.1138     FROM MIGRAD    STATUS=FAILED        99 CALLS      283 TOTAL
                     EDM=   .45E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    1814.3        .64943E-02** at limit **
   2  alpha         2.7048        3.8418        .18169       -.39701E-07
   3  Normalizat    .10000E-01    .14522        .64385E-02** at limit **
   4  Prefactor     .72060E-01    .15610        .57951E-02    .14463E-05
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   265.1138     FROM SIMPLEX   STATUS=UNCHANGED    178 CALLS      461 TOTAL
                     EDM=   .15E-04    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    1814.3        .83653E-03** at limit **
   2  alpha         2.7048        3.8418        .15391E-05   -.39701E-07
   3  Normalizat    .10000E-01    .14522        .18927E-02** at limit **
   4  Prefactor     .72060E-01    .15610        .43509E-07    .14463E-05
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   265.1138     FROM MIGRAD    STATUS=CONVERGED     30 CALLS      491 TOTAL
                     EDM=   .26E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    19.701        .70648E-03** at limit **
   2  alpha         2.7123        3.6690        .72678E-02   -.20335E-08
   3  Normalizat    .10000E-01    .58641        .12877E-02** at limit **
   4  Prefactor     .72060E-01    .34360        .23180E-03    .48431E-06
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  alpha      = 2.71233
  Normalizat = 0.01
  Prefactor  = 0.0720603
 **********
 **   18 **HESSE 
 **********

 FCN=   265.1138     FROM HESSE     STATUS=OK            23 CALLS      514 TOTAL
                     EDM=   .26E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    19.694        .14130E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         2.7123        3.7162        .14536E-02    .85036E-01
   3  Normalizat    .10000E-01    .58641        .25754E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .72060E-01    .34357        .92722E-05   -1.4008    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.63225e-12
Minuit parameter uncertainties:
  1  2.63899e-05
  2  709.619
  3  1.61018e-06
  4  0.317704
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/834069': 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) = 265.113775898
delta logL = 5.61205979466e-08

Extracting fit parameters...

4FGL J0145.0-2732
   Spectrum: LogParabola
290         norm:  1.000e-04  2.639e-05  1.000e-04  1.000e+04 ( 1.000e-11)
291        alpha:  2.712e+00  7.096e+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:  7.206e-02  3.177e-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.000e-02  1.610e-06  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/834069/cmap_HighResolution_555552001_555811201_4FGL_J0145.0-2732_daily_bin1220.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.17e-04', job_status='DONE', photon_flux_upper_limit='1.21e-06', time_completed='2021-08-14 16:12:24.636749', job_id='834069', GAL2='0.07', fit_tolerance='1e-08', EG2='0.01', EG='0.01', time_epoch_completed='1628982744.64', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='101', GAL='0.07', dlogl='5.61e-08', ts2='-0.00', photon_index_error='0.00', photon_index='2.48' WHERE bin_id='1220' AND source_name='4FGL J0145.0-2732' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Aug 14 16:12:24 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0102>
Subject: Job 834069: <4FGL_J0145.0-2732_daily_bin1220> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0145.0-2732_daily_bin1220 26.2585 -27.5363 555552001 555811201 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 :                                   527.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             311.55 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   643 sec.
    Turnaround time :                            701 sec.

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

