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


Performing analysis on: 4FGL_J0145.0-2732_daily_bin1546
RA = 26.2585, Dec = -27.5363
tmin = 640051201, tmax = 640310401
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='835542', job_status='RUN', time_executed='2021-08-14 16:07:22.508862', time_epoch_executed='1628982442.51' WHERE source_name='4FGL J0145.0-2732' and cadence='daily' and bin_id='1546'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/835542

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/835542/ft1_4FGL_J0145.0-2732_daily_bin1546.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/835542/ft2_4FGL_J0145.0-2732_daily_bin1546.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/835542/ft1_4FGL_J0145.0-2732_daily_bin1546.fits outfile=/scratch/kocevski/835542/ft1_filteredMKT_4FGL_J0145.0-2732_daily_bin1546.fits ra=26.2585 dec=-27.5363 rad=12.0 tmin=640051201.0 tmax=640310401.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 5.52
user 3.39
sys 2.06

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/835542/ft1_filtered_4FGL_J0145.0-2732_daily_bin1546.fits" evtable="EVENTS" scfile=/scratch/kocevski/835542/ft2_4FGL_J0145.0-2732_daily_bin1546.fits sctable="SC_DATA" outfile=/scratch/kocevski/835542/ltcube_640051201_640310401_4FGL_J0145.0-2732_daily_bin1546.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/835542/ft2_4FGL_J0145.0-2732_daily_bin1546.fits
.....................!
real 15.45
user 12.94
sys 2.46

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/835542/ft1_filtered_4FGL_J0145.0-2732_daily_bin1546.fits evtable="EVENTS" scfile=/scratch/kocevski/835542/ft2_4FGL_J0145.0-2732_daily_bin1546.fits sctable="SC_DATA" expcube=/scratch/kocevski/835542/ltcube_640051201_640310401_4FGL_J0145.0-2732_daily_bin1546.fits outfile=/scratch/kocevski/835542/expmap_640051201_640310401_4FGL_J0145.0-2732_daily_bin1546.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/835542/ltcube_640051201_640310401_4FGL_J0145.0-2732_daily_bin1546.fits
.....................!
real 193.28
user 185.98
sys 6.86

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/835542/ft1_filtered_4FGL_J0145.0-2732_daily_bin1546.fits scfile=/scratch/kocevski/835542/ft2_4FGL_J0145.0-2732_daily_bin1546.fits outfile=/scratch/kocevski/835542/cmap_640051201_640310401_4FGL_J0145.0-2732_daily_bin1546.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 2.39
user 0.38
sys 1.95

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/835542/ft1_filtered_4FGL_J0145.0-2732_daily_bin1546.fits scfile=/scratch/kocevski/835542/ft2_4FGL_J0145.0-2732_daily_bin1546.fits outfile=/scratch/kocevski/835542/cmap_HighResolution_640051201_640310401_4FGL_J0145.0-2732_daily_bin1546.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 2.39
user 0.39
sys 1.98

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/835542/ft1_filtered_4FGL_J0145.0-2732_daily_bin1546.fits evtable="EVENTS" scfile=/scratch/kocevski/835542/ft2_4FGL_J0145.0-2732_daily_bin1546.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/835542/Model_4FGL_J0145.0-2732_daily_bin1546.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/835542/ft1_filtered_4FGL_J0145.0-2732_daily_bin1546.fits.....................!
real 46.13
user 42.10
sys 3.74

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .42595       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .17284E-02   1.0000         .10000E-03   10000.    
     3 'Prefactor '    31.546       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    1.9660       1.0000         .10000E-03   10000.    
     7 'norm      '    3.4983       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .20960E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .14091E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    1.3853       1.0000         .10000E-03   10000.    
    11 'Prefactor '    17.182       1.0000         .10000E-03   10000.    
    12 'norm      '    .10005E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    9.6256       1.0000         .10000E-03   10000.    
    14 'norm      '    2.0424       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    20.583       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10386E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10070E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    10.261       1.0000         .10000E-03   10000.    
    20 'Prefactor '    7.2763       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    22 'Normalizat'    .66426       1.0000         .10000E-01   10.000    
    23 'Prefactor '    1.2500       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=   5037.256     FROM MIGRAD    STATUS=CONVERGED    551 CALLS     2245 TOTAL
                     EDM=   .46E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .42634        4.1385        .10965E-01    .15072E-02
   2  Prefactor     .10007E-03    4.7589        .81983E-01** at limit **
   3  Prefactor     31.535        16.827        .17835E-02   -.20608E-03
   4  Prefactor     .10000E-03    .67891        .90712E-02** at limit **
   5  Prefactor     .10000E-03    5.0061        .90712E-02** at limit **
   6  norm          1.9661        1.9669        .73944E-02    .23932E-03
   7  norm          3.5010        2.5950        .54042E-02    .82970E-04
   8  Prefactor     .10000E-03    46.028        .90712E-02** at limit **
   9  Prefactor     .10000E-03    3.1667        .41141E-01** at limit **
  10  norm          1.3853        1.2203        .92380E-02    .14626E-03
  11  Prefactor     17.181        19.428        .24156E-02   -.12520E-03
  12  norm          .10000E-03    .72082        .90712E-02** at limit **
  13  Prefactor     9.6242        5.0761        .32291E-02    .35612E-03
  14  norm          2.0425        2.5338        .72335E-02    .34452E-03
  15  Prefactor     .10000E-03    20.397        .90712E-02** at limit **
  16  norm          20.582        5.3086        .22071E-02    .77437E-03
  17  Prefactor     .10000E-03    27.114        .90712E-02** at limit **
  18  Prefactor     .10000E-03    4.6532        .90712E-02** at limit **
  19  Prefactor     10.262        6.7448        .31272E-02   -.35555E-04
  20  Prefactor     7.0729        71.169        .37174E-02    .69116E-05
  21  Prefactor     .10001E-03    40.249        .90712E-02** at limit **
  22  Normalizat    .66444        .17962        .61169E-01    .14333E-04
  23  Prefactor     1.2498        .20450        .54961E-01   -.17216E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 0.426344
  Prefactor  = 0.000100073
  Prefactor  = 31.5351
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 1.96608
  norm       = 3.50097
  Prefactor  = 0.000100002
  Prefactor  = 0.0001
  norm       = 1.38533
  Prefactor  = 17.1805
  norm       = 0.0001
  Prefactor  = 9.6242
  norm       = 2.04246
  Prefactor  = 0.0001
  norm       = 20.582
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 10.2618
  Prefactor  = 7.07285
  Prefactor  = 0.000100015
  Normalizat = 0.664441
  Prefactor  = 1.24984
 **********
 **   18 **HESSE 
 **********

 FCN=   5037.256     FROM HESSE     STATUS=OK           370 CALLS     2615 TOTAL
                     EDM=   .21E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .42634        4.2992        .27693E-03   -1.5577    
   2  Prefactor     .10007E-03    46.142        .28245E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     31.535        16.148        .71339E-04   -1.4584    
   4  Prefactor     .10000E-03    .68004        .57109E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    5.0154        .15479E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          1.9661        1.9169        .94188E-04   -1.5428    
   7  norm          3.5010        2.5851        .94024E-04   -1.5334    
   8  Prefactor     .10000E-03    47.338        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    6.3052        .23875E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          1.3853        1.2168        .71146E-04   -1.5473    
  11  Prefactor     17.181        19.424        .96624E-04   -1.4879    
  12  norm          .10000E-03    .72718        .58801E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     9.6242        5.0796        .10829E-03   -1.5087    
  14  norm          2.0425        2.5195        .12000E-03   -1.5422    
  15  Prefactor     .10000E-03    20.405        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          20.582        5.3115        .79105E-04   -1.4800    
  17  Prefactor     .10000E-03    27.693        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    4.7208        .14941E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     10.262        6.7429        .12509E-03   -1.5067    
  20  Prefactor     7.0729        71.096        .14870E-03   -1.5176    
  21  Prefactor     .10001E-03    40.389        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Normalizat    .66444        .21115        .27060E-03   -1.0531    
  23  Prefactor     1.2498        .24273        .24301E-03   -.84811    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.07624e-09
