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


Performing analysis on: 4FGL_J0524.6-2819_daily_bin1006
RA = 81.1732, Dec = -28.3288
tmin = 500083201, tmax = 500342401
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='261519', job_status='RUN', time_executed='2021-08-22 13:23:22.752932', time_epoch_executed='1629663802.75' WHERE source_name='4FGL J0524.6-2819' and cadence='daily' and bin_id='1006'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/261519

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/261519/ft1_4FGL_J0524.6-2819_daily_bin1006.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/261519/ft2_4FGL_J0524.6-2819_daily_bin1006.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/261519/ft1_4FGL_J0524.6-2819_daily_bin1006.fits outfile=/scratch/kocevski/261519/ft1_filteredMKT_4FGL_J0524.6-2819_daily_bin1006.fits ra=81.1732 dec=-28.3288 rad=12.0 tmin=500083201.0 tmax=500342401.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 6.00
user 5.38
sys 0.53

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/261519/ft2_4FGL_J0524.6-2819_daily_bin1006.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/261519/ft1_filteredMKT_4FGL_J0524.6-2819_daily_bin1006.fits evtable="EVENTS" outfile="/scratch/kocevski/261519/ft1_filtered_4FGL_J0524.6-2819_daily_bin1006.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.77
user 0.30
sys 0.46

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/261519/ft1_filtered_4FGL_J0524.6-2819_daily_bin1006.fits" evtable="EVENTS" scfile=/scratch/kocevski/261519/ft2_4FGL_J0524.6-2819_daily_bin1006.fits sctable="SC_DATA" outfile=/scratch/kocevski/261519/ltcube_500083201_500342401_4FGL_J0524.6-2819_daily_bin1006.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/261519/ft2_4FGL_J0524.6-2819_daily_bin1006.fits
.....................!
real 12.80
user 12.06
sys 0.63

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/261519/ft1_filtered_4FGL_J0524.6-2819_daily_bin1006.fits evtable="EVENTS" scfile=/scratch/kocevski/261519/ft2_4FGL_J0524.6-2819_daily_bin1006.fits sctable="SC_DATA" expcube=/scratch/kocevski/261519/ltcube_500083201_500342401_4FGL_J0524.6-2819_daily_bin1006.fits outfile=/scratch/kocevski/261519/expmap_500083201_500342401_4FGL_J0524.6-2819_daily_bin1006.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/261519/ltcube_500083201_500342401_4FGL_J0524.6-2819_daily_bin1006.fits
.....................!
real 190.59
user 185.86
sys 4.35

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/261519/ft1_filtered_4FGL_J0524.6-2819_daily_bin1006.fits scfile=/scratch/kocevski/261519/ft2_4FGL_J0524.6-2819_daily_bin1006.fits outfile=/scratch/kocevski/261519/cmap_500083201_500342401_4FGL_J0524.6-2819_daily_bin1006.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 0.79
user 0.35
sys 0.43

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/261519/ft1_filtered_4FGL_J0524.6-2819_daily_bin1006.fits scfile=/scratch/kocevski/261519/ft2_4FGL_J0524.6-2819_daily_bin1006.fits outfile=/scratch/kocevski/261519/cmap_HighResolution_500083201_500342401_4FGL_J0524.6-2819_daily_bin1006.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.81
user 0.37
sys 0.43

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/261519/ft1_filtered_4FGL_J0524.6-2819_daily_bin1006.fits evtable="EVENTS" scfile=/scratch/kocevski/261519/ft2_4FGL_J0524.6-2819_daily_bin1006.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/261519/Model_4FGL_J0524.6-2819_daily_bin1006.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/261519/ft1_filtered_4FGL_J0524.6-2819_daily_bin1006.fits.....................!
real 65.58
user 63.72
sys 1.53

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    147.78       1.0000         .10000E-03   10000.    
     2 'Prefactor '    111.74       1.0000         .10000E-03   10000.    
     3 'norm      '    .10339E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    2.9096       1.0000         .10000E-03   10000.    
     5 'norm      '    .77602       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    1.8257       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    4.9820       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .25508E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    2.8769       1.0000         .10000E-03   10000.    
    16 'Prefactor '    30.718       1.0000         .10000E-03   10000.    
    17 'norm      '    .14865E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    17.570       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    6.7851       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    24 'Normalizat'    .98126       1.0000         .10000E-01   10.000    
    25 'Prefactor '    .96421       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=   5352.267     FROM MIGRAD    STATUS=CONVERGED    573 CALLS     2914 TOTAL
                     EDM=   .28E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          148.05        244.43       -.14209E-05    .47344E-05
   2  Prefactor     111.75        65.728        .40301E-06   -.23740E-04
   3  norm          .10000E-03    2.2289        .16440E-05** at limit **
   4  Prefactor     2.9112        5.3393        .52744E-06   -.19247E-03
   5  norm          .77605        .24808       -.10261E-08   -.15721E-02
   6  Prefactor     .10000E-03    11.109        .38225E-07** at limit **
   7  Prefactor     .10000E-03    29.164       -.48184E-05** at limit **
   8  norm          1.7034        1076.2       -.52205E-04   -.36361E-05
   9  Prefactor     .10000E-03    1.6445        .62018E-07** at limit **
  10  norm          4.9819        2.7369        .11189E-06   -.11294E-03
  11  Prefactor     .10000E-03    25.055        .25460E-06** at limit **
  12  Prefactor     .10000E-03    2.7368        .18260E-07** at limit **
  13  Prefactor     .10000E-03    6.7522        .29524E-07** at limit **
  14  Prefactor     .10000E-03    10.620       -.33364E-06** at limit **
  15  norm          2.8762        5.3071        .89728E-06    .66118E-04
  16  Prefactor     30.715        27.480        .44690E-07   -.65235E-05
  17  norm          .10000E-03    1.0777        .47554E-06** at limit **
  18  norm          .10000E-03    3.2996        .30862E-07** at limit **
  19  Prefactor     17.569        11.521        .33493E-06   -.39292E-04
  20  Prefactor     .10000E-03    18.668        .27092E-07** at limit **
  21  Prefactor     6.7826        27.708        .11212E-05   -.88328E-05
  22  Prefactor     .10000E-03    6.5723        .37122E-07** at limit **
  23  Prefactor     .10000E-03    14.894        .19775E-07** at limit **
  24  Normalizat    .98131        .21609       -.54456E-05   -.35227E-03
  25  Prefactor     .96419        .18049        .24985E-05   -.56009E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 148.047
  Prefactor  = 111.75
  norm       = 0.000100001
  Prefactor  = 2.91116
  norm       = 0.776053
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 1.70343
  Prefactor  = 0.0001
  norm       = 4.98186
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100004
  norm       = 2.87622
  Prefactor  = 30.7154
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 17.569
  Prefactor  = 0.0001
  Prefactor  = 6.78258
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 0.981307
  Prefactor  = 0.96419
 **********
 **   18 **HESSE 
 **********

 FCN=   5352.267     FROM HESSE     STATUS=OK           427 CALLS     3341 TOTAL
                     EDM=   .81E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          148.05        246.08        .16575E-03   -1.3268    
   2  Prefactor     111.75        65.740        .38053E-04   -1.3590    
   3  norm          .10000E-03    3.6632        .20182E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     2.9112        5.3038        .21593E-03   -1.5367    
   5  norm          .77605        .24783        .19395E-04   -1.5532    
   6  Prefactor     .10000E-03    11.111        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    29.006        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          1.7034        1095.5        .30895E-02   -1.5447    
   9  Prefactor     .10000E-03    1.6665        .91558E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          4.9819        2.7253        .83826E-04   -1.5262    
  11  Prefactor     .10000E-03    25.148        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    2.7557        .11811E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    6.7721        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    27.403        .40362E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          2.8762        4.6831        .18722E-03   -1.5369    
  16  Prefactor     30.715        27.472        .72292E-04   -1.4599    
  17  norm          .10000E-03    5.5762        .14308E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          .10000E-03    3.3006        .12979E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     17.569        11.533        .95550E-04   -1.4869    
  20  Prefactor     .10000E-03    18.669        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     6.7826        27.751        .15404E-03   -1.5187    
  22  Prefactor     .10000E-03    6.5783        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    14.907        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Normalizat    .98131        .24252        .26389E-03   -.93659    
  25  Prefactor     .96419        .20501        .22635E-03   -.93933    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.11442e-10
