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


Performing analysis on: 4FGL_J0532.0-4827_daily_bin1171
RA = 83.0022, Dec = -48.4607
tmin = 542851201, tmax = 543110401
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='403195', job_status='RUN', time_executed='2021-08-22 21:22:03.850865', time_epoch_executed='1629692523.85' WHERE source_name='4FGL J0532.0-4827' and cadence='daily' and bin_id='1171'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/403195

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

Retrieving the FT1 file...

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

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

Retrieving 4 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/403195/ft1_4FGL_J0532.0-4827_daily_bin1171.fits


Retrieving the FT1 file...

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

Retrieving 4 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/403195/ft2_4FGL_J0532.0-4827_daily_bin1171.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/403195/ft1_4FGL_J0532.0-4827_daily_bin1171.fits outfile=/scratch/kocevski/403195/ft1_filteredMKT_4FGL_J0532.0-4827_daily_bin1171.fits ra=83.0022 dec=-48.4607 rad=12.0 tmin=542851201.0 tmax=543110401.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.85
user 0.60
sys 5.20

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/403195/ft2_4FGL_J0532.0-4827_daily_bin1171.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/403195/ft2_4FGL_J0532.0-4827_daily_bin1171.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/403195/ft1_filteredMKT_4FGL_J0532.0-4827_daily_bin1171.fits evtable="EVENTS" outfile="/scratch/kocevski/403195/ft1_filtered_4FGL_J0532.0-4827_daily_bin1171.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 5.06
user 0.29
sys 4.75

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/403195/ft1_filtered_4FGL_J0532.0-4827_daily_bin1171.fits" evtable="EVENTS" scfile=/scratch/kocevski/403195/ft2_4FGL_J0532.0-4827_daily_bin1171.fits sctable="SC_DATA" outfile=/scratch/kocevski/403195/ltcube_542851201_543110401_4FGL_J0532.0-4827_daily_bin1171.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/403195/ft2_4FGL_J0532.0-4827_daily_bin1171.fits
.....................!
real 6.98
user 1.52
sys 5.43

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/403195/ft1_filtered_4FGL_J0532.0-4827_daily_bin1171.fits evtable="EVENTS" scfile=/scratch/kocevski/403195/ft2_4FGL_J0532.0-4827_daily_bin1171.fits sctable="SC_DATA" expcube=/scratch/kocevski/403195/ltcube_542851201_543110401_4FGL_J0532.0-4827_daily_bin1171.fits outfile=/scratch/kocevski/403195/expmap_542851201_543110401_4FGL_J0532.0-4827_daily_bin1171.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/403195/ltcube_542851201_543110401_4FGL_J0532.0-4827_daily_bin1171.fits
.....................!
real 195.75
user 185.09
sys 10.23

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
Extended source LMC-FarWest in ROI, make sure /nfs/farm/g/glast/g/LCRepository/Likelihood/ExtendedSources/Extended_archive_v18/Templates/LMC-FarWest.fits is the correct path to the extended template.
Extended source LMC-Galaxy in ROI, make sure /nfs/farm/g/glast/g/LCRepository/Likelihood/ExtendedSources/Extended_archive_v18/Templates/LMC-Galaxy.fits is the correct path to the extended template.
Extended source LMC-30DorWest in ROI, make sure /nfs/farm/g/glast/g/LCRepository/Likelihood/ExtendedSources/Extended_archive_v18/Templates/LMC-30DorWest.fits is the correct path to the extended template.
Extended source LMC-North in ROI, make sure /nfs/farm/g/glast/g/LCRepository/Likelihood/ExtendedSources/Extended_archive_v18/Templates/LMC-North.fits is the correct path to the extended template.
Added 202 point sources and 4 extended sources
If using unbinned likelihood you will need to rerun gtdiffrsp for the extended sources or rerun the makeModel function with optional argument psForce=True

