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


Performing analysis on: 4FGL_J0524.6-2819_daily_bin1461
RA = 81.1732, Dec = -28.3288
tmin = 618019201, tmax = 618278401
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='263548', job_status='RUN', time_executed='2021-08-22 13:27:29.801954', time_epoch_executed='1629664049.8' WHERE source_name='4FGL J0524.6-2819' and cadence='daily' and bin_id='1461'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/263548

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/263548/ft1_4FGL_J0524.6-2819_daily_bin1461.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/263548/ft2_4FGL_J0524.6-2819_daily_bin1461.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/263548/ft1_4FGL_J0524.6-2819_daily_bin1461.fits outfile=/scratch/kocevski/263548/ft1_filteredMKT_4FGL_J0524.6-2819_daily_bin1461.fits ra=81.1732 dec=-28.3288 rad=12.0 tmin=618019201.0 tmax=618278401.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.53
user 4.89
sys 0.61

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/263548/ft2_4FGL_J0524.6-2819_daily_bin1461.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/263548/ft1_filteredMKT_4FGL_J0524.6-2819_daily_bin1461.fits evtable="EVENTS" outfile="/scratch/kocevski/263548/ft1_filtered_4FGL_J0524.6-2819_daily_bin1461.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.90
user 0.34
sys 0.54

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/263548/ft1_filtered_4FGL_J0524.6-2819_daily_bin1461.fits" evtable="EVENTS" scfile=/scratch/kocevski/263548/ft2_4FGL_J0524.6-2819_daily_bin1461.fits sctable="SC_DATA" outfile=/scratch/kocevski/263548/ltcube_618019201_618278401_4FGL_J0524.6-2819_daily_bin1461.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/263548/ft2_4FGL_J0524.6-2819_daily_bin1461.fits
.....................!
real 12.18
user 11.38
sys 0.77

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/263548/ft1_filtered_4FGL_J0524.6-2819_daily_bin1461.fits evtable="EVENTS" scfile=/scratch/kocevski/263548/ft2_4FGL_J0524.6-2819_daily_bin1461.fits sctable="SC_DATA" expcube=/scratch/kocevski/263548/ltcube_618019201_618278401_4FGL_J0524.6-2819_daily_bin1461.fits outfile=/scratch/kocevski/263548/expmap_618019201_618278401_4FGL_J0524.6-2819_daily_bin1461.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/263548/ltcube_618019201_618278401_4FGL_J0524.6-2819_daily_bin1461.fits
.....................!
real 190.47
user 185.20
sys 4.87

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/263548/ft1_filtered_4FGL_J0524.6-2819_daily_bin1461.fits scfile=/scratch/kocevski/263548/ft2_4FGL_J0524.6-2819_daily_bin1461.fits outfile=/scratch/kocevski/263548/cmap_618019201_618278401_4FGL_J0524.6-2819_daily_bin1461.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.03
user 0.39
sys 0.53

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/263548/ft1_filtered_4FGL_J0524.6-2819_daily_bin1461.fits scfile=/scratch/kocevski/263548/ft2_4FGL_J0524.6-2819_daily_bin1461.fits outfile=/scratch/kocevski/263548/cmap_HighResolution_618019201_618278401_4FGL_J0524.6-2819_daily_bin1461.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.50
user 0.39
sys 0.54

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/263548/ft1_filtered_4FGL_J0524.6-2819_daily_bin1461.fits evtable="EVENTS" scfile=/scratch/kocevski/263548/ft2_4FGL_J0524.6-2819_daily_bin1461.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/263548/Model_4FGL_J0524.6-2819_daily_bin1461.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/263548/ft1_filtered_4FGL_J0524.6-2819_daily_bin1461.fits.....................!
real 60.87
user 58.88
sys 1.78

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    236.58       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    .76344E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10015E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    1.0835       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10031E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    1.3159       1.0000         .10000E-03   10000.    
    11 'Prefactor '    15.301       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10308E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    41.360       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10260E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    3.1312       1.0000         .10000E-03   10000.    
    18 'norm      '    9.3824       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    2.5410       1.0000         .10000E-03   10000.    
    22 'Prefactor '    41.758       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .35892E-03   1.0000         .10000E-03   10000.    
    24 'Normalizat'    1.1348       1.0000         .10000E-01   10.000    
    25 'Prefactor '    .96455       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=   4821.212     FROM MIGRAD    STATUS=CONVERGED    591 CALLS     2924 TOTAL
                     EDM=   .35E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          236.56        285.03       -.11963E-04    .68310E-05
   2  Prefactor     .10000E-03    14.743        .44025E-05** at limit **
   3  norm          .10000E-03    2.1784       -.22229E-06** at limit **
   4  Prefactor     .10000E-03    3.6780       -.15554E-06** at limit **
   5  norm          1.0835        .27879       -.41718E-07    .57069E-03
   6  Prefactor     .10000E-03    16.107       -.34433E-05** at limit **
   7  Prefactor     .10000E-03    13.173       -.16372E-05** at limit **
   8  norm          .10000E-03    80.115        .66321E-05** at limit **
   9  Prefactor     .10000E-03    2.3756        .79831E-07** at limit **
  10  norm          1.3153        1.8861        .75883E-07   -.10060E-03
  11  Prefactor     15.301        38.476       -.75953E-05    .79702E-05
  12  Prefactor     .10000E-03    10.080        .60307E-06** at limit **
  13  Prefactor     41.377        23.199       -.40754E-05    .23460E-03
  14  Prefactor     .10000E-03    4.2485       -.26345E-07** at limit **
  15  norm          .10000E-03    3.9109        .20717E-07** at limit **
  16  Prefactor     .10000E-03    43.957       -.29229E-04** at limit **
  17  norm          3.1329        3.2391       -.44002E-07   -.27436E-03
  18  norm          9.3813        9.3708       -.15289E-06    .22559E-04
  19  Prefactor     .10000E-03    7.8180       -.15192E-06** at limit **
  20  Prefactor     .10000E-03    40.948        .25055E-04** at limit **
  21  Prefactor     2.3789        115.54        .22118E-04   -.14239E-04
  22  Prefactor     41.671        45.696       -.32405E-04    .56152E-05
  23  Prefactor     .10002E-03    60.082       -.10602E-05** at limit **
  24  Normalizat    1.1342        .24618        .54261E-05   -.50679E-04
  25  Prefactor     .96518        .19362        .36123E-06    .18135E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 236.561
  Prefactor  = 0.0001
  norm       = 0.000100001
  Prefactor  = 0.0001
  norm       = 1.08348
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 1.31528
  Prefactor  = 15.3005
  Prefactor  = 0.000100001
  Prefactor  = 41.3771
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.000100001
  norm       = 3.13294
  norm       = 9.38127
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 2.37889
  Prefactor  = 41.671
  Prefactor  = 0.000100017
  Normalizat = 1.13421
  Prefactor  = 0.96518
 **********
 **   18 **HESSE 
 **********

 FCN=   4821.212     FROM HESSE     STATUS=OK           417 CALLS     3341 TOTAL
                     EDM=   .89E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          236.56        282.47        .13160E-03   -1.2620    
   2  Prefactor     .10000E-03    14.745        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          .10000E-03    19.743        .19424E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    3.7043        .13000E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          1.0835        .27898        .17921E-04   -1.5500    
   6  Prefactor     .10000E-03    16.111        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    13.186        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .10000E-03    80.210        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    2.4022        .10441E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          1.3153        1.8469        .10826E-03   -1.5479    
  11  Prefactor     15.301        38.436        .10239E-03   -1.4925    
  12  Prefactor     .10000E-03    10.324        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     41.377        22.996        .62331E-04   -1.4421    
  14  Prefactor     .10000E-03    4.2528        .13977E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .10000E-03    3.9861        .13397E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    43.906        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          3.1329        3.2430        .11529E-03   -1.5354    
  18  norm          9.3813        9.3747        .13084E-03   -1.5095    
  19  Prefactor     .10000E-03    7.8655        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    40.976        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     2.3789        115.40        .25619E-03   -1.5399    
  22  Prefactor     41.671        45.792        .62034E-04   -1.4416    
  23  Prefactor     .10002E-03    60.090        .21312E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Normalizat    1.1342        .29540        .27794E-03   -.88661    
  25  Prefactor     .96518        .23421        .24559E-03   -.93899    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.89267e-10
