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


Performing analysis on: 4FGL_J0524.6-2819_daily_bin1307
RA = 81.1732, Dec = -28.3288
tmin = 578102401, tmax = 578361601
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='263218', job_status='RUN', time_executed='2021-08-22 13:27:04.804263', time_epoch_executed='1629664024.8' WHERE source_name='4FGL J0524.6-2819' and cadence='daily' and bin_id='1307'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/263218

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/263218/ft1_4FGL_J0524.6-2819_daily_bin1307.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/263218/ft2_4FGL_J0524.6-2819_daily_bin1307.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/263218/ft1_4FGL_J0524.6-2819_daily_bin1307.fits outfile=/scratch/kocevski/263218/ft1_filteredMKT_4FGL_J0524.6-2819_daily_bin1307.fits ra=81.1732 dec=-28.3288 rad=12.0 tmin=578102401.0 tmax=578361601.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.33
user 4.79
sys 0.52

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/263218/ft2_4FGL_J0524.6-2819_daily_bin1307.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/263218/ft1_filteredMKT_4FGL_J0524.6-2819_daily_bin1307.fits evtable="EVENTS" outfile="/scratch/kocevski/263218/ft1_filtered_4FGL_J0524.6-2819_daily_bin1307.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.80
user 0.31
sys 0.47

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/263218/ft1_filtered_4FGL_J0524.6-2819_daily_bin1307.fits" evtable="EVENTS" scfile=/scratch/kocevski/263218/ft2_4FGL_J0524.6-2819_daily_bin1307.fits sctable="SC_DATA" outfile=/scratch/kocevski/263218/ltcube_578102401_578361601_4FGL_J0524.6-2819_daily_bin1307.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/263218/ft2_4FGL_J0524.6-2819_daily_bin1307.fits
.....................!
real 12.44
user 11.63
sys 0.70

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/263218/ft1_filtered_4FGL_J0524.6-2819_daily_bin1307.fits evtable="EVENTS" scfile=/scratch/kocevski/263218/ft2_4FGL_J0524.6-2819_daily_bin1307.fits sctable="SC_DATA" expcube=/scratch/kocevski/263218/ltcube_578102401_578361601_4FGL_J0524.6-2819_daily_bin1307.fits outfile=/scratch/kocevski/263218/expmap_578102401_578361601_4FGL_J0524.6-2819_daily_bin1307.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/263218/ltcube_578102401_578361601_4FGL_J0524.6-2819_daily_bin1307.fits
.....................!
real 193.42
user 187.58
sys 5.37

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/263218/ft1_filtered_4FGL_J0524.6-2819_daily_bin1307.fits scfile=/scratch/kocevski/263218/ft2_4FGL_J0524.6-2819_daily_bin1307.fits outfile=/scratch/kocevski/263218/cmap_578102401_578361601_4FGL_J0524.6-2819_daily_bin1307.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.11
user 0.35
sys 0.51

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/263218/ft1_filtered_4FGL_J0524.6-2819_daily_bin1307.fits scfile=/scratch/kocevski/263218/ft2_4FGL_J0524.6-2819_daily_bin1307.fits outfile=/scratch/kocevski/263218/cmap_HighResolution_578102401_578361601_4FGL_J0524.6-2819_daily_bin1307.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 0.91
user 0.38
sys 0.50

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/263218/ft1_filtered_4FGL_J0524.6-2819_daily_bin1307.fits evtable="EVENTS" scfile=/scratch/kocevski/263218/ft2_4FGL_J0524.6-2819_daily_bin1307.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/263218/Model_4FGL_J0524.6-2819_daily_bin1307.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/263218/ft1_filtered_4FGL_J0524.6-2819_daily_bin1307.fits.....................!
real 85.85
user 83.82
sys 1.70

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/263218/ft1_filtered_4FGL_J0524.6-2819_daily_bin1307.fits', '/scratch/kocevski/263218/ft2_4FGL_J0524.6-2819_daily_bin1307.fits', expMap='/scratch/kocevski/263218/expmap_578102401_578361601_4FGL_J0524.6-2819_daily_bin1307.fits', expCube='/scratch/kocevski/263218/ltcube_578102401_578361601_4FGL_J0524.6-2819_daily_bin1307.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/263218/Model_4FGL_J0524.6-2819_daily_bin1307.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/263218/ft1_filtered_4FGL_J0524.6-2819_daily_bin1307.fits
Spacecraft file(s): /scratch/kocevski/263218/ft2_4FGL_J0524.6-2819_daily_bin1307.fits
Exposure map: /scratch/kocevski/263218/expmap_578102401_578361601_4FGL_J0524.6-2819_daily_bin1307.fits
Exposure cube: /scratch/kocevski/263218/ltcube_578102401_578361601_4FGL_J0524.6-2819_daily_bin1307.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/263218/Model_4FGL_J0524.6-2819_daily_bin1307.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) = 7824.67295578

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

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 '    .10006E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    4.5942       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    1.1053       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    8.1043       1.0000         .10000E-03   10000.    
     9 'Prefactor '    3.4921       1.0000         .10000E-03   10000.    
    10 'norm      '    14.309       1.0000         .10000E-03   10000.    
    11 'Prefactor '    42.319       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    8.1420       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .10004E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .84557E-01   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 '    .10004E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .23234E-02   1.0000         .10000E-03   10000.    
    22 'Prefactor '    19.533       1.0000         .10000E-03   10000.    
    23 'Prefactor '    25.616       1.0000         .10000E-03   10000.    
    24 'Normalizat'    .86304       1.0000         .10000E-01   10.000    
    25 'Prefactor '    .99930       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=   7824.662     FROM MIGRAD    STATUS=CONVERGED    593 CALLS     2989 TOTAL
                     EDM=   .57E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    64.622       -.16479E-06** at limit **
   2  Prefactor     .10000E-03    88.068       -.87458E-07** at limit **
   3  norm          4.5951        2.8766        .14223E-05    .96544E-03
   4  Prefactor     .10000E-03    2.2558       -.26215E-06** at limit **
   5  norm          1.1054        .22049        .15744E-07    .12237E-03
   6  Prefactor     .10000E-03    9.9065       -.37812E-07** at limit **
   7  Prefactor     .10000E-03    8.4705       -.66158E-07** at limit **
   8  norm          8.1103        65.075       -.36661E-06    .36192E-05
   9  Prefactor     3.4927        3.0713        .10970E-06    .34403E-04
  10  norm          14.309        3.0945        .75846E-07   -.14440E-03
  11  Prefactor     42.315        32.067        .26317E-06   -.14982E-03
  12  Prefactor     .10000E-03    1.9894       -.98585E-07** at limit **
  13  Prefactor     8.1422        9.4678        .11952E-06   -.26578E-05
  14  Prefactor     .10000E-03    2.6351       -.35002E-08** at limit **
  15  norm          .10000E-03    2.5215        .31452E-07** at limit **
  16  Prefactor     .10000E-03    6.1566       -.55071E-07** at limit **
  17  norm          .91446E-01    .78145        .69112E-06   -.15672E-02
  18  norm          .10000E-03    5.4682       -.35369E-07** at limit **
  19  Prefactor     .10000E-03    1.3359       -.19981E-07** at limit **
  20  Prefactor     .10000E-03    37.340        .34784E-08** at limit **
  21  Prefactor     .10000E-03    128.34        .28453E-05** at limit **
  22  Prefactor     19.603        52.445       -.82767E-05   -.12848E-03
  23  Prefactor     25.357        86.443        .10671E-04   -.37148E-04
  24  Normalizat    .86277        .18606       -.50792E-05   -.10488E-03
  25  Prefactor     .99939        .14977        .35765E-05   -.41786E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 4.59512
  Prefactor  = 0.0001
  norm       = 1.10537
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 8.11028
  Prefactor  = 3.49267
  norm       = 14.3094
  Prefactor  = 42.3153
  Prefactor  = 0.0001
  Prefactor  = 8.1422
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0914456
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 19.6032
  Prefactor  = 25.3569
  Normalizat = 0.862768
  Prefactor  = 0.999389
 **********
 **   18 **HESSE 
 **********

 FCN=   7824.662     FROM HESSE     STATUS=OK           423 CALLS     3412 TOTAL
                     EDM=   .57E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    64.619        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    89.053        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          4.5951        2.8873        .56812E-03   -1.5279    
   4  Prefactor     .10000E-03    2.2889        .12971E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          1.1054        .22079        .17743E-04   -1.5498    
   6  Prefactor     .10000E-03    9.9080        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    8.4842        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          8.1103        65.128        .14084E-03   -1.5138    
   9  Prefactor     3.4927        3.0622        .13764E-03   -1.5334    
  10  norm          14.309        3.0956        .66543E-04   -1.4951    
  11  Prefactor     42.315        32.142        .61624E-04   -1.4406    
  12  Prefactor     .10000E-03    2.0011        .12177E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     8.1422        9.4559        .14051E-03   -1.5137    
  14  Prefactor     .10000E-03    2.6405        .14023E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .10000E-03    2.6234        .27397E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    6.1588        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .91446E-01    6.2316        .13731E-02   -1.5648    
  18  norm          .10000E-03    5.5352        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    1.3379        .99843E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    37.463        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    133.05        .40179E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     19.603        52.748        .90625E-04   -1.4822    
  23  Prefactor     25.357        86.762        .79149E-04   -1.4700    
  24  Normalizat    .86277        .20365        .28176E-03   -.97781    
  25  Prefactor     .99939        .16417        .22602E-03   -.92750    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.68608e-09