Minuit parameter uncertainties:
  1  247.818
  2  65.7831
  3  0.000108028
  4  5.30468
  5  0.247827
  6  9.46091e-06
  7  3.83929e-05
  8  88.0642
  9  3.73748e-06
  10  2.72533
  11  7.71211e-05
  12  2.85811e-06
  13  4.86659e-06
  14  0.000629419
  15  4.68371
  16  27.4836
  17  7.27913e-05
  18  8.23086e-07
  19  11.5341
  20  1.02905e-05
  21  27.4606
  22  3.01143e-06
  23  6.9121e-06
  24  0.242791
  25  0.205173
Done.

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

Extracting fit parameters...

4FGL J0524.6-2819
   Spectrum: PowerLaw
256    Prefactor:  1.000e-04  7.712e-05  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.642e-01  2.052e-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.813e-01  2.428e-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: 7.92e-08 ph cm-2 s-1
Energy Flux Upper Limit: 6.18e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/261519/likelihoodResults_500083201_500342401_4FGL_J0524.6-2819_daily_bin1006.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) = 5352.26730273
delta logL = -0.000189442555893

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5352.26711338
delta logL = -9.62145350059e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10104E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.4871       1.0000          .0000       10.000    
     3 'Normalizat'    .98132       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .96419       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=   5352.267     FROM MIGRAD    STATUS=CONVERGED     51 CALLS      226 TOTAL
                     EDM=   .19E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    6931.4        .90712E-02** at limit **
   2  Index         2.4961        6.2455        .50000       -.33464E-05
   3  Normalizat    .98131        .97224E-01    .45932E-01    .16846E-04
   4  Prefactor     .96419        .82644E-01    .45818E-01    .11044E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 2.49611
  Normalizat = 0.981306
  Prefactor  = 0.964192
 **********
 **   18 **HESSE 
 **********

 FCN=   5352.267     FROM HESSE     STATUS=OK            33 CALLS      259 TOTAL
                     EDM=   .14E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    30.988        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.4961        6.2387        .50000       -.52450    
   3  Normalizat    .98131        .22569        .26389E-03   -.93659    
   4  Prefactor     .96419        .19315        .22634E-03   -.93933    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.37907e-11