Minuit parameter uncertainties:
  1  284.122
  2  1.00172e-05
  3  0.000333632
  4  1.94608e-05
  5  0.278978
  6  8.5079e-06
  7  2.32954e-05
  8  0.000114582
  9  7.49994e-06
  10  1.84702
  11  38.4984
  12  0.00014835
  13  23.0012
  14  2.10295e-07
  15  1.05391e-05
  16  0.000361407
  17  3.24319
  18  9.3762
  19  3.64276e-05
  20  4.47919e-05
  21  33.2046
  22  45.8304
  23  0.00200604
  24  0.295831
  25  0.234455
Done.

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

Extracting fit parameters...

4FGL J0524.6-2819
   Spectrum: PowerLaw
256    Prefactor:  1.530e+01  3.850e+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.652e-01  2.345e-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.134e+00  2.958e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/263548/likelihoodResults_618019201_618278401_4FGL_J0524.6-2819_daily_bin1461.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) = 4821.20137827
delta logL = 0.0102536367012

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4821.19446581
delta logL = 0.0171661032728

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    21.245       1.0000         .10000E-03   10000.    
     2 'Index     '    2.2735       1.0000          .0000       10.000    
     3 'Normalizat'    1.1386       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .96126       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.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   4821.194     FROM MIGRAD    STATUS=CONVERGED    101 CALLS      294 TOTAL
                     EDM=   .32E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     21.265        56.290        .86900E-04   -.26165E-06
   2  Index         2.2774        1.4810        .15013E-01    .40664E-05
   3  Normalizat    1.1380        .28040        .27752E-03    .33879E-04
   4  Prefactor     .96164        .23085        .24599E-03   -.35310E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 21.2654
  Index      = 2.27741
  Normalizat = 1.13804
  Prefactor  = 0.961642
 **********
 **   18 **HESSE 
 **********

 FCN=   4821.194     FROM HESSE     STATUS=OK            25 CALLS      319 TOTAL
                     EDM=   .31E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     21.265        53.714        .34760E-05   -1.4785    
   2  Index         2.2774        1.4160        .60053E-03   -.57581    
   3  Normalizat    1.1380        .28065        .11101E-04   -.88540    
   4  Prefactor     .96164        .23096        .98394E-05   -.94019    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.13703e-11