Minuit parameter uncertainties:
  1  0.000107987
  2  0.000127732
  3  2.88738
  4  5.60589e-06
  5  0.220793
  6  9.32158e-08
  7  1.75512e-07
  8  46.034
  9  3.06238
  10  3.09563
  11  32.1551
  12  8.97169e-07
  13  9.45763
  14  1.77086e-07
  15  4.94593e-06
  16  1.73237e-06
  17  1.50911
  18  9.80049e-06
  19  1.77611e-07
  20  1.30248e-05
  21  0.000768186
  22  52.8736
  23  87.1982
  24  0.203829
  25  0.164252
Done.

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

Extracting fit parameters...

4FGL J0524.6-2819
   Spectrum: PowerLaw
256    Prefactor:  4.232e+01  3.216e+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:  9.994e-01  1.643e-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:  8.628e-01  2.038e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 2.48
Ra Dec: 81.173 -28.329
Photon Index (Fixed Index): 2.57 +/- 0.00
Photon Flux (Fixed Index): 4.97e-08 +/- 3.77e-08
Energy Flux (Fixed Index): 1.34e-05 +/- 1.02e-05

TS (Fixed Index): 2.48
Ra Dec: 81.173 -28.329
Photon Flux Upper Limit: 1.25e-07 ph cm-2 s-1
Energy Flux Upper Limit: 9.73e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/263218/likelihoodResults_578102401_578361601_4FGL_J0524.6-2819_daily_bin1307.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) = 7824.16981224
delta logL = 0.491899621134

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7824.15613194
delta logL = 0.505579922664

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    48.724       1.0000         .10000E-03   10000.    
     2 'Index     '    1.7846       1.0000          .0000       10.000    
     3 'Normalizat'    .91029       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .97167       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=   7824.156     FROM MIGRAD    STATUS=CONVERGED     51 CALLS      232 TOTAL
                     EDM=   .10E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     48.724        39.255        .14362E-02   -.18081E-02
   2  Index         1.7847        .47217        .19979       -.96253E-04
   3  Normalizat    .91035        .16345        .45033E-01    .19257E-04
   4  Prefactor     .97162        .13953        .45912E-01    .85998E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 48.7244
  Index      = 1.78474
  Normalizat = 0.910346
  Prefactor  = 0.971621
 **********
 **   18 **HESSE 
 **********

 FCN=   7824.156     FROM HESSE     STATUS=OK            31 CALLS      263 TOTAL
                     EDM=   .15E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     48.724        46.956        .57447E-04   -1.4311    
   2  Index         1.7847        .67454        .10206E-01   -.69848    
   3  Normalizat    .91035        .19080        .27467E-03   -.96098    
   4  Prefactor     .97162        .16168        .22865E-03   -.93682    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.52951e-08
