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


Performing analysis on: 4FGL_J0524.6-2819_daily_bin1024
RA = 81.1732, Dec = -28.3288
tmin = 504748801, tmax = 505008001
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='261549', job_status='RUN', time_executed='2021-08-22 13:22:24.814278', time_epoch_executed='1629663744.81' WHERE source_name='4FGL J0524.6-2819' and cadence='daily' and bin_id='1024'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/261549

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/261549/ft1_4FGL_J0524.6-2819_daily_bin1024.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/261549/ft2_4FGL_J0524.6-2819_daily_bin1024.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/261549/ft1_4FGL_J0524.6-2819_daily_bin1024.fits outfile=/scratch/kocevski/261549/ft1_filteredMKT_4FGL_J0524.6-2819_daily_bin1024.fits ra=81.1732 dec=-28.3288 rad=12.0 tmin=504748801.0 tmax=505008001.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 8.81
user 7.92
sys 0.81

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/261549/ft1_filtered_4FGL_J0524.6-2819_daily_bin1024.fits" evtable="EVENTS" scfile=/scratch/kocevski/261549/ft2_4FGL_J0524.6-2819_daily_bin1024.fits sctable="SC_DATA" outfile=/scratch/kocevski/261549/ltcube_504748801_505008001_4FGL_J0524.6-2819_daily_bin1024.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/261549/ft2_4FGL_J0524.6-2819_daily_bin1024.fits
.....................!
real 12.18
user 11.27
sys 0.88

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/261549/ft1_filtered_4FGL_J0524.6-2819_daily_bin1024.fits evtable="EVENTS" scfile=/scratch/kocevski/261549/ft2_4FGL_J0524.6-2819_daily_bin1024.fits sctable="SC_DATA" expcube=/scratch/kocevski/261549/ltcube_504748801_505008001_4FGL_J0524.6-2819_daily_bin1024.fits outfile=/scratch/kocevski/261549/expmap_504748801_505008001_4FGL_J0524.6-2819_daily_bin1024.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/261549/ltcube_504748801_505008001_4FGL_J0524.6-2819_daily_bin1024.fits
.....................!
real 190.84
user 185.67
sys 4.80

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/261549/ft1_filtered_4FGL_J0524.6-2819_daily_bin1024.fits scfile=/scratch/kocevski/261549/ft2_4FGL_J0524.6-2819_daily_bin1024.fits outfile=/scratch/kocevski/261549/cmap_504748801_505008001_4FGL_J0524.6-2819_daily_bin1024.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.37
sys 0.64

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/261549/ft1_filtered_4FGL_J0524.6-2819_daily_bin1024.fits scfile=/scratch/kocevski/261549/ft2_4FGL_J0524.6-2819_daily_bin1024.fits outfile=/scratch/kocevski/261549/cmap_HighResolution_504748801_505008001_4FGL_J0524.6-2819_daily_bin1024.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.03
user 0.38
sys 0.63

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/261549/ft1_filtered_4FGL_J0524.6-2819_daily_bin1024.fits evtable="EVENTS" scfile=/scratch/kocevski/261549/ft2_4FGL_J0524.6-2819_daily_bin1024.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/261549/Model_4FGL_J0524.6-2819_daily_bin1024.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/261549/ft1_filtered_4FGL_J0524.6-2819_daily_bin1024.fits.....................!
real 37.84
user 35.89
sys 1.82

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    18.549       1.0000         .10000E-03   10000.    
     2 'Prefactor '    69.191       1.0000         .10000E-03   10000.    
     3 'norm      '    1.8458       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    .22566       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .11329E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    12.180       1.0000         .10000E-03   10000.    
    10 'norm      '    .11707E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .34999E-01   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10032E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    8.3540       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10082E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    7.5632       1.0000         .10000E-03   10000.    
    16 'Prefactor '    38.944       1.0000         .10000E-03   10000.    
    17 'norm      '    2.8445       1.0000         .10000E-03   10000.    
    18 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    3.0766       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10206E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10735E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    103.49       1.0000         .10000E-03   10000.    
    24 'Normalizat'    1.0078       1.0000         .10000E-01   10.000    
    25 'Prefactor '    .85652       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=   2466.483     FROM MIGRAD    STATUS=CONVERGED    613 CALLS     2982 TOTAL
                     EDM=   .86E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          18.485        1059.4       -.14012E-03   -.13234E-06
   2  Prefactor     69.122        95.486       -.39595E-04   -.29749E-04
   3  norm          1.8467        5.6848        .11182E-05   -.24446E-03
   4  Prefactor     .10000E-03    4.3138       -.31732E-07** at limit **
   5  norm          .22609        .32324        .79436E-06    .24675E-02
   6  Prefactor     .10000E-03    104.25       -.83984E-05** at limit **
   7  Prefactor     .10000E-03    26.580       -.76026E-05** at limit **
   8  norm          .10000E-03    46.005        .16117E-04** at limit **
   9  Prefactor     12.180        10.518        .33302E-06   -.44411E-04
  10  norm          .10000E-03    3.6082       -.10381E-05** at limit **
  11  Prefactor     .10336E-03    60.305       -.27030E-05** at limit **
  12  Prefactor     .10000E-03    5.1153       -.41994E-06** at limit **
  13  Prefactor     8.3126        28.822        .41015E-04    .32450E-04
  14  Prefactor     .10000E-03    9.6298        .32645E-07** at limit **
  15  norm          7.5662        7.6374       -.24033E-05   -.12791E-03
  16  Prefactor     38.964        43.231       -.16240E-04   -.11092E-04
  17  norm          2.8456        3.7891        .25563E-07   -.10870E-03
  18  norm          .10000E-03    5.5068       -.18215E-07** at limit **
  19  Prefactor     3.0769        11.922       -.27669E-05   -.12831E-03
  20  Prefactor     .10000E-03    39.386       -.13824E-04** at limit **
  21  Prefactor     .10000E-03    62.321       -.45114E-05** at limit **
  22  Prefactor     .10000E-03    27.935        .10369E-04** at limit **
  23  Prefactor     103.51        73.386        .15989E-05   -.32315E-04
  24  Normalizat    1.0073        .31337       -.19563E-05    .70099E-04
  25  Prefactor     .85688        .24139        .19620E-05   -.78702E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 18.4846
  Prefactor  = 69.1221
  norm       = 1.84668
  Prefactor  = 0.0001
  norm       = 0.226091
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 12.1803
  norm       = 0.000100003
  Prefactor  = 0.000103356
  Prefactor  = 0.0001
  Prefactor  = 8.31261
  Prefactor  = 0.0001
  norm       = 7.56621
  Prefactor  = 38.9644
  norm       = 2.84558
  norm       = 0.0001
  Prefactor  = 3.07692
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 103.51
  Normalizat = 1.00728
  Prefactor  = 0.856885
 **********
 **   18 **HESSE 
 **********

 FCN=   2466.483     FROM HESSE     STATUS=OK           433 CALLS     3415 TOTAL
                     EDM=   .18E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          18.485        1059.6        .92995E-04   -1.4848    
   2  Prefactor     69.122        95.024        .48256E-04   -1.4043    
   3  norm          1.8467        5.6678        .19140E-03   -1.5436    
   4  Prefactor     .10000E-03    4.3322        .10072E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .22609        .30800        .30231E-03   -1.5613    
   6  Prefactor     .10000E-03    104.31        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    26.600        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .10000E-03    45.986        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     12.180        10.498        .11478E-03   -1.5010    
  10  norm          .10000E-03    3.6834        .18366E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10336E-03    67.806        .11222       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    5.1201        .10969E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     8.3126        28.682        .13870E-03   -1.5131    
  14  Prefactor     .10000E-03    9.6320        .15045E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          7.5662        7.6391        .12914E-03   -1.5158    
  16  Prefactor     38.964        43.192        .32114E-03   -1.4459    
  17  norm          2.8456        3.7810        .10166E-03   -1.5371    
  18  norm          .10000E-03    5.5073        .11383E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     3.0769        11.912        .23124E-03   -1.5357    
  20  Prefactor     .10000E-03    39.364        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    62.598        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    27.945        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     103.51        73.352        .19762E-03   -1.3670    
  24  Normalizat    1.0073        .36650        .25965E-03   -.92787    
  25  Prefactor     .85688        .28206        .23219E-03   -.97664    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.75726e-09