Minuit parameter uncertainties:
  1  2.70765
  2  0.00367421
  3  16.1504
  4  3.46108e-07
  5  2.55209e-06
  6  1.91695
  7  2.58517
  8  0.000580146
  9  4.39326e-06
  10  1.21685
  11  19.4315
  12  2.66209e-07
  13  5.07978
  14  2.51966
  15  9.83237e-06
  16  5.31163
  17  7.23956e-05
  18  3.90957e-07
  19  6.74337
  20  44.9177
  21  0.00153475
  22  0.211405
  23  0.242949
Done.

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

Extracting fit parameters...

4FGL J0145.0-2732
   Spectrum: LogParabola
290         norm:  2.042e+00  2.520e+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

GAL_V02
   Spectrum: PowerLaw
551    Prefactor:  1.250e+00  2.429e-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:  6.644e-01  2.114e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.05
Ra Dec: 26.259 -27.536
Photon Index (Fixed Index): 2.48 +/- 0.00
Photon Flux (Fixed Index): 2.43e-08 +/- 3.00e-08
Energy Flux (Fixed Index): 6.39e-06 +/- 7.89e-06

TS (Fixed Index): 1.05
Ra Dec: 26.259 -27.536
Photon Flux Upper Limit: 9.92e-08 ph cm-2 s-1
Energy Flux Upper Limit: 2.61e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/835542/likelihoodResults_640051201_640310401_4FGL_J0145.0-2732_daily_bin1546.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) = 5037.22260221
delta logL = 0.0330916749954

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5037.22143314
delta logL = 0.0342607502407

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    2.0483       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.8367       1.0000          .0000       5.0000    
     3 'Normalizat'    .65525       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.2576       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=   5037.221     FROM MIGRAD    STATUS=CONVERGED     51 CALLS      200 TOTAL
                     EDM=   .75E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          2.0498        134.51        .72217E-02    .46533E-03
   2  alpha         2.8364        3.2022        .41633        .31906E-05
   3  Normalizat    .65527        .10581        .61575E-01    .19125E-04
   4  Prefactor     1.2576        .15954        .54820E-01    .23415E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 2.04982
  alpha      = 2.83641
  Normalizat = 0.655274
  Prefactor  = 1.25759
 **********
 **   18 **HESSE 
 **********

 FCN=   5037.221     FROM HESSE     STATUS=OK            33 CALLS      233 TOTAL
                     EDM=   .23E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          2.0498        2.5230        .11411E-03   -1.5422    
   2  alpha         2.8364        1.3967        .33829E-01    .13497    
   3  Normalizat    .65527        .20482        .27240E-03   -1.0569    
   4  Prefactor     1.2576        .24249        .24238E-03   -.84577    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.25179e-11
