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


Performing analysis on: 4FGL_J0145.0-2732_daily_bin1607
RA = 26.2585, Dec = -27.5363
tmin = 655862401, tmax = 656121601
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='142348', job_status='RUN', time_executed='2021-12-07 12:18:08.995169', time_epoch_executed='1638908289.0' WHERE source_name='4FGL J0145.0-2732' and cadence='daily' and bin_id='1607'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/142348

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/142348/ft1_4FGL_J0145.0-2732_daily_bin1607.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/142348/ft2_4FGL_J0145.0-2732_daily_bin1607.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/142348/ft1_4FGL_J0145.0-2732_daily_bin1607.fits outfile=/scratch/kocevski/142348/ft1_filteredMKT_4FGL_J0145.0-2732_daily_bin1607.fits ra=26.2585 dec=-27.5363 rad=12.0 tmin=655862401.0 tmax=656121601.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 4.59
user 4.32
sys 0.25

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/142348/ft2_4FGL_J0145.0-2732_daily_bin1607.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/142348/ft1_filteredMKT_4FGL_J0145.0-2732_daily_bin1607.fits evtable="EVENTS" outfile="/scratch/kocevski/142348/ft1_filtered_4FGL_J0145.0-2732_daily_bin1607.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 0.52
user 0.36
sys 0.14

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/142348/ft1_filtered_4FGL_J0145.0-2732_daily_bin1607.fits" evtable="EVENTS" scfile=/scratch/kocevski/142348/ft2_4FGL_J0145.0-2732_daily_bin1607.fits sctable="SC_DATA" outfile=/scratch/kocevski/142348/ltcube_655862401_656121601_4FGL_J0145.0-2732_daily_bin1607.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/142348/ft2_4FGL_J0145.0-2732_daily_bin1607.fits
.....................!
real 15.61
user 13.85
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/142348/ft1_filtered_4FGL_J0145.0-2732_daily_bin1607.fits evtable="EVENTS" scfile=/scratch/kocevski/142348/ft2_4FGL_J0145.0-2732_daily_bin1607.fits sctable="SC_DATA" expcube=/scratch/kocevski/142348/ltcube_655862401_656121601_4FGL_J0145.0-2732_daily_bin1607.fits outfile=/scratch/kocevski/142348/expmap_655862401_656121601_4FGL_J0145.0-2732_daily_bin1607.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/142348/ltcube_655862401_656121601_4FGL_J0145.0-2732_daily_bin1607.fits
.....................!
real 191.85
user 186.53
sys 4.67

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/142348/ft1_filtered_4FGL_J0145.0-2732_daily_bin1607.fits scfile=/scratch/kocevski/142348/ft2_4FGL_J0145.0-2732_daily_bin1607.fits outfile=/scratch/kocevski/142348/cmap_655862401_656121601_4FGL_J0145.0-2732_daily_bin1607.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 0.57
user 0.40
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/142348/ft1_filtered_4FGL_J0145.0-2732_daily_bin1607.fits scfile=/scratch/kocevski/142348/ft2_4FGL_J0145.0-2732_daily_bin1607.fits outfile=/scratch/kocevski/142348/cmap_HighResolution_655862401_656121601_4FGL_J0145.0-2732_daily_bin1607.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 0.57
user 0.39
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/142348/ft1_filtered_4FGL_J0145.0-2732_daily_bin1607.fits evtable="EVENTS" scfile=/scratch/kocevski/142348/ft2_4FGL_J0145.0-2732_daily_bin1607.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/142348/Model_4FGL_J0145.0-2732_daily_bin1607.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/142348/ft1_filtered_4FGL_J0145.0-2732_daily_bin1607.fits.....................!
real 38.04
user 36.68
sys 1.28

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .92784       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .55180E-02   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    1.1317       1.0000         .10000E-03   10000.    
     7 'norm      '    1.5272       1.0000         .10000E-03   10000.    
     8 'Prefactor '    63.810       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10273E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    .13327E-02   1.0000         .10000E-03   10000.    
    11 'Prefactor '    28.824       1.0000         .10000E-03   10000.    
    12 'norm      '    2.2860       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10078E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10039E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    1.8545       1.0000         .10000E-03   10000.    
    17 'Prefactor '    19.824       1.0000         .10000E-03   10000.    
    18 'Prefactor '    7.3746       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .26000E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    22 'Normalizat'    1.2651       1.0000         .10000E-01   10.000    
    23 'Prefactor '    .57697       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=   3947.232     FROM MIGRAD    STATUS=CONVERGED    565 CALLS     2372 TOTAL
                     EDM=   .18E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .92805        4.7584        .12908E-01    .78929E-03
   2  Prefactor     .10000E-03    4.3124        .90712E-02** at limit **
   3  Prefactor     .10000E-03    6.3287        .90712E-02** at limit **
   4  Prefactor     .10003E-03    2.5970        .70039E-01** at limit **
   5  Prefactor     .10000E-03    4.6256        .90712E-02** at limit **
   6  norm          1.1312        1.9435        .22135E-01    .19406E-03
   7  norm          1.5267        2.9409        .86372E-02    .44541E-03
   8  Prefactor     63.809        29.972        .12559E-02    .19767E-03
   9  Prefactor     .10000E-03    4.1322        .43666E-01** at limit **
  10  norm          .10002E-03    .80265        .35011E-01** at limit **
  11  Prefactor     28.830        28.888        .18656E-02    .36441E-03
  12  norm          2.2858        2.7839        .67881E-02    .25186E-03
  13  Prefactor     .10000E-03    2.9266        .90712E-02** at limit **
  14  norm          .10000E-03    2.8352        .90712E-02** at limit **
  15  Prefactor     .10000E-03    21.407        .90712E-02** at limit **
  16  norm          1.8548        2.8942        .76522E-02    .40944E-03
  17  Prefactor     19.821        15.631        .22489E-02    .95487E-03
  18  Prefactor     7.3726        6.8308        .36923E-02   -.43859E-02
  19  Prefactor     .26419E-03    4.3575        .78227E-01** at limit **
  20  Prefactor     .10002E-03    15.447        .90712E-02** at limit **
  21  Prefactor     .10001E-03    14.877        .90712E-02** at limit **
  22  Normalizat    1.2650        .20184        .33461E-01    .11742E-04
  23  Prefactor     .57712        .21743        .70690E-01    .27613E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.928054
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100028
  Prefactor  = 0.0001
  norm       = 1.13124
  norm       = 1.52667
  Prefactor  = 63.8094
  Prefactor  = 0.0001
  norm       = 0.000100017
  Prefactor  = 28.8302
  norm       = 2.2858
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.000100001
  norm       = 1.85478
  Prefactor  = 19.8213
  Prefactor  = 7.3726
  Prefactor  = 0.00026419
  Prefactor  = 0.000100016
  Prefactor  = 0.000100013
  Normalizat = 1.26501
  Prefactor  = 0.57712
 **********
 **   18 **HESSE 
 **********

 FCN=   3947.232     FROM HESSE     STATUS=OK           392 CALLS     2764 TOTAL
                     EDM=   .17E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .92805        4.8116        .26156E-03   -1.5515    
   2  Prefactor     .10000E-03    4.3526        .12740E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    6.3420        .15435E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10003E-03    8.1354        .32816E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    4.6329        .13191E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          1.1312        1.6604        .10931E-02   -1.5495    
   7  norm          1.5267        2.8963        .13651E-03   -1.5461    
   8  Prefactor     63.809        29.695        .50236E-04   -1.4109    
   9  Prefactor     .10000E-03    7.5930        .24107E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          .10002E-03    1.5790        .20171E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     28.830        28.889        .74624E-04   -1.4634    
  12  norm          2.2858        2.7581        .10811E-03   -1.5406    
  13  Prefactor     .10000E-03    3.0191        .20969E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .10000E-03    2.9108        .20630E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    21.412        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          1.8548        2.8774        .12814E-03   -1.5436    
  17  Prefactor     19.821        15.647        .89956E-04   -1.4817    
  18  Prefactor     7.3726        6.8255        .14769E-03   -1.5165    
  19  Prefactor     .26419E-03    9.7375        .43157E-01   -1.5705    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10002E-03    15.449        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10001E-03    14.883        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Normalizat    1.2650        .23062        .19811E-03   -.84617    
  23  Prefactor     .57712        .24568        .31292E-03   -1.0856    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.74738e-08
