/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 8 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 = 7382
number of fields = 27
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J0524.6-2819_daily_bin184
RA = 81.1732, Dec = -28.3288
tmin = 287020801, tmax = 287280001
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='256800', job_status='RUN', time_executed='2021-08-22 13:06:06.364701', time_epoch_executed='1629662766.36' WHERE source_name='4FGL J0524.6-2819' and cadence='daily' and bin_id='184'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/256800

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/256800/ft1_4FGL_J0524.6-2819_daily_bin184.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/256800/ft2_4FGL_J0524.6-2819_daily_bin184.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/256800/ft1_4FGL_J0524.6-2819_daily_bin184.fits outfile=/scratch/kocevski/256800/ft1_filteredMKT_4FGL_J0524.6-2819_daily_bin184.fits ra=81.1732 dec=-28.3288 rad=12.0 tmin=287020801.0 tmax=287280001.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.24
user 4.35
sys 0.84

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/256800/ft2_4FGL_J0524.6-2819_daily_bin184.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/256800/ft2_4FGL_J0524.6-2819_daily_bin184.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/256800/ft1_filteredMKT_4FGL_J0524.6-2819_daily_bin184.fits evtable="EVENTS" outfile="/scratch/kocevski/256800/ft1_filtered_4FGL_J0524.6-2819_daily_bin184.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 1.12
user 0.32
sys 0.79

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/256800/ft1_filtered_4FGL_J0524.6-2819_daily_bin184.fits" evtable="EVENTS" scfile=/scratch/kocevski/256800/ft2_4FGL_J0524.6-2819_daily_bin184.fits sctable="SC_DATA" outfile=/scratch/kocevski/256800/ltcube_287020801_287280001_4FGL_J0524.6-2819_daily_bin184.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/256800/ft2_4FGL_J0524.6-2819_daily_bin184.fits
.....................!
real 12.67
user 11.55
sys 1.02

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/256800/ft1_filtered_4FGL_J0524.6-2819_daily_bin184.fits evtable="EVENTS" scfile=/scratch/kocevski/256800/ft2_4FGL_J0524.6-2819_daily_bin184.fits sctable="SC_DATA" expcube=/scratch/kocevski/256800/ltcube_287020801_287280001_4FGL_J0524.6-2819_daily_bin184.fits outfile=/scratch/kocevski/256800/expmap_287020801_287280001_4FGL_J0524.6-2819_daily_bin184.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/256800/ltcube_287020801_287280001_4FGL_J0524.6-2819_daily_bin184.fits
.....................!
real 191.15
user 185.55
sys 5.18

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 170 point sources and 0 extended sources

Setting source of interest to:
4FGL J0524.6-2819 @ 81.1732 -28.3288

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/256800/ft1_filtered_4FGL_J0524.6-2819_daily_bin184.fits scfile=/scratch/kocevski/256800/ft2_4FGL_J0524.6-2819_daily_bin184.fits outfile=/scratch/kocevski/256800/cmap_287020801_287280001_4FGL_J0524.6-2819_daily_bin184.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=81.1732 yref=-28.3288 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 1.16
user 0.37
sys 0.76

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/256800/ft1_filtered_4FGL_J0524.6-2819_daily_bin184.fits scfile=/scratch/kocevski/256800/ft2_4FGL_J0524.6-2819_daily_bin184.fits outfile=/scratch/kocevski/256800/cmap_HighResolution_287020801_287280001_4FGL_J0524.6-2819_daily_bin184.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=81.1732 yref=-28.3288 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 1.17
user 0.39
sys 0.76

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/256800/ft1_filtered_4FGL_J0524.6-2819_daily_bin184.fits evtable="EVENTS" scfile=/scratch/kocevski/256800/ft2_4FGL_J0524.6-2819_daily_bin184.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/256800/Model_4FGL_J0524.6-2819_daily_bin184.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/256800/ft1_filtered_4FGL_J0524.6-2819_daily_bin184.fits.....................!
real 69.33
user 67.09
sys 2.01

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/256800/ft1_filtered_4FGL_J0524.6-2819_daily_bin184.fits', '/scratch/kocevski/256800/ft2_4FGL_J0524.6-2819_daily_bin184.fits', expMap='/scratch/kocevski/256800/expmap_287020801_287280001_4FGL_J0524.6-2819_daily_bin184.fits', expCube='/scratch/kocevski/256800/ltcube_287020801_287280001_4FGL_J0524.6-2819_daily_bin184.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/256800/Model_4FGL_J0524.6-2819_daily_bin184.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J0524.6-2819'

