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


Performing analysis on: 4FGL_J0145.0-2732_daily_bin1582
RA = 26.2585, Dec = -27.5363
tmin = 649382401, tmax = 649641601
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='835595', job_status='RUN', time_executed='2021-08-14 16:10:13.412301', time_epoch_executed='1628982613.41' WHERE source_name='4FGL J0145.0-2732' and cadence='daily' and bin_id='1582'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/835595

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/835595/ft1_4FGL_J0145.0-2732_daily_bin1582.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/835595/ft2_4FGL_J0145.0-2732_daily_bin1582.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/835595/ft1_4FGL_J0145.0-2732_daily_bin1582.fits outfile=/scratch/kocevski/835595/ft1_filteredMKT_4FGL_J0145.0-2732_daily_bin1582.fits ra=26.2585 dec=-27.5363 rad=12.0 tmin=649382401.0 tmax=649641601.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 11.05
user 2.53
sys 8.43

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/835595/ft1_filtered_4FGL_J0145.0-2732_daily_bin1582.fits" evtable="EVENTS" scfile=/scratch/kocevski/835595/ft2_4FGL_J0145.0-2732_daily_bin1582.fits sctable="SC_DATA" outfile=/scratch/kocevski/835595/ltcube_649382401_649641601_4FGL_J0145.0-2732_daily_bin1582.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/835595/ft2_4FGL_J0145.0-2732_daily_bin1582.fits
.....................!
real 21.85
user 12.15
sys 9.61

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/835595/ft1_filtered_4FGL_J0145.0-2732_daily_bin1582.fits evtable="EVENTS" scfile=/scratch/kocevski/835595/ft2_4FGL_J0145.0-2732_daily_bin1582.fits sctable="SC_DATA" expcube=/scratch/kocevski/835595/ltcube_649382401_649641601_4FGL_J0145.0-2732_daily_bin1582.fits outfile=/scratch/kocevski/835595/expmap_649382401_649641601_4FGL_J0145.0-2732_daily_bin1582.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/835595/ltcube_649382401_649641601_4FGL_J0145.0-2732_daily_bin1582.fits
.....................!
real 201.31
user 185.19
sys 14.54

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/835595/ft1_filtered_4FGL_J0145.0-2732_daily_bin1582.fits scfile=/scratch/kocevski/835595/ft2_4FGL_J0145.0-2732_daily_bin1582.fits outfile=/scratch/kocevski/835595/cmap_649382401_649641601_4FGL_J0145.0-2732_daily_bin1582.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 9.39
user 0.39
sys 8.51

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

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/835595/ft1_filtered_4FGL_J0145.0-2732_daily_bin1582.fits evtable="EVENTS" scfile=/scratch/kocevski/835595/ft2_4FGL_J0145.0-2732_daily_bin1582.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/835595/Model_4FGL_J0145.0-2732_daily_bin1582.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/835595/ft1_filtered_4FGL_J0145.0-2732_daily_bin1582.fits.....................!
real 52.32
user 40.59
sys 10.76

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    6.6287       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10075E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    5.4273       1.0000         .10000E-03   10000.    
     7 'norm      '    .10006E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    33.422       1.0000         .10000E-03   10000.    
     9 'Prefactor '    1.0569       1.0000         .10000E-03   10000.    
    10 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10017E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    .10614E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    17.086       1.0000         .10000E-03   10000.    
    14 'norm      '    .10009E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10091E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    33.140       1.0000         .10000E-03   10000.    
    17 'Prefactor '    19.266       1.0000         .10000E-03   10000.    
    18 'Prefactor '    1.5472       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .28771E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10058E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    63.314       1.0000         .10000E-03   10000.    
    22 'Normalizat'    .57594       1.0000         .10000E-01   10.000    
    23 'Prefactor '    1.3506       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=   4699.474     FROM MIGRAD    STATUS=CONVERGED    529 CALLS     2623 TOTAL
                     EDM=   .14E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          6.6281        5.4630        .18853E-06    .22677E-03
   2  Prefactor     .10000E-03    8.8310       -.38244E-07** at limit **
   3  Prefactor     .10000E-03    13.319       -.38147E-06** at limit **
   4  Prefactor     .10000E-03    6.1922       -.18776E-06** at limit **
   5  Prefactor     .10000E-03    27.928       -.23245E-06** at limit **
   6  norm          5.4265        3.0819        .21384E-06    .12490E-02
   7  norm          .10000E-03    1.0066       -.41536E-07** at limit **
   8  Prefactor     33.426        19.412        .58575E-06    .26476E-03
   9  Prefactor     1.0558        3.0376       -.11890E-05   -.94495E-03
  10  norm          .10000E-03    .46028        .10056E-06** at limit **
  11  Prefactor     .10000E-03    43.504        .23388E-06** at limit **
  12  norm          .10000E-03    1.4776        .68275E-06** at limit **
  13  Prefactor     17.084        7.0454        .13376E-06    .10130E-03
  14  norm          .10000E-03    1.2419       -.26820E-07** at limit **
  15  Prefactor     .10000E-03    15.110       -.21824E-07** at limit **
  16  norm          33.140        5.3299       -.15919E-06   -.99719E-03
  17  Prefactor     19.238        17.855       -.11630E-05    .51484E-04
  18  Prefactor     1.5581        8.3846        .63769E-05   -.33876E-03
  19  Prefactor     .10000E-03    12.962        .24484E-05** at limit **
  20  Prefactor     .10000E-03    20.049        .93841E-06** at limit **
  21  Prefactor     63.290        52.956       -.11089E-05   -.11545E-03
  22  Normalizat    .57603        .20612       -.46648E-06    .10777E-03
  23  Prefactor     1.3505        .23103       -.29856E-06   -.78587E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 6.62812
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 5.42651
  norm       = 0.0001
  Prefactor  = 33.4264
  Prefactor  = 1.05581
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.000100001
  Prefactor  = 17.0844
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 33.1397
  Prefactor  = 19.2382
  Prefactor  = 1.55812
  Prefactor  = 0.000100001
  Prefactor  = 0.000100001
  Prefactor  = 63.2895
  Normalizat = 0.576032
  Prefactor  = 1.35048
 **********
 **   18 **HESSE 
 **********

 FCN=   4699.474     FROM HESSE     STATUS=OK           366 CALLS     2989 TOTAL
                     EDM=   .27E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          6.6281        5.4651        .14082E-03   -1.5193    
   2  Prefactor     .10000E-03    8.9943        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    13.394        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    6.3851        .33277E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    28.271        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          5.4265        3.0297        .84114E-04   -1.5242    
   7  norm          .10000E-03    1.0098        .67139E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     33.426        19.421        .69314E-04   -1.4551    
   9  Prefactor     1.0558        2.7948        .19959E-02   -1.5502    
  10  norm          .10000E-03    .59310        .90521E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    43.918        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          .10000E-03    2.3808        .15897E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     17.084        7.0526        .96894E-04   -1.4881    
  14  norm          .10000E-03    1.2515        .74550E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    15.113        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          33.140        5.3427        .61171E-04   -1.4556    
  17  Prefactor     19.238        17.943        .91250E-04   -1.4830    
  18  Prefactor     1.5581        8.7032        .17127E-02   -1.5458    
  19  Prefactor     .10000E-03    12.677        .42815E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    20.104        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     63.290        53.159        .50432E-04   -1.4115    
  22  Normalizat    .57603        .24344        .30531E-03   -1.0901    
  23  Prefactor     1.3505        .27573        .24814E-03   -.81818    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.70211e-09