Minuit parameter uncertainties:
  1  4.22662
  2  1.68072e-07
  3  7.98737e-06
  4  0.000949858
  5  5.39721e-08
  6  1.66052
  7  2.8966
  8  29.7023
  9  1.22629e-05
  10  0.000332441
  11  28.903
  12  2.75827
  13  2.33264e-06
  14  1.83155e-06
  15  0.00022449
  16  2.87756
  17  15.6506
  18  6.82625
  19  0.0799829
  20  0.000990868
  21  0.000871403
  22  0.23081
  23  0.246135
Done.

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

Extracting fit parameters...

4FGL J0145.0-2732
   Spectrum: LogParabola
290         norm:  1.000e-04  1.832e-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:  5.771e-01  2.461e-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.265e+00  2.308e-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: 9.72e-08 ph cm-2 s-1
Energy Flux Upper Limit: 2.55e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/142348/likelihoodResults_655862401_656121601_4FGL_J0145.0-2732_daily_bin1607.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) = 3947.2334747
delta logL = -0.00163579084528

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 3947.10136514
delta logL = 0.130473764442

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .40832       1.0000         .10000E-03   10000.    
     2 'alpha     '    5.0000       1.0000          .0000       5.0000    
     3 'Normalizat'    1.2232       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .60698       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=   3947.101     FROM MIGRAD    STATUS=CONVERGED    109 CALLS      333 TOTAL
                     EDM=   .13E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .40833        .85468        .76022E-04    .17302E-03
   2  alpha         5.0000        4.4958        .12672    ** at limit **
   3  Normalizat    1.2232        .23419        .20092E-03   -.28008E-05
   4  Prefactor     .60698        .25092        .30577E-03    .16954E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.408327
  alpha      = 5
  Normalizat = 1.22322
  Prefactor  = 0.606983
 **********
 **   18 **HESSE 
 **********

 FCN=   3947.101     FROM HESSE     STATUS=OK            23 CALLS      356 TOTAL
                     EDM=   .13E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .40833        .85121        .30409E-05   -1.5580    
   2  alpha         5.0000        4.5001        .25345E-01    1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Normalizat    1.2232        .23430        .80370E-05   -.85888    
   4  Prefactor     .60698        .25109        .12231E-04   -1.0729    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.28645e-11