Minuit parameter uncertainties:
  1  285.386
  2  95.234
  3  5.66942
  4  3.80262e-06
  5  0.308
  6  0.000227874
  7  5.43942e-05
  8  3.20014e-06
  9  10.4995
  10  0.000197441
  11  0.030203
  12  8.99034e-05
  13  28.7296
  14  1.92522e-05
  15  7.6401
  16  43.2263
  17  3.78129
  18  1.64108e-06
  19  11.9216
  20  2.26092e-05
  21  2.60821e-05
  22  4.36779e-05
  23  73.4166
  24  0.367419
  25  0.282542
Done.

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

Extracting fit parameters...

4FGL J0524.6-2819
   Spectrum: PowerLaw
256    Prefactor:  1.034e-04  3.020e-02  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:  8.569e-01  2.825e-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.007e+00  3.674e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/261549/likelihoodResults_504748801_505008001_4FGL_J0524.6-2819_daily_bin1024.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) = 2466.48332154
delta logL = -5.40118071513e-06

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 2466.48332154
delta logL = -5.40040082342e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .96362E-02   1.0000         .10000E-03   10000.    
     2 'Index     '    2.5732       1.0000          .0000       10.000    
     3 'Normalizat'    1.0073       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .85689       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.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   2466.483     FROM MIGRAD    STATUS=FAILED       144 CALLS      322 TOTAL
                     EDM=   .10E-04    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .23468E-01    86.132        .12266       -.12229E-01
   2  Index         2.2894        8.4882        .50000        .19166E-03
   3  Normalizat    1.0073        .67088E-02    .25965E-03   -.34886E-02
   4  Prefactor     .85687        .56074E-02    .23219E-03   -.40288E-02
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   2466.482     FROM SIMPLEX   STATUS=PROGRESS      86 CALLS      408 TOTAL
                     EDM=   .11E-04    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     2.4621        86.132        .19810E-02   -.12229E-01
   2  Index         2.1548        8.4882        .30078E-02    .19166E-03
   3  Normalizat    1.0068        .67088E-02    .11669E-03   -.34886E-02
   4  Prefactor     .85626        .56074E-02    .14522E-03   -.40288E-02
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   2466.482     FROM MIGRAD    STATUS=CONVERGED    107 CALLS      515 TOTAL
                     EDM=   .12E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     2.5605        326.15        .38515E-03   -.42859E-04
   2  Index         2.1588        6.0240        .22547E-01   -.30261E-04
   3  Normalizat    1.0063        .33157        .10386E-04    .15434E-04
   4  Prefactor     .85652        .27686        .92875E-05   -.32561E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 2.56047
  Index      = 2.15876
  Normalizat = 1.00629
  Prefactor  = 0.856516
 **********
 **   18 **HESSE 
 **********

 FCN=   2466.482     FROM HESSE     STATUS=OK            23 CALLS      538 TOTAL
                     EDM=   .13E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     2.5605        290.63        .15406E-04   -1.5388    
   2  Index         2.1588        6.0526        .90188E-03   -.60438    
   3  Normalizat    1.0063        .33186        .20772E-05   -.92820    
   4  Prefactor     .85652        .27697        .18575E-05   -.97678    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.2736e-09