Minuit parameter uncertainties:
  1  2.52309
  2  1.48379
  3  0.205061
  4  0.242711
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/835542': 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) = 5037.22143293
delta logL = 0.0342609613754

Extracting fit parameters...

4FGL J0145.0-2732
   Spectrum: LogParabola
290         norm:  2.050e+00  2.523e+00  1.000e-04  1.000e+04 ( 1.000e-11)
291        alpha:  2.836e+00  1.484e+00  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.258e+00  2.427e-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:  6.553e-01  2.051e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.12
Ra Dec: 26.259 -27.536
Photon Index (Free Index): 2.84 +/- 1.48
Photon Flux (Free Index): 3.00e-08 +/- 3.92e-08
Energy Flux (Free Index): 6.35e-06 +/- 7.53e-06

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/835542/cmap_HighResolution_640051201_640310401_4FGL_J0145.0-2732_daily_bin1546.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.61e-05', comment='SUCCESS', photon_flux='2.43e-08', energy_flux2='6.35e-06', photon_flux_error='3.00e-08', dlogl='3.43e-02', energy_flux='6.39e-06', photon_flux2='3.00e-08', job_status='DONE', time_completed='2021-08-14 16:17:23.172656', photon_index_error2='1.48', photon_index2='2.84', ts='1.05', fit_tolerance='1e-08', GAL='1.25', photon_index_error='0.00', photon_flux_upper_limit='9.92e-08', energy_flux_error2='7.53e-06', EG='0.66', time_epoch_completed='1628983043.17', return_code='0', job_id='835542', GAL2='1.26', EG2='0.66', return_code2='0', energy_flux_error='7.89e-06', photon_flux_error2='3.92e-08', ts2='1.12', photon_index='2.48' WHERE bin_id='1546' AND source_name='4FGL J0145.0-2732' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Aug 14 16:17:23 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0283>
Subject: Job 835542: <4FGL_J0145.0-2732_daily_bin1546> in cluster <slac> Done

Job <4FGL_J0145.0-2732_daily_bin1546> was submitted from host <rhel6-64o> by user <kocevski> in cluster <slac> at Sat Aug 14 16:05:28 2021
Job was executed on host(s) <bullet0283>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Aug 14 16:06:25 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:06:25 2021
Terminated at Sat Aug 14 16:17:24 2021
Results reported at Sat Aug 14 16:17:24 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0145.0-2732_daily_bin1546 26.2585 -27.5363 640051201 640310401 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 :                                   623.25 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             345.22 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   658 sec.
    Turnaround time :                            716 sec.

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