Minuit parameter uncertainties:
  1  0.851232
  2  1.52768e-05
  3  0.234499
  4  0.251556
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/142348': 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) = 3947.10136514
delta logL = 0.130473764559

Extracting fit parameters...

4FGL J0145.0-2732
   Spectrum: LogParabola
290         norm:  4.083e-01  8.512e-01  1.000e-04  1.000e+04 ( 1.000e-11)
291        alpha:  5.000e+00  1.528e-05  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:  6.070e-01  2.516e-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.223e+00  2.345e-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/142348/cmap_HighResolution_655862401_656121601_4FGL_J0145.0-2732_daily_bin1607.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.55e-05', job_status='DONE', photon_flux_upper_limit='9.72e-08', time_completed='2021-12-07 12:27:08.387191', job_id='142348', GAL2='0.61', fit_tolerance='1e-08', EG2='1.22', EG='1.27', time_epoch_completed='1638908828.39', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.58', dlogl='1.30e-01', ts2='0.29', photon_index_error='0.00', photon_index='2.48' WHERE bin_id='1607' AND source_name='4FGL J0145.0-2732' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Dec  7 12:27:08 PST 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0116>
Subject: Job 142348: <4FGL_J0145.0-2732_daily_bin1607> in cluster <slac> Done

Job <4FGL_J0145.0-2732_daily_bin1607> was submitted from host <rhel6-64e> by user <kocevski> in cluster <slac> at Tue Dec  7 12:15:24 2021
Job was executed on host(s) <bullet0116>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Dec  7 12:16:50 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Tue Dec  7 12:16:50 2021
Terminated at Tue Dec  7 12:27:09 2021
Results reported at Tue Dec  7 12:27:09 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0145.0-2732_daily_bin1607 26.2585 -27.5363 655862401 656121601 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 :                                   537.06 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             294.33 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   618 sec.
    Turnaround time :                            705 sec.

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