Minuit parameter uncertainties:
  1  53.8366
  2  1.44441
  3  0.281021
  4  0.2312
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/263548': 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) = 4821.19445964
delta logL = 0.0171722683881

Extracting fit parameters...

4FGL J0524.6-2819
   Spectrum: PowerLaw
256    Prefactor:  2.127e+01  5.384e+01  1.000e-04  1.000e+04 ( 1.000e-13)
257        Index:  2.277e+00  1.444e+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:  9.616e-01  2.312e-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.138e+00  2.810e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.21
Ra Dec: 81.173 -28.329

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/263548/cmap_HighResolution_618019201_618278401_4FGL_J0524.6-2819_daily_bin1461.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.06e-02', job_status='DONE', photon_flux_upper_limit='1.36e-07', time_completed='2021-08-22 13:38:07.896509', job_id='263548', GAL2='0.96', fit_tolerance='1e-08', EG2='1.14', EG='1.13', time_epoch_completed='1629664687.9', return_code2='0', ts='0.21', comment='SUCCESS', return_code='0', GAL='0.97', dlogl='1.72e-02', ts2='0.24', photon_index_error='0.00', photon_index='2.57' WHERE bin_id='1461' AND source_name='4FGL J0524.6-2819' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Aug 22 13:38:07 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0250>
Subject: Job 263548: <4FGL_J0524.6-2819_daily_bin1461> in cluster <slac> Done

Job <4FGL_J0524.6-2819_daily_bin1461> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Sun Aug 22 13:26:34 2021
Job was executed on host(s) <bullet0250>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Aug 22 13:26:36 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:36 2021
Terminated at Sun Aug 22 13:38:08 2021
Results reported at Sun Aug 22 13:38:08 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0524.6-2819_daily_bin1461 81.1732 -28.3288 618019201 618278401 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 :                                   635.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             318.82 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   692 sec.
    Turnaround time :                            694 sec.

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