Minuit parameter uncertainties:
  1  5.46552
  2  5.54575e-05
  3  3.5761e-05
  4  6.43956e-08
  5  0.000229243
  6  3.02983
  7  2.54045e-07
  8  19.4247
  9  2.79519
  10  1.44555e-05
  11  0.00013847
  12  0.000117521
  13  7.05294
  14  1.67938e-06
  15  1.75137e-05
  16  5.34281
  17  17.948
  18  7.36636
  19  0.000231723
  20  0.000259952
  21  53.1992
  22  0.243895
  23  0.276034
Done.

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

Extracting fit parameters...

4FGL J0145.0-2732
   Spectrum: LogParabola
290         norm:  1.000e-04  1.679e-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:  1.350e+00  2.760e-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:  5.760e-01  2.439e-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.80e-08 ph cm-2 s-1
Energy Flux Upper Limit: 1.79e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/835595/likelihoodResults_649382401_649641601_4FGL_J0145.0-2732_daily_bin1582.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) = 4699.47764371
delta logL = -0.00369248388688

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4699.44398192
delta logL = 0.0299693062207

Fit tolerance = 1e-08

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

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

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   4699.444     FROM MIGRAD    STATUS=CONVERGED     54 CALLS      288 TOTAL
                     EDM=   .20E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .11535        91.542        .95808E-02    .26599E-02
   2  alpha         5.0000        4.8740        .46269    ** at limit **
   3  Normalizat    .56017        .24849        .69924E-01    .25123E-03
   4  Prefactor     1.3631        .12428        .55910E-01    .42500E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.115349
  alpha      = 5
  Normalizat = 0.560172
  Prefactor  = 1.36312
 **********
 **   18 **HESSE 
 **********

 FCN=   4699.444     FROM HESSE     STATUS=OK            27 CALLS      315 TOTAL
                     EDM=   .17E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .11535        .54372        .92388E-04   -1.5640    
   2  alpha         5.0000        4.9830        .92538E-01    1.5707    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Normalizat    .56017        .23675        .30952E-03   -1.0970    
   4  Prefactor     1.3631        .27944        .24720E-03   -.81449    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.73314e-09
Minuit parameter uncertainties:
  1  0.500661
  2  0.000836605
  3  0.237174
  4  0.279754
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/835595': 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) = 4699.44397723
delta logL = 0.0299739908842

Extracting fit parameters...

4FGL J0145.0-2732
   Spectrum: LogParabola
290         norm:  1.153e-01  5.007e-01  1.000e-04  1.000e+04 ( 1.000e-11)
291        alpha:  5.000e+00  8.366e-04  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:  1.363e+00  2.798e-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:  5.602e-01  2.372e-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/835595/cmap_HighResolution_649382401_649641601_4FGL_J0145.0-2732_daily_bin1582.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.79e-05', job_status='DONE', photon_flux_upper_limit='6.80e-08', time_completed='2021-08-14 16:21:49.833271', job_id='835595', GAL2='1.36', fit_tolerance='1e-08', EG2='0.56', EG='0.58', time_epoch_completed='1628983309.83', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.35', dlogl='3.00e-02', ts2='0.06', photon_index_error='0.00', photon_index='2.48' WHERE bin_id='1582' AND source_name='4FGL J0145.0-2732' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Aug 14 16:21:49 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0287>
Subject: Job 835595: <4FGL_J0145.0-2732_daily_bin1582> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0145.0-2732_daily_bin1582 26.2585 -27.5363 649382401 649641601 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 :                                   807.00 sec.
    Max Memory :                                 1223 MB
    Average Memory :                             285.31 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              7
    Max Threads :                                21
    Run time :                                   891 sec.
    Turnaround time :                            980 sec.

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