Minuit parameter uncertainties:
  1  46.9916
  2  0.678079
  3  0.190939
  4  0.161757
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/263218': 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) = 7824.15613187
delta logL = 0.50557999203

Extracting fit parameters...

4FGL J0524.6-2819
   Spectrum: PowerLaw
256    Prefactor:  4.872e+01  4.699e+01  1.000e-04  1.000e+04 ( 1.000e-13)
257        Index:  1.785e+00  6.781e-01  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:  9.716e-01  1.618e-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:  9.103e-01  1.909e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 3.41
Ra Dec: 81.173 -28.329
Photon Index (Free Index): 1.78 +/- 0.68
Photon Flux (Free Index): 2.31e-08 +/- 3.10e-08
Energy Flux (Free Index): 2.89e-05 +/- 3.59e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/263218/cmap_HighResolution_578102401_578361601_4FGL_J0524.6-2819_daily_bin1307.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='9.73e-03', comment='SUCCESS', photon_flux='4.97e-08', energy_flux2='2.89e-05', photon_flux_error='3.77e-08', dlogl='5.06e-01', energy_flux='1.34e-05', photon_flux2='2.31e-08', job_status='DONE', time_completed='2021-08-22 13:41:24.089513', photon_index_error2='0.68', photon_index2='1.78', ts='2.48', fit_tolerance='1e-08', GAL='1.00', photon_index_error='0.00', photon_flux_upper_limit='1.25e-07', energy_flux_error2='3.59e-05', EG='0.86', time_epoch_completed='1629664884.09', return_code='0', job_id='263218', GAL2='0.97', EG2='0.91', return_code2='0', energy_flux_error='1.02e-05', photon_flux_error2='3.10e-08', ts2='3.41', photon_index='2.57' WHERE bin_id='1307' AND source_name='4FGL J0524.6-2819' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Aug 22 13:41:24 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0214>
Subject: Job 263218: <4FGL_J0524.6-2819_daily_bin1307> in cluster <slac> Done

Job <4FGL_J0524.6-2819_daily_bin1307> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Sun Aug 22 13:26:05 2021
Job was executed on host(s) <bullet0214>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Aug 22 13:26:06 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:26:06 2021
Terminated at Sun Aug 22 13:41:24 2021
Results reported at Sun Aug 22 13:41:24 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0524.6-2819_daily_bin1307 81.1732 -28.3288 578102401 578361601 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 :                                   843.02 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             320.00 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   918 sec.
    Turnaround time :                            919 sec.

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