Setting source of interest to:
4FGL J0532.0-4827 @ 83.0022 -48.4607

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/403195/ft1_filtered_4FGL_J0532.0-4827_daily_bin1171.fits scfile=/scratch/kocevski/403195/ft2_4FGL_J0532.0-4827_daily_bin1171.fits outfile=/scratch/kocevski/403195/cmap_542851201_543110401_4FGL_J0532.0-4827_daily_bin1171.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=83.0022 yref=-48.4607 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 5.48
user 0.35
sys 5.09

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/403195/ft1_filtered_4FGL_J0532.0-4827_daily_bin1171.fits scfile=/scratch/kocevski/403195/ft2_4FGL_J0532.0-4827_daily_bin1171.fits outfile=/scratch/kocevski/403195/cmap_HighResolution_542851201_543110401_4FGL_J0532.0-4827_daily_bin1171.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=83.0022 yref=-48.4607 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 5.54
user 0.38
sys 5.11

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/403195/ft1_filtered_4FGL_J0532.0-4827_daily_bin1171.fits evtable="EVENTS" scfile=/scratch/kocevski/403195/ft2_4FGL_J0532.0-4827_daily_bin1171.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/403195/Model_4FGL_J0532.0-4827_daily_bin1171.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
adding source LMC-30DorWest
adding source LMC-FarWest
adding source LMC-Galaxy
adding source LMC-North
Working on...
/scratch/kocevski/403195/ft1_filtered_4FGL_J0532.0-4827_daily_bin1171.fits.............!
real 88.93
user 81.14
sys 7.27

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/403195/ft1_filtered_4FGL_J0532.0-4827_daily_bin1171.fits', '/scratch/kocevski/403195/ft2_4FGL_J0532.0-4827_daily_bin1171.fits', expMap='/scratch/kocevski/403195/expmap_542851201_543110401_4FGL_J0532.0-4827_daily_bin1171.fits', expCube='/scratch/kocevski/403195/ltcube_542851201_543110401_4FGL_J0532.0-4827_daily_bin1171.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/403195/Model_4FGL_J0532.0-4827_daily_bin1171.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J0532.0-4827'

4FGL J0532.0-4827
   Spectrum: LogParabola