Minuit parameter uncertainties:
  1  54.8323
  2  4.57844
  3  0.332541
  4  0.277421
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/261549': 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) = 2466.48217665
delta logL = 0.00113948063199

Extracting fit parameters...

4FGL J0524.6-2819
   Spectrum: PowerLaw
256    Prefactor:  2.560e+00  5.483e+01  1.000e-04  1.000e+04 ( 1.000e-13)
257        Index:  2.159e+00  4.578e+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:  8.565e-01  2.774e-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.006e+00  3.325e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
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/261549/cmap_HighResolution_504748801_505008001_4FGL_J0524.6-2819_daily_bin1024.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.17e-02', job_status='DONE', photon_flux_upper_limit='1.49e-07', time_completed='2021-08-22 13:31:03.943671', job_id='261549', GAL2='0.86', fit_tolerance='1e-08', EG2='1.01', EG='1.01', time_epoch_completed='1629664263.94', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.86', dlogl='1.14e-03', ts2='0.00', photon_index_error='0.00', photon_index='2.57' WHERE bin_id='1024' AND source_name='4FGL J0524.6-2819' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Aug 22 13:31:03 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0224>
Subject: Job 261549: <4FGL_J0524.6-2819_daily_bin1024> in cluster <slac> Done

Job <4FGL_J0524.6-2819_daily_bin1024> was submitted from host <rhel6-64j> by user <kocevski> in cluster <slac> at Sun Aug 22 13:20:45 2021
Job was executed on host(s) <bullet0224>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Aug 22 13:20:46 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:20:46 2021
Terminated at Sun Aug 22 13:31:04 2021
Results reported at Sun Aug 22 13:31:04 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0524.6-2819_daily_bin1024 81.1732 -28.3288 504748801 505008001 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 :                                   519.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             292.95 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   618 sec.
    Turnaround time :                            619 sec.

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