Minuit parameter uncertainties:
  1  9.09197e-06
  2  4.90176
  3  0.225909
  4  0.193287
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/261519': 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) = 5352.26711335
delta logL = -6.09288690612e-08

Extracting fit parameters...

4FGL J0524.6-2819
   Spectrum: PowerLaw
256    Prefactor:  1.000e-04  9.092e-06  1.000e-04  1.000e+04 ( 1.000e-13)
257        Index:  2.496e+00  4.902e+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.642e-01  1.933e-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.813e-01  2.259e-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/261519/cmap_HighResolution_500083201_500342401_4FGL_J0524.6-2819_daily_bin1006.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.18e-03', job_status='DONE', photon_flux_upper_limit='7.92e-08', time_completed='2021-08-22 13:34:34.066553', job_id='261519', GAL2='0.96', fit_tolerance='1e-08', EG2='0.98', EG='0.98', time_epoch_completed='1629664474.07', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.96', dlogl='-6.09e-08', ts2='-0.00', photon_index_error='0.00', photon_index='2.57' WHERE bin_id='1006' AND source_name='4FGL J0524.6-2819' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Aug 22 13:34:34 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0041>
Subject: Job 261519: <4FGL_J0524.6-2819_daily_bin1006> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0524.6-2819_daily_bin1006 81.1732 -28.3288 500083201 500342401 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 :                                   668.08 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             243.78 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   830 sec.
    Turnaround time :                            831 sec.

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