4FGL J0524.6-2819
   Spectrum: PowerLaw
256    Prefactor:  3.247e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-13)
257        Index:  2.573e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
258        Scale:  7.597e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/256800/ft1_filtered_4FGL_J0524.6-2819_daily_bin184.fits
Spacecraft file(s): /scratch/kocevski/256800/ft2_4FGL_J0524.6-2819_daily_bin184.fits
Exposure map: /scratch/kocevski/256800/expmap_287020801_287280001_4FGL_J0524.6-2819_daily_bin184.fits
Exposure cube: /scratch/kocevski/256800/ltcube_287020801_287280001_4FGL_J0524.6-2819_daily_bin184.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/256800/Model_4FGL_J0524.6-2819_daily_bin184.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) = 5424.40367403

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    57.031       1.0000         .10000E-03   10000.    
     3 'norm      '    1.2867       1.0000         .10000E-03   10000.    
     4 'Prefactor '    21.906       1.0000         .10000E-03   10000.    
     5 'norm      '    .92612       1.0000         .10000E-03   10000.    
     6 'Prefactor '    19.486       1.0000         .10000E-03   10000.    
     7 'Prefactor '    32.305       1.0000         .10000E-03   10000.    
     8 'norm      '    123.99       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    9.5524       1.0000         .10000E-03   10000.    
    11 'Prefactor '    20.308       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    31.050       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .10042E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    1.5522       1.0000         .10000E-03   10000.    
    18 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10000E-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 'Prefactor '    21.532       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
    24 'Normalizat'    1.5077       1.0000         .10000E-01   10.000    
    25 'Prefactor '    .57328       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5650E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   5424.363     FROM MIGRAD    STATUS=CONVERGED    567 CALLS     2878 TOTAL
                     EDM=   .57E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    56.179       -.11509E-04** at limit **
   2  Prefactor     57.057        49.618        .26116E-04    .38979E-05
   3  norm          1.2864        3.5813       -.87238E-06   -.84887E-03
   4  Prefactor     21.903        10.522        .69706E-07    .32470E-04
   5  norm          .92607        .26718       -.18036E-06    .91125E-04
   6  Prefactor     19.484        45.602       -.30085E-05   -.26397E-05
   7  Prefactor     32.298        39.424       -.13459E-04   -.12558E-04
   8  norm          124.06        103.64        .59149E-04   -.49467E-05
   9  Prefactor     .10000E-03    2.1985        .22452E-06** at limit **
  10  norm          9.5521        3.7168       -.37695E-06   -.15709E-03
  11  Prefactor     20.319        41.757        .16082E-04    .18568E-04
  12  Prefactor     .10000E-03    2.3158       -.22300E-06** at limit **
  13  Prefactor     31.051        17.956        .45181E-06   -.58988E-04
  14  Prefactor     .10000E-03    5.3825        .45303E-06** at limit **
  15  norm          .10000E-03    6.3156        .26933E-06** at limit **
  16  Prefactor     .10000E-03    17.196        .11232E-04** at limit **
  17  norm          1.5530        2.5647       -.98166E-06   -.90637E-03
  18  norm          .10000E-03    4.1852        .10375E-07** at limit **
  19  Prefactor     .10000E-03    3.2139       -.37848E-06** at limit **
  20  Prefactor     .10000E-03    38.450       -.26523E-05** at limit **
  21  Prefactor     .10000E-03    17.883       -.12270E-04** at limit **
  22  Prefactor     21.531        28.479        .14279E-06   -.22391E-04
  23  Prefactor     .10000E-03    45.510        .14100E-04** at limit **
  24  Normalizat    1.5079        .24131        .50886E-06   -.92151E-04
  25  Prefactor     .57314        .17360       -.55915E-05    .12476E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  Prefactor  = 57.0573
  norm       = 1.28644
  Prefactor  = 21.9032
  norm       = 0.926065
  Prefactor  = 19.4843
  Prefactor  = 32.2979
  norm       = 124.06
  Prefactor  = 0.0001
  norm       = 9.55213
  Prefactor  = 20.3188
  Prefactor  = 0.0001
  Prefactor  = 31.0509
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 1.55298
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 21.5309
  Prefactor  = 0.0001
  Normalizat = 1.50787
  Prefactor  = 0.573139
 **********
 **   18 **HESSE 
 **********

 FCN=   5424.363     FROM HESSE     STATUS=OK           423 CALLS     3301 TOTAL
                     EDM=   .11E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    56.175        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     57.057        49.617        .53121E-04   -1.4196    
   3  norm          1.2864        3.5508        .21820E-03   -1.5481    
   4  Prefactor     21.903        10.666        .85580E-04   -1.4772    
   5  norm          .92607        .26740        .19172E-04   -1.5516    
   6  Prefactor     19.484        45.638        .90732E-04   -1.4825    
   7  Prefactor     32.298        39.469        .70498E-04   -1.4571    
   8  norm          124.06        103.62        .18074E-03   -1.3476    
   9  Prefactor     .10000E-03    2.2336        .10658E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          9.5521        3.7201        .83044E-04   -1.5090    
  11  Prefactor     20.319        41.955        .88879E-04   -1.4806    
  12  Prefactor     .10000E-03    2.3176        .10944E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     31.051        17.956        .71905E-04   -1.4593    
  14  Prefactor     .10000E-03    5.3984        .16688E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .10000E-03    6.4866        .36089E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    17.209        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          1.5530        2.5455        .13813E-03   -1.5459    
  18  norm          .10000E-03    4.1918        .14715E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    3.2222        .12894E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    38.465        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    17.889        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     21.531        28.491        .86319E-04   -1.4780    
  23  Prefactor     .10000E-03    45.564        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Normalizat    1.5079        .29042        .25496E-03   -.77557    
  25  Prefactor     .57314        .20473        .30453E-03   -1.0873    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.1085e-09