291         norm:  5.537e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-12)
292        alpha:  2.087e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
293         beta:  7.777e-02  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
294           Eb:  9.353e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/403195/ft1_filtered_4FGL_J0532.0-4827_daily_bin1171.fits
Spacecraft file(s): /scratch/kocevski/403195/ft2_4FGL_J0532.0-4827_daily_bin1171.fits
Exposure map: /scratch/kocevski/403195/expmap_542851201_543110401_4FGL_J0532.0-4827_daily_bin1171.fits
Exposure cube: /scratch/kocevski/403195/ltcube_542851201_543110401_4FGL_J0532.0-4827_daily_bin1171.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/403195/Model_4FGL_J0532.0-4827_daily_bin1171.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) = 153.928095301

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10011E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .11689E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    29.629       1.0000         .10000E-03   10000.    
     5 'norm      '    .13870E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10014E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    .10006E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10245E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .11000E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10393E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .11714E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    .11271E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    30.250       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10174E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10966E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    181.45       1.0000         .10000E-03   10000.    
    19 'norm      '    .11231E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .31567E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    .11784E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10796E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .11751E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    222.91       1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10611E-03   1.0000         .10000E-03   10000.    
    27 'Prefactor '    .10167E-03   1.0000         .10000E-03   10000.    
    28 'Prefactor '    .10074E-03   1.0000         .10000E-03   10000.    
    29 'Prefactor '    .11454E-03   1.0000         .10000E-03   10000.    
    30 'Normalizat'    1.3895       1.0000         .10000E-01   10.000    
    31 'Prefactor '    .21087E-01   1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6720E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   153.8432     FROM MIGRAD    STATUS=CONVERGED    120 CALLS     3377 TOTAL
                     EDM=   .94E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10491E-03    29.864       -.25952E-04** at limit **
   2  Prefactor     .10820E-02    108.11       -.23224E-04** at limit **
   3  Prefactor     .10000E-03    11.018       -.49520E-05** at limit **
   4  norm          29.616        1.8996       -.33452E-06    .38355E-03
   5  norm          .10000E-03    27.826        .32736E-06** at limit **
   6  Prefactor     .10000E-03    10.197        .38358E-05** at limit **
   7  Prefactor     .10499E-03    20.793       -.24846E-04** at limit **
   8  norm          .10000E-03    21.585       -.61106E-06** at limit **
   9  Prefactor     .18526E-03    75.792       -.18085E-04** at limit **
  10  Prefactor     .11053E-03    33.503       -.15342E-04** at limit **
  11  Prefactor     .10134E-03    51.557       -.11830E-04** at limit **
  12  Prefactor     .10000E-03    22.064       -.51173E-05** at limit **
  13  Prefactor     .10001E-03    43.944        .11126E-04** at limit **
  14  norm          .11232E-03    57.623       -.14586E-04** at limit **
  15  norm          30.167        10.507       -.22362E-05    .15750E-03
  16  Prefactor     .10263E-03    18.824       -.23480E-04** at limit **
  17  Prefactor     .10167E-03    18.948       -.22810E-04** at limit **
  18  Prefactor     181.43        3.7118       -.28570E-06    .43390E-02
  19  norm          .10000E-03    6.6416        .41712E-06** at limit **
  20  Prefactor     .10254E-03    2.2440       -.31189E-05** at limit **
  21  norm          .21217E-03    107.38       -.24204E-04** at limit **
  22  norm          .10415E-03    29.652       -.19653E-04** at limit **
  23  Prefactor     .10002E-03    148.66       -.28375E-04** at limit **
  24  Prefactor     .10405E-03    29.671       -.19709E-04** at limit **
  25  Prefactor     222.87        6.1921       -.44623E-06    .79064E-02
  26  Prefactor     .29330E-02    57.145       -.16580E-04    .12043E-02
  27  Prefactor     .11902E-03    150.04       -.28288E-04** at limit **
  28  Prefactor     .10056E-03    53.065       -.11779E-04** at limit **
  29  Prefactor     .53131E-02    20.921       -.98875E-05    .85748E-03
  30  Normalizat    1.3935        1.6683       -.14135E-04   -.61399E-05
  31  Prefactor     .17131E-01    9.7711        .12754E-03   -.17346E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 0.000104914
  Prefactor  = 0.00108198
  Prefactor  = 0.0001
  norm       = 29.6163
  norm       = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 0.000104986
  norm       = 0.000100003
  Prefactor  = 0.000185262
  Prefactor  = 0.000110531
  Prefactor  = 0.000101343
  Prefactor  = 0.000100005
  Prefactor  = 0.000100014
  norm       = 0.000112322
  norm       = 30.1675
  Prefactor  = 0.000102629
  Prefactor  = 0.000101669
  Prefactor  = 181.433
  norm       = 0.0001
  Prefactor  = 0.000102537
  norm       = 0.000212165
  norm       = 0.000104147
  Prefactor  = 0.000100023
  Prefactor  = 0.000104048
  Prefactor  = 222.873
  Prefactor  = 0.00293301
  Prefactor  = 0.000119015
  Prefactor  = 0.000100564
  Prefactor  = 0.00531305
  Normalizat = 1.39346
  Prefactor  = 0.0171312
 **********
 **   18 **HESSE 
 **********

 FCN=   153.8432     FROM HESSE     STATUS=NOT POSDEF   664 CALLS     4041 TOTAL
                     EDM=   .82E-05    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10491E-03    86.645        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10820E-02    1066.3        .90712E-02   -1.5702    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    9.3757        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          29.616        109.15        .18401E-02   -1.4619    
   5  norm          .10000E-03    23.616        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    8.6726        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10499E-03    78.274        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .10000E-03    18.346        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .18526E-03    256.32        .90712E-02   -1.5710    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .11053E-03    128.90        .90712E-02   -1.5707    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10134E-03    161.62        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    18.861        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10001E-03    38.909        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .11232E-03    65.787        .90712E-02   -1.5707    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          30.167        52.274        .18212E-02   -1.4609    
  16  Prefactor     .10263E-03    74.592        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10167E-03    74.047        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     181.43        569.10        .74920E-03   -1.3006    
  19  norm          .10000E-03    5.6314        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10254E-03    398.88        .10684E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          .21217E-03    342.92        .90712E-02   -1.5710    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          .10415E-03    112.19        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10002E-03    534.08        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10405E-03    112.00        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     222.87        177.01        .67739E-03   -1.2711    
  26  Prefactor     .29330E-02    1763.9        .90712E-02   -1.5697    
  27  Prefactor     .11902E-03    598.50        .90712E-02   -1.5707    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Prefactor     .10056E-03    165.01        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Prefactor     .53131E-02    6582.7        .90712E-02   -1.5694    
  30  Normalizat    1.3935        7.2626        .54442E-01   -.80818    
  31  Prefactor     .17131E-01    6.2390        .16283       -1.4880    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 8.17069e-06
Minuit parameter uncertainties:
  1  0.0413298
  2  2.08482
  3  1.91092e-05
  4  109.893
  5  0.000336227
  6  1.75155e-05
  7  0.0395637
  8  0.000478103
  9  0.29694
  10  0.0738464
  11  0.0295505
  12  0.000605067
  13  0.00148227
  14  0.0570063
  15  52.3532
  16  0.0280438
  17  0.0222614
  18  587.934
  19  1.36102e-06
  20  0.0640499
  21  0.39452
  22  0.0432218
  23  0.00708832
  24  0.0426672
  25  177.435
  26  4.61399
  27  0.215547
  28  0.019342
  29  8.63914
  30  8.69349
  31  4.79838
Done.

MINUIT Return Code (Fixed Index): 102
logL (Fixed Index) = 153.843237724

Extracting fit parameters...