Minuit parameter uncertainties:
  1  6.47288e-06
  2  49.6534
  3  3.5514
  4  10.667
  5  0.267401
  6  45.7196
  7  39.5011
  8  103.774
  9  1.32582e-05
  10  3.72019
  11  42.0161
  12  2.29418e-06
  13  17.9594
  14  1.12765e-05
  15  4.75557e-05
  16  1.23776e-05
  17  2.54565
  18  6.76628e-06
  19  8.34007e-06
  20  3.98402e-05
  21  2.92904e-05
  22  28.5085
  23  5.16411e-05
  24  0.29074
  25  0.204998
Done.

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

Extracting fit parameters...

4FGL J0524.6-2819
   Spectrum: PowerLaw
256    Prefactor:  2.032e+01  4.202e+01  1.000e-04  1.000e+04 ( 1.000e-13)
257        Index:  2.573e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
258        Scale:  7.597e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
562    Prefactor:  5.731e-01  2.050e-01  0.000e+00  1.000e+01 ( 1.000e+00)
563        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
564        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
561   Normalization:  1.508e+00  2.907e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.30
Ra Dec: 81.173 -28.329
Photon Flux Upper Limit: 1.35e-07 ph cm-2 s-1
Energy Flux Upper Limit: 1.06e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/256800/likelihoodResults_287020801_287280001_4FGL_J0524.6-2819_daily_bin184.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) = 5421.97134659
delta logL = 2.39182434133

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5421.90172062
delta logL = 2.46145030851

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .22115       1.0000         .10000E-03   10000.    
     2 'Index     '    6.3916       1.0000          .0000       10.000    
     3 'Normalizat'    1.3193       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .67776       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5650E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   5421.902     FROM MIGRAD    STATUS=CONVERGED     54 CALLS      257 TOTAL
                     EDM=   .40E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .22083        1.7348        .38199E-02   -.70358E-02
   2  Index         6.3924        2.6546        .91638E-01   -.20896E-03
   3  Normalizat    1.3193        .75713E-01    .60744E-01    .11747E-03
   4  Prefactor     .67779        .58799E-01    .63787E-01    .11580E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.220829
  Index      = 6.39242
  Normalizat = 1.3193
  Prefactor  = 0.677787
 **********
 **   18 **HESSE 
 **********

 FCN=   5421.902     FROM HESSE     STATUS=NOT POSDEF    31 CALLS      288 TOTAL
                     EDM=   .62E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .22083        2.9526        .17152E-04   -1.5614    
   2  Index         6.3924        3.5350        .38114E-02    .28222    
   3  Normalizat    1.3193        .24245        .26866E-03   -.82992    
   4  Prefactor     .67779        .18499        .28220E-03   -1.0440    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 6.20821e-10