4FGL J0532.0-4827
   Spectrum: LogParabola
291         norm:  3.017e+01  5.235e+01  1.000e-04  1.000e+04 ( 1.000e-12)
292        alpha:  2.087e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
293         beta:  7.777e-02  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
294           Eb:  9.353e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
656    Prefactor:  1.713e-02  4.798e+00  0.000e+00  1.000e+01 ( 1.000e+00)
657        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
658        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
655   Normalization:  1.393e+00  8.693e+00  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.48
Ra Dec: 83.002 -48.461
Photon Flux Upper Limit: 1.58e-06 ph cm-2 s-1
Energy Flux Upper Limit: 8.12e-04 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/403195/likelihoodResults_542851201_543110401_4FGL_J0532.0-4827_daily_bin1171.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) = 152.589628127
delta logL = 1.25360959668

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 152.457863227
delta logL = 1.38537449713

Fit tolerance = 1e-08

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

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

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   152.4579     FROM MIGRAD    STATUS=CONVERGED     54 CALLS      359 TOTAL
                     EDM=   .48E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          3.0508        94.260        .37499E-02   -.95357E-03
   2  alpha         4.5594        3.1367        .85284E-01   -.41766E-04
   3  Normalizat    .32804        .93319        .37133E-01    .89559E-05
   4  Prefactor     .54298        .66177        .40237E-01    .73475E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 3.05078
  alpha      = 4.55938
  Normalizat = 0.328044
  Prefactor  = 0.542985
 **********
 **   18 **HESSE 
 **********

 FCN=   152.4579     FROM HESSE     STATUS=OK            25 CALLS      384 TOTAL
                     EDM=   .10E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          3.0508        9.1395        .16573E-04   -1.5359    
   2  alpha         4.5594        3.8017        .37814E-03    .96800    
   3  Normalizat    .32804        5.3438        .44380E-03   -1.2120    
   4  Prefactor     .54298        1.1377        .23827E-03   -1.1004    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.00367e-09
Minuit parameter uncertainties:
  1  9.14366
  2  1.68289
  3  1.76753
  4  1.19187
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/403195': 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) = 152.45785079
delta logL = 1.38538693419

Extracting fit parameters...

4FGL J0532.0-4827
   Spectrum: LogParabola
291         norm:  3.051e+00  9.144e+00  1.000e-04  1.000e+04 ( 1.000e-12)
292        alpha:  4.559e+00  1.683e+00  0.000e+00  5.000e+00 ( 1.000e+00)
293         beta:  7.777e-02  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
294           Eb:  9.353e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
656    Prefactor:  5.430e-01  1.192e+00  0.000e+00  1.000e+01 ( 1.000e+00)
657        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
658        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
655   Normalization:  3.280e-01  1.768e+00  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 3.84
Ra Dec: 83.002 -48.461
Photon Index (Free Index): 4.56 +/- 1.68
Photon Flux (Free Index): 1.70e-06 +/- 1.57e-06
Energy Flux (Free Index): 2.43e-04 +/- 2.09e-04

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/403195/cmap_HighResolution_542851201_543110401_4FGL_J0532.0-4827_daily_bin1171.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='8.12e-04', comment='SUCCESS', energy_flux2='2.43e-04', dlogl='1.39e+00', photon_flux2='1.70e-06', job_status='DONE', time_completed='2021-08-22 21:29:29.304030', photon_index_error2='1.68', photon_index2='4.56', ts='0.48', fit_tolerance='1e-08', GAL='0.02', photon_index_error='0.00', photon_flux_upper_limit='1.58e-06', energy_flux_error2='2.09e-04', EG='1.39', time_epoch_completed='1629692969.3', return_code='102', job_id='403195', GAL2='0.54', EG2='0.33', return_code2='0', photon_flux_error2='1.57e-06', ts2='3.84', photon_index='2.09' WHERE bin_id='1171' AND source_name='4FGL J0532.0-4827' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Aug 22 21:29:29 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0211>
Subject: Job 403195: <4FGL_J0532.0-4827_daily_bin1171> in cluster <slac> Done

Job <4FGL_J0532.0-4827_daily_bin1171> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Sun Aug 22 21:20:26 2021
Job was executed on host(s) <bullet0211>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Aug 22 21:20:28 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sun Aug 22 21:20:28 2021
Terminated at Sun Aug 22 21:29:30 2021
Results reported at Sun Aug 22 21:29:30 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0532.0-4827_daily_bin1171 83.0022 -48.4607 542851201 543110401 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J0532.0-4827 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   521.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             421.44 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   542 sec.
    Turnaround time :                            544 sec.

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