Minuit parameter uncertainties:
  1  1.61469
  2  3.973
  3  0.242655
  4  0.18516
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/256800': 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): 102
logL (Free Index) = 5421.90172052
delta logL = 2.46145041177

Extracting fit parameters...

4FGL J0524.6-2819
   Spectrum: PowerLaw
256    Prefactor:  2.208e-01  1.615e+00  1.000e-04  1.000e+04 ( 1.000e-13)
257        Index:  6.392e+00  3.973e+00  0.000e+00  1.000e+01 (-1.000e+00)
258        Scale:  7.597e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
562    Prefactor:  6.778e-01  1.852e-01  0.000e+00  1.000e+01 ( 1.000e+00)
563        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
564        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
561   Normalization:  1.319e+00  2.427e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 5.75
Ra Dec: 81.173 -28.329
Photon Index (Free Index): 6.39 +/- 3.97
Photon Flux (Free Index): 1.76e-07 +/- 9.01e-08
Energy Flux (Free Index): 2.16e-05 +/- 1.15e-05

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/256800/cmap_HighResolution_287020801_287280001_4FGL_J0524.6-2819_daily_bin184.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.06e-02', comment='SUCCESS', energy_flux2='2.16e-05', dlogl='2.46e+00', photon_flux2='1.76e-07', job_status='DONE', time_completed='2021-08-22 13:17:14.023126', photon_index_error2='3.97', photon_index2='6.39', ts='0.30', fit_tolerance='1e-08', GAL='0.57', photon_index_error='0.00', photon_flux_upper_limit='1.35e-07', energy_flux_error2='1.15e-05', EG='1.51', time_epoch_completed='1629663434.02', return_code='0', job_id='256800', GAL2='0.68', EG2='1.32', return_code2='102', photon_flux_error2='9.01e-08', ts2='5.75', photon_index='2.57' WHERE bin_id='184' AND source_name='4FGL J0524.6-2819' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Aug 22 13:17:14 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0234>
Subject: Job 256800: <4FGL_J0524.6-2819_daily_bin184> in cluster <slac> Done

Job <4FGL_J0524.6-2819_daily_bin184> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Sun Aug 22 13:05:35 2021
Job was executed on host(s) <bullet0234>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Aug 22 13:05:38 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sun Aug 22 13:05:38 2021
Terminated at Sun Aug 22 13:17:14 2021
Results reported at Sun Aug 22 13:17:14 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0524.6-2819_daily_bin184 81.1732 -28.3288 287020801 287280001 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J0524.6-2819 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   675.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             324.70 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   696 sec.
    Turnaround time :                            699 sec.

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

